Skip to content

Commit

Permalink
cleaned up form buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Jan 1, 2020
1 parent 2956a34 commit e22d711
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 160 deletions.
Binary file modified cookbook/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
307 changes: 158 additions & 149 deletions cookbook/locale/de/LC_MESSAGES/django.po

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cookbook/templates/forms/edit_import_recipe.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h3>{% trans 'Import new Recipe' %}</h3>
<form action="." method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
<button class="btn btn-success" type="submit"><i class="fas fa-save"></i> {% trans 'Save' %}</button>
</form>

<script>
Expand Down
6 changes: 3 additions & 3 deletions cookbook/templates/forms/edit_internal_recipe.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ <h3>{% trans 'Edit Recipe' %}</h3>

<input type="hidden" id="ingredients_data_input" name="ingredients">
<hr>
<input type="submit" value="Submit" class="btn btn-success">
<button class="btn btn-success" type="submit"><i class="fas fa-save"></i> {% trans 'Save' %}</button>
<a href="{% url 'redirect_delete' form.instance|get_class|lower form.instance.pk %}"
class="btn btn-danger">{% trans 'Delete' %}</a>
class="btn btn-danger"><i class="fas fa-trash-alt"></i> {% trans 'Delete' %}</a>
{% if view_url %}
<a href="{{ view_url }}" class="btn btn-info">{% trans 'View' %} <i class="far fa-eye"></i></a>
<a href="{{ view_url }}" class="btn btn-info"><i class="far fa-eye"></i> {% trans 'View' %}</a>
{% endif %}
{% if form.instance.storage %}
<a href="{% url 'delete_recipe_source' form.instance.pk %}" class="btn btn-warning"><i
Expand Down
2 changes: 1 addition & 1 deletion cookbook/templates/generic/delete_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3>{% trans 'Delete' %} {{ title }}</h3>
{% blocktrans %}Are you sure you want to delete the {{ title }}: <b>{{ object }}</b> {% endblocktrans %}
</div>
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
<button class="btn btn-success" type="submit"><i class="fas fa-trash-alt"></i> {% trans 'Confirm' %}</button>
</form>

{% endblock %}
4 changes: 2 additions & 2 deletions cookbook/templates/generic/edit_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ <h3>{% trans 'Edit' %} {{ title }}</h3>
<form action="." method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
<button class="btn btn-success" type="submit"><i class="fas fa-save"></i> {% trans 'Save' %}</button>
<a href="{% url 'redirect_delete' form.instance|get_class|lower form.instance.pk %}"
class="btn btn-danger">{% trans 'Delete' %}</a>
{% if view_url %}
<a href="{{ view_url }}" class="btn btn-info">{% trans 'View' %} <i class="far fa-eye"></i></a>
<a href="{{ view_url }}" class="btn btn-info"><i class="far fa-eye"></i> {% trans 'View' %}</a>
{% endif %}
{% if delete_external_url %}
<a href="{{ delete_external_url }}" class="btn btn-warning"><i class="fas fa-exclamation-triangle"></i> {% trans 'Delete original file' %}</a>
Expand Down
2 changes: 1 addition & 1 deletion cookbook/templates/generic/new_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3>{% trans 'New' %} {{ title }} </h3>
<form action="." method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
<button class="btn btn-success" type="submit"><i class="fas fa-save"></i> {% trans 'Save' %}</button>
</form>

{% endblock %}
Binary file modified recipes/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions recipes/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-12-26 11:33+0100\n"
"POT-Creation-Date: 2020-01-01 20:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -18,10 +18,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: recipes/settings.py:136
#: .\recipes\settings.py:136
msgid "German"
msgstr "Deutsch"

#: recipes/settings.py:137
#: .\recipes\settings.py:137
msgid "English"
msgstr "Englisch"

0 comments on commit e22d711

Please sign in to comment.