Skip to content
Snippets Groups Projects

Drobnosti

1 unresolved thread
Merged Jiří Setnička requested to merge jirka/drobnosti into devel
1 unresolved thread
19 files
+ 60
37
Compare changes
  • Side-by-side
  • Inline
Files
19
@@ -30,6 +30,7 @@ finální (ve výchozím stavu poslední nahrané).{% elif sc.allow_upload_solut
<th>Akce
</tr>
</thead>
{% set tabindex = namespace(value=1) %}
{% for obj, sol in rows %}
{% set u = for_user or obj.user %}
{% set task = for_task or obj %}
@@ -85,14 +86,16 @@ finální (ve výchozím stavu poslední nahrané).{% elif sc.allow_upload_solut
{% if sol.org_note %} <span class="icon" title="Interní poznámka: {{ sol.org_note }}">🗩</span>{% endif %}
<td>
{% if points_form %}
<input type="number" min=0 {% if task.max_points is not none %}max={{ task.max_points }}{% endif %} class="form-control" name="points_{{u.user_id}}" value="{{ request_form.get("points_{}".format(u.user_id)) or sol.points }}" size="4">
<input type="number" min=0 {% if task.max_points is not none %}max={{ task.max_points }}{% endif %} class="form-control" name="points_{{u.user_id}}" value="{{ request_form.get("points_{}".format(u.user_id)) or sol.points }}" size="4" tabindex={{ tabindex.value }} autofocus>
{% set tabindex.value = tabindex.value + 1%}
{% else %}
{% if sol.points is not none %}{{ sol.points}}{% else %}<span class="unknown">?</span>{% endif %}
{% endif %}
{% else %}
<td colspan="4" class="text-center">
{% if create_form %}
<input type="checkbox" name="create_sol_{{u.user_id}}" id="create_sol_{{u.user_id}}"{% if request_form.get("create_sol_{}".format(u.user_id)) %}checked{% endif %}>
<input type="checkbox" name="create_sol_{{u.user_id}}" id="create_sol_{{u.user_id}}"{% if request_form.get("create_sol_{}".format(u.user_id)) %}checked{% endif %} tabindex={{ tabindex.value }} autofocus>
{% set tabindex.value = tabindex.value + 1%}
<label for="create_sol_{{u.user_id}}">Založit řešení</label>
{% else %}–{% endif %}
{% endif %}
Loading