core&ui: fix homework operation (#500)

This commit is contained in:
panda authored and GitHub committed 2023-01-31 21:32:46 +08:00
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 %}