Change save button to create on creation form
This commit is contained in:
parent
37bb725f23
commit
df19c5586d
2 changed files with 11 additions and 3 deletions
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 0.0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-04-20 12:00+0200\n"
|
||||
"POT-Creation-Date: 2023-04-20 12:02+0200\n"
|
||||
"PO-Revision-Date: 2022-12-21 17:30+0100\n"
|
||||
"Last-Translator: edpibu <git@edgarpierre.fr>\n"
|
||||
"Language-Team: edpibu <git@edgarpierre.fr>\n"
|
||||
|
@ -231,7 +231,11 @@ msgstr "Supprimer"
|
|||
msgid "Reset"
|
||||
msgstr "Réinitialiser"
|
||||
|
||||
#: .\templates\main\form\form_base.html:32
|
||||
#: .\templates\main\form\form_base.html:33
|
||||
msgid "Create"
|
||||
msgstr "Créer"
|
||||
|
||||
#: .\templates\main\form\form_base.html:35
|
||||
msgid "Save"
|
||||
msgstr "Enregistrer"
|
||||
|
||||
|
|
|
@ -29,7 +29,11 @@
|
|||
<a class="del" href="{{ form.instance.get_delete_url }}">{% translate "Delete" %}</a>
|
||||
{% endif %}
|
||||
<input type="reset" value="{% translate "Reset" %}" />
|
||||
{% if form.instance.adding %}
|
||||
<input type="submit" value="{% translate "Create" %}" />
|
||||
{% else %}
|
||||
<input type="submit" value="{% translate "Save" %}" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue