22{% block title %}
33 Conditionals
44{% endblock %}
5- {% block extraFooter %}
6- < script src ="../static/js/conditional.js "> </ script >
7- {% endblock %}
85{% block body %}
96 < div class ="container main ">
107 < div class ="panel panel-default ">
118 < div class ="panel-heading ">
129 < h3 class ="panel-title ">
1310 Conditionals
1411 {% if is_eval_director %}
15- < button type ="button " class ="btn btn-primary btn-sm btn-conditional " data-toggle ="modal " data-target ="#createConditional ">
12+ < button type ="button " class ="btn btn-primary btn-sm btn-conditional pull-right " data-toggle ="modal " data-target ="#createConditional ">
1613 < span class ="glyphicon glyphicon-plus "> </ span > Add
1714 </ button >
1815 {% endif %}
@@ -23,36 +20,31 @@ <h3 class="panel-title">
2320 {% if conditionals_len == 0 %}
2421 < div class ="alert alert-info " style ="margin:15px; "> No conditionals.</ div >
2522 {% else %}
26- < table class ="table table-striped no-bottom-margin ">
27- < tbody id ="conditionals ">
28- < tr >
29- < th > Name</ th >
30- < th > Date Created</ th >
31- < th > Date Due</ th >
32- < th > Description</ th >
33- {% if is_eval_director %}
34- < th > Controls</ th >
35- {% endif %}
36- </ tr >
37- <!-- ng-repeat="conditional in conditionals.data"-->
23+ < table class ="table table-striped no-bottom-margin " data-module ="table ">
24+ < thead >
25+ < tr >
26+ < th > Name</ th >
27+ < th > Date Created</ th >
28+ < th > Date Due</ th >
29+ < th > Description</ th >
30+ {% if is_eval_director %}
31+ < th > Actions</ th >
32+ {% endif %}
33+ </ tr >
34+ </ thead >
35+ < tbody >
3836 {% for c in conditionals %}
3937 < tr id ="conditional-{{ c['id'] }} " conditional_id ="{{ c['id'] }} ">
40- < td > {{ c['name'] }}</ td > <!-- If showing all users -->
38+ < td > {{ c['name'] }}</ td >
4139 < td > {{ c['date_created'] }}</ td >
4240 < td > {{ c['date_due'] }}</ td >
4341 < td > {{ c['description'] }}</ td >
4442 {% if is_eval_director %}
45- < th >
46- < button role ="button " class ="btn btn-raised btn-primary btn-success "
47- style ="width:100%; " id ="pass-{{ c['id'] }} ">
48- Pass
49- </ button >
50- < button role ="button " class ="btn btn-raised btn-primary btn-danger "
51- style ="width:100%; " id ="fail-{{ c['id'] }} ">
52- Fail
53- </ button >
54-
55- </ th >
43+ < td data-module ="conditionalActions " data-id ="{{ c['id'] }} ">
44+ < button role ="button " class ="btn btn-sm btn-success " data-action ="pass "> Pass</ button >
45+ < button role ="button " class ="btn btn-sm btn-danger " data-action ="fail "> Fail</ button >
46+ < button role ="button " class ="btn btn-sm btn-default " data-action ="delete "> < span class ="glyphicon glyphicon-trash "> </ span > Delete</ button >
47+ </ td >
5648 {% endif %}
5749 </ tr >
5850 {% endfor %}
@@ -71,26 +63,26 @@ <h3 class="panel-title">
7163 < button type ="button " class ="close " data-dismiss ="modal "> < span aria-hidden ="true "> ×</ span > < span class ="sr-only "> Close</ span > </ button >
7264 < h4 class ="modal-title " id ="editUserTitle "> Conditional</ h4 >
7365 </ div >
74- < div class ="modal-body ">
75- < div class ="row user-edit-row ">
76- < label class ="control-label " for ="memberName "> Member Name</ label >
77- < input type ="text " name ="attendees " class ="form-control " data-module ="memberSelect " data-src ="cm_members "/>
78- </ div >
66+ < form data-module ="conditionalForm " method ="post ">
67+ < div class ="modal-body ">
68+ < div class ="row user-edit-row ">
69+ < label class ="control-label " for ="memberName "> Member Name</ label >
70+ < select name ="uid " id ="memberName " class ="form-control " data-module ="memberSelect " data-src ="cm_members "> </ select >
71+ </ div >
7972
80- < div class ="row user-edit-row ">
81- < label class ="control-label " for ="memberName "> Due Date</ label >
82- < input type ="text " name ="date " class ="form-control " value ="{{ date }} " data-module ="datepicker " />
73+ < div class ="row user-edit-row ">
74+ < label class ="control-label " for ="due_date "> Due Date</ label >
75+ < input type ="text " id ="due_date " name ="due_date " class ="form-control " data-module ="datepicker " />
76+ </ div >
77+ < div class ="row user-edit-row ">
78+ < label class ="control-label " for ="requirement "> Requirement</ label >
79+ < input type ="text " class ="form-control " id ="requirement " name ="description ">
80+ </ div >
8381 </ div >
84- < div class ="row user-edit-row ">
85- < label class ="control-label " for ="memberName "> Requirement</ label >
86- < input class ="form-control " id ="memberName " name ="name " type ="text ">
82+ < div class ="modal-footer ">
83+ < input type ="submit " class ="btn btn-primary " value ="Create ">
8784 </ div >
88- </ div >
89- < div class ="modal-footer ">
90- < button type ="button " class ="btn btn-success save-btn pull-left "> Pass</ button >
91- < button type ="button " class ="btn btn-danger save-btn pull-left "> Fail</ button >
92- < button type ="button " class ="btn btn-primary save-btn "> Save</ button >
93- </ div >
85+ </ form >
9486 </ div >
9587 </ div >
9688 </ div >
0 commit comments