Browse Source

More stuff is editable

master
Stephen Downward 2 years ago
parent
commit
bc79036c5f
2 changed files with 22 additions and 4 deletions
  1. +7
    -0
      css/survey_builder.css
  2. +15
    -4
      survey_builder.html

+ 7
- 0
css/survey_builder.css View File

@@ -0,0 +1,7 @@
/*er {
text-align: center;
}*/

.green {
color: #009900;
}

+ 15
- 4
survey_builder.html View File

@@ -1,6 +1,7 @@
<html ng-app="surveybuilder">
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="css/survey_builder.css" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/angular.min.js"></script>
<script src="js/builder.js"></script>
@@ -18,11 +19,21 @@
<span ng-show="edit">
<input type="text" class="except" ng-model="module.title">
<button class="btn btn-sm" ng-click="edit = false">
<span class="glyphicon glyphicon-"></span><!-- TODO: Checkmark -->
<span class="glyphicon glyphicon-ok green"></span>
</button>
</span>
</span>
<p>{{module.subtext}}</p>
<span ng-init="edit_subtext = false">
<p ng-show="!edit_subtext" ng-click="edit_subtext = true">{{module.subtext}}</p>
<br ng-show="edit_subtext">
<span ng-show="edit_subtext">
<input type="text" class="except" ng-model="module.subtext">
<button class="btn btn-sm" ng-click="edit_subtext = false">
<span class="glyphicon glyphicon-ok green"></span>
</button>
</span>
</span>
<span ng-if="module.type == 0" ng-repeat="option in module.options">
<div ng-init="edit = false">
<label ng-show="!edit" ng-click="edit = true">{{option.label}}</label>
@@ -30,7 +41,7 @@
<span ng-show="edit">
<input type="text" class="except" ng-model="option.label">
<button class="btn btn-sm" ng-click="edit = false; alert()">
<span class="glyphicon glyphicon-"></span><!-- TODO: Checkmark -->
<span class="glyphicon glyphicon-ok green"></span>
</button>
</span>


Loading…
Cancel
Save