Browse Source

More stuff is editable

Stephen Downward 1 year 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

@ -0,0 +1,7 @@
1
/*er {
2
	text-align: center;
3
}*/
4
5
.green {
6
	color: #009900;
7
}

+ 15 - 4
survey_builder.html

@ -1,6 +1,7 @@
1 1
<html ng-app="surveybuilder">
2 2
	<head>
3
		<link rel="stylesheet" type="text/css" href="style.css" />
3
		<link rel="stylesheet" type="text/css" href="style.css">
4
		<link rel="stylesheet" type="text/css" href="css/survey_builder.css" />
4 5
		<link rel="stylesheet" href="css/bootstrap.min.css">
5 6
		<script src="js/angular.min.js"></script>
6 7
		<script src="js/builder.js"></script>
@ -18,11 +19,21 @@
18 19
						<span ng-show="edit">
19 20
							<input type="text" class="except" ng-model="module.title">
20 21
							<button class="btn btn-sm" ng-click="edit = false">
21
									<span class="glyphicon glyphicon-"></span><!-- TODO: Checkmark -->
22
									<span class="glyphicon glyphicon-ok green"></span>
22 23
							</button>
23 24
						</span>
24 25
					</span>
25
					<p>{{module.subtext}}</p>
26
					<span ng-init="edit_subtext = false">
27
						<p ng-show="!edit_subtext" ng-click="edit_subtext = true">{{module.subtext}}</p>
28
						<br ng-show="edit_subtext">
29
						<span ng-show="edit_subtext">
30
							<input type="text" class="except" ng-model="module.subtext">
31
							<button class="btn btn-sm" ng-click="edit_subtext = false">
32
									<span class="glyphicon glyphicon-ok green"></span>
33
							</button>
34
						</span>
35
					</span>
36
					
26 37
					<span ng-if="module.type == 0" ng-repeat="option in module.options">
27 38
						<div ng-init="edit = false">
28 39
							<label ng-show="!edit" ng-click="edit = true">{{option.label}}</label>
@ -30,7 +41,7 @@
30 41
							<span ng-show="edit">
31 42
								<input type="text" class="except" ng-model="option.label">
32 43
								<button class="btn btn-sm" ng-click="edit = false; alert()">
33
									<span class="glyphicon glyphicon-"></span><!-- TODO: Checkmark -->
44
									<span class="glyphicon glyphicon-ok green"></span>
34 45
								</button>
35 46
							</span>
36 47