mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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">
|
||||
{{ _('Update') }}
|
||||
</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) %}
|
||||
<button name="operation" value="delete" type="submit" class="rounded button">
|
||||
{{ _('Delete') }}
|
||||
|
||||
@@ -95,6 +95,9 @@
|
||||
<button type="submit" class="rounded primary button">
|
||||
{{ _('Update') }}
|
||||
</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) %}
|
||||
<button name="operation" value="delete" type="submit" class="rounded button">
|
||||
{{ _('Delete') }}
|
||||
|
||||
Reference in new issue
Block a user