diff test_create.html @ 3036:ae0950bc1c99

Close #218. Added to test_create.
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 26 Sep 2017 11:22:47 +0100
parents a5a6c44bab6e
children fb29981a2fad
line wrap: on
line diff
--- a/test_create.html	Tue Sep 26 10:15:39 2017 +0100
+++ b/test_create.html	Tue Sep 26 11:22:47 2017 +0100
@@ -933,6 +933,15 @@
                     <button type="button" class="btn btn-danger" ng-click="removeCommentQuestion(cq)">Remove Comment Question</button>
                     <div class="attributes">
                         <div class="attribute">
+                            <span>Type:</span>
+                            <select ng-model="cq.type">
+                                <option value="question">Question</option>
+                                <option value="checkbox">Checkbox</option>
+                                <option value="radio">Radio</option>
+                                <option value="slider">Slider</option>
+                            </select>
+                        </div>
+                        <div class="attribute">
                             <span>Unique ID:</span>
                             <input type="text" ng-model="cq.id" required/>
                         </div>
@@ -940,6 +949,10 @@
                             <span>Common Name:</span>
                             <input type="text" ng-model="cq.name" />
                         </div>
+                        <div class="attribute">
+                            <span>Mandatory:</span>
+                            <input type="checkbox" ng-model="cq.mandatory" />
+                        </div>
                         <div class="attribute" ng-show="cq.type == 'slider'">
                             <span>Minimum:</span>
                             <input type="number" ng-model="cq.min" />