@@ -25,6 +25,9 @@ <h1 class="text-center">Contest Dashboard</h1>
25
25
< i class ="fa-solid fa-clock-rotate-left fa-fw "> </ i > Pre-Contest
26
26
</ div >
27
27
< div class ="card-body overflow-auto ">
28
+ < div class ="row justify-content-center ">
29
+ < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#walkinModal "> < i class ="fa-solid fa-person-walking fa-fw "> </ i > Create Walk-in teams</ button >
30
+ </ div >
28
31
< div class ="row justify-content-center ">
29
32
< a class ="btn btn-primary btn-sm my-1 " href ="{% url 'gen_dj_files' %} " onclick ="return confirm('Are you certain you want to generate the DOMjudge files?'); "> < i class ="fa-solid fa-file-circle-plus fa-fw "> </ i > Generate DOMjudge TSVs</ a >
30
33
{% if dj_files_available %}
@@ -73,7 +76,6 @@ <h1 class="text-center">Contest Dashboard</h1>
73
76
</ div >
74
77
< div class ="card-body overflow-auto ">
75
78
< div class ="row justify-content-center ">
76
-
77
79
{% if dj_results_processed %}
78
80
<!--<button type="button" class="btn btn-primary btn-sm my-1" data-toggle="modal" data-target="#generateEcReportsModal">Generate Reports</button>-->
79
81
< a class ="btn btn-primary btn-sm my-1 " href ="{% url 'gen_ec_reports' %} " onclick ="return confirm('Are you certain you want to generate the extra credit files?'); "> < i class ="fa-solid fa-file-circle-plus fa-fw "> </ i > Generate Reports</ a >
@@ -101,15 +103,34 @@ <h1 class="text-center">Contest Dashboard</h1>
101
103
<!-- Contest tools card -->
102
104
< div class ="card mt-4 border-secondary ">
103
105
< div class ="card-header font-weight-bold bg-secondary text-white ">
104
- < i class ="fa-solid fa-wrench fa-fw "> </ i > Contest Tools
106
+ < i class ="fa-solid fa-wrench fa-fw "> </ i > Tools
105
107
</ div >
106
108
< div class ="card-body overflow-auto ">
107
- < div class ="row justify-content-center ">
108
- < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#walkinModal "> < i class ="fa-solid fa-person-walking fa-fw "> </ i > Create Walk-in teams</ button >
109
+ < div class ="row ">
110
+ < div class ="col-lg-6 ">
111
+ < div class ="row justify-content-center ">
112
+ < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#accountStatusModal "> < i class ="fa-solid fa-user-gear fa-fw "> </ i > Update Account Status</ button >
113
+ </ div >
114
+ < div class ="row justify-content-center ">
115
+ < a class ="btn btn-primary btn-sm my-1 " href ="{% url 'generate_team_csvs' %} " onclick ="return confirm('Are you certain you want to generate the team data CSVs?'); "> < i class ="fa-solid fa-file-circle-plus fa-fw "> </ i > Generate Team CSVs</ a >
116
+ {% if team_csvs_available %}
117
+ < a class ="btn text-dark " href ="{% url 'download_team_csvs' %} " role ="button "> < i class ="fa fa-download fa-md " aria-hidden ="true "> </ i > </ a >
118
+ {% else %}
119
+ < a class ="btn text-secondary disabled " href ="# " role ="button "> < i class ="fa fa-download fa-md " aria-hidden ="true "> </ i > </ a >
120
+ {% endif %}
121
+ </ div >
122
+ </ div >
123
+ < div class ="col-lg-6 ">
124
+ < div class ="row justify-content-center ">
125
+ < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#facultyTeamModal "> < i
126
+ class ="fa-solid fa-chalkboard-user fa-fw "> </ i > Designate Faculty Team</ button >
127
+ </ div >
128
+ < div class ="row justify-content-center ">
129
+ < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#checkinModal "> < i class ="fa-solid fa-robot fa-fw "> </ i > Check in/out Users</ button >
130
+ </ div >
131
+ </ div >
109
132
</ div >
110
- < div class ="row justify-content-center ">
111
- < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#checkinModal "> < i class ="fa-solid fa-robot fa-fw "> </ i > Check in/out Users</ button >
112
- </ div >
133
+
113
134
</ div >
114
135
</ div >
115
136
<!-- Contest tools card end -->
@@ -142,17 +163,22 @@ <h1 class="text-center">Contest Dashboard</h1>
142
163
<!-- Account tools card -->
143
164
< div class ="card mt-4 border-secondary ">
144
165
< div class ="card-header font-weight-bold bg-secondary text-white ">
145
- < i class ="fa-solid fa-wrench fa-fw "> </ i > Account Tools
166
+ < i class ="fa-solid fa-user-shield fa-fw "> </ i > Change User Password
146
167
</ div >
147
- < div class ="card-body overflow-auto ">
148
- < div class ="row justify-content-center ">
149
- < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#activateAccountModal "> < i class ="fa-solid fa-user-check fa-fw "> </ i > Activate User Account</ button >
168
+ < form method ="post " onSubmit ="return confirm('Are you certain you want to update this user password?'); ">
169
+ < div class ="card-body overflow-auto ">
170
+ {% csrf_token %}
171
+ < div class ="form-group ">
172
+ {{ update_password_form.username | placeholder:"Username" }}
173
+ </ div >
174
+ < div class ="form-group ">
175
+ {{ update_password_form.password | placeholder:"New password" }}
176
+ </ div >
150
177
</ div >
151
- < div class ="row justify-content-center ">
152
- < button type ="button " class ="btn btn-primary btn-sm my-1 " data-toggle ="modal " data-target ="#facultyTeamModal "> < i
153
- class ="fa-solid fa-chalkboard-user fa-fw "> </ i > Designate Faculty Team</ button >
178
+ < div class ="card-footer ">
179
+ < button class ="btn btn-primary btn-sm " type ="submit "> Save</ button >
154
180
</ div >
155
- </ div >
181
+ </ form >
156
182
</ div >
157
183
<!-- Account tools card end -->
158
184
</ div >
@@ -257,7 +283,6 @@ <h1 class="text-center">Contest Dashboard</h1>
257
283
</ div >
258
284
<!-- Volunteer Summary card end -->
259
285
260
-
261
286
<!-- Create Walk-in Teams Modal -->
262
287
< div class ="modal fade " id ="walkinModal " tabindex ="-1 " role ="dialog "
263
288
aria-labelledby ="confirmClearModalCenterTitle " aria-hidden ="true ">
@@ -294,7 +319,6 @@ <h5 class="mb-0">{{ field.label_tag }}</h5>
294
319
</ div >
295
320
<!-- End Create Walk-in Teams Modal -->
296
321
297
-
298
322
<!-- Checkin/Checkout Users Modal -->
299
323
< div class ="modal fade " id ="checkinModal " tabindex ="-1 " role ="dialog " aria-labelledby ="confirmClearModalCenterTitle "
300
324
aria-hidden ="true ">
@@ -330,20 +354,22 @@ <h5 class="modal-title" id="confirmClearModalLongTitle">Check in/out Users</h5>
330
354
</ div >
331
355
<!-- End Create Walk-in Teams Modal -->
332
356
333
-
334
- <!-- Activate Account Modal -->
335
- < div class ="modal fade " id ="activateAccountModal " tabindex ="-1 " role ="dialog "
357
+ <!-- Account Status Modal -->
358
+ < div class ="modal fade " id ="accountStatusModal " tabindex ="-1 " role ="dialog "
336
359
aria-labelledby ="confirmClearModalCenterTitle " aria-hidden ="true ">
337
360
< div class ="modal-dialog modal-dialog-centered " role ="document ">
338
361
< div class ="modal-content ">
339
362
< div class ="modal-header ">
340
- < h5 class ="modal-title " id ="confirmClearModalLongTitle "> Activate User Account</ h5 >
363
+ < h5 class ="modal-title " id ="confirmClearModalLongTitle "> Update Account Status </ h5 >
341
364
</ div >
342
- < form method ="post " onSubmit ="return confirm('Are you certain you want to activate this account?'); ">
365
+ < form method ="post " onSubmit ="return confirm('Are you certain you want to update this account?'); ">
343
366
< div class ="modal-body overflow-auto ">
344
367
{% csrf_token %}
345
368
< div class ="form-group ">
346
- {{ activate_account_form.username | placeholder:"Username"}}
369
+ {{ account_status_form.username | placeholder:"Username" }}
370
+ </ div >
371
+ < div class ="form-group ">
372
+ {{ account_status_form.status }}
347
373
</ div >
348
374
</ div >
349
375
< div class ="card-footer ">
@@ -354,8 +380,7 @@ <h5 class="modal-title" id="confirmClearModalLongTitle">Activate User Account</h
354
380
</ div >
355
381
</ div >
356
382
</ div >
357
- <!-- End Activate Account Modal -->
358
-
383
+ <!-- End Account Status Modal -->
359
384
360
385
<!-- Designate Faculty Team Modal -->
361
386
< div class ="modal fade " id ="facultyTeamModal " tabindex ="-1 " role ="dialog "
0 commit comments