|
107 | 107 | <tr>
|
108 | 108 | <th>Allow submit</th>
|
109 | 109 | <td>
|
110 |
| - <form action="{{ path('jury_contest_toggle_submit', {'contestId': contest.cid}) }}" method="post" class="d-inline"> |
| 110 | + <form action="{{ path('jury_contest_toggle', {'contestId': contest.cid, 'type': 'submit'}) }}" method="post" class="d-inline"> |
111 | 111 | <input type="checkbox" data-toggle="toggle" data-size="mini" data-on="Yes" data-off="No"
|
112 |
| - name="allow_submit" {% if contest.allowSubmit %}checked{% endif %}> |
| 112 | + name="value" {% if contest.allowSubmit %}checked{% endif %}> |
113 | 113 | </form>
|
114 | 114 | </td>
|
115 | 115 | </tr>
|
|
126 | 126 | {% endif %}
|
127 | 127 | <tr>
|
128 | 128 | <th>Process balloons</th>
|
129 |
| - <td>{{ contest.processBalloons | printYesNo }}</td> |
| 129 | + <td> |
| 130 | + <form action="{{ path('jury_contest_toggle', {'contestId': contest.cid, 'type': 'balloons'}) }}" method="post" class="d-inline"> |
| 131 | + <input type="checkbox" data-toggle="toggle" data-size="mini" data-on="Yes" data-off="No" |
| 132 | + name="value" {% if contest.processBalloons %}checked{% endif %}> |
| 133 | + </form> |
| 134 | + </td> |
130 | 135 | </tr>
|
131 | 136 | <tr>
|
132 | 137 | <th>Runtime as tiebreaker</th>
|
133 |
| - <td>{{ contest.runtimeAsScoreTiebreaker | printYesNo }}</td> |
| 138 | + <td> |
| 139 | + <form action="{{ path('jury_contest_toggle', {'contestId': contest.cid, 'type': 'tiebreaker'}) }}" method="post" class="d-inline"> |
| 140 | + <input type="checkbox" data-toggle="toggle" data-size="mini" data-on="Yes" data-off="No" |
| 141 | + name="value" {% if contest.runtimeAsScoreTiebreaker %}checked{% endif %}> |
| 142 | + </form> |
| 143 | + </td> |
134 | 144 | </tr>
|
135 | 145 | <tr>
|
136 | 146 | <th>Process medals</th>
|
137 |
| - <td>{{ contest.medalsEnabled | printYesNo }}</td> |
| 147 | + <td> |
| 148 | + <form action="{{ path('jury_contest_toggle', {'contestId': contest.cid, 'type': 'medals'}) }}" method="post" class="d-inline"> |
| 149 | + <input type="checkbox" data-toggle="toggle" data-size="mini" data-on="Yes" data-off="No" |
| 150 | + name="value" {% if contest.medalsEnabled %}checked{% endif %}> |
| 151 | + </form> |
| 152 | + </td> |
138 | 153 | </tr>
|
139 | 154 | <tr>
|
140 | 155 | <th>Medals</th>
|
|
175 | 190 | </tr>
|
176 | 191 | <tr>
|
177 | 192 | <th>Publicly visible</th>
|
178 |
| - <td>{{ contest.public | printYesNo }}</td> |
| 193 | + <td> |
| 194 | + <form action="{{ path('jury_contest_toggle', {'contestId': contest.cid, 'type': 'public'}) }}" method="post" class="d-inline"> |
| 195 | + <input type="checkbox" data-toggle="toggle" data-size="mini" data-on="Yes" data-off="No" |
| 196 | + name="value" {% if contest.public %}checked{% endif %}> |
| 197 | + </form> |
| 198 | + </td> |
179 | 199 | </tr>
|
180 | 200 | <tr>
|
181 | 201 | <th>Open to all teams</th>
|
|
0 commit comments