mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core&ui: fix homework operation (#500)
This commit is contained in:
1 parent
b5a5633b73
commit
fdfa5e9722
2 files changed
+11
-11
No files matched your search
@@ -91,7 +91,7 @@
|
||||
}) }}
|
||||
<div class="row"><div class="columns">
|
||||
{% if page_name == 'homework_edit' %}
|
||||
<button type="submit" class="rounded primary button">
|
||||
<button name="operation" value="update" type="submit" class="rounded primary button">
|
||||
{{ _('Update') }}
|
||||
</button>
|
||||
<button name="operation" value="update" type="submit" formaction="{{ url('homework_create') }}" class="rounded button">
|
||||
@@ -103,7 +103,7 @@
|
||||
</button>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<button type="submit" class="rounded primary button">
|
||||
<button name="operation" value="update" type="submit" class="rounded primary button">
|
||||
{{ _('Create') }}
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user