mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: allow contest and homework clone
This commit is contained in:
1 parent
b8fd94df50
commit
9470dd9cfa
2 files changed
+6
No files matched your search
@@ -210,6 +210,9 @@
|
|||||||
<button name="operation" value="update" type="submit" class="rounded primary button">
|
<button name="operation" value="update" type="submit" class="rounded primary button">
|
||||||
{{ _('Update') }}
|
{{ _('Update') }}
|
||||||
</button>
|
</button>
|
||||||
|
<button name="operation" value="update" type="submit" formaction="{{ url('contest_create') }}" class="rounded button">
|
||||||
|
{{ _('Clone') }}
|
||||||
|
</button>
|
||||||
{% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_CONTEST) %}
|
{% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_CONTEST) %}
|
||||||
<button name="operation" value="delete" type="submit" class="rounded button">
|
<button name="operation" value="delete" type="submit" class="rounded button">
|
||||||
{{ _('Delete') }}
|
{{ _('Delete') }}
|
||||||
|
|||||||
@@ -95,6 +95,9 @@
|
|||||||
<button type="submit" class="rounded primary button">
|
<button type="submit" class="rounded primary button">
|
||||||
{{ _('Update') }}
|
{{ _('Update') }}
|
||||||
</button>
|
</button>
|
||||||
|
<button name="operation" value="update" type="submit" formaction="{{ url('homework_create') }}" class="rounded button">
|
||||||
|
{{ _('Clone') }}
|
||||||
|
</button>
|
||||||
{% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_HOMEWORK) %}
|
{% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_HOMEWORK) %}
|
||||||
<button name="operation" value="delete" type="submit" class="rounded button">
|
<button name="operation" value="delete" type="submit" class="rounded button">
|
||||||
{{ _('Delete') }}
|
{{ _('Delete') }}
|
||||||
|
|||||||
Reference in new issue
Block a user