Remove lowercase from creation form title

This commit is contained in:
Edgar P. Burkhart 2023-04-20 12:04:14 +02:00
parent df19c5586d
commit 45d12d0b07
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -4,7 +4,7 @@
{% load i18n %} {% load i18n %}
{% block title %} {% block title %}
{% if form.instance.adding %} {% if form.instance.adding %}
{% blocktranslate with name=form.instance|verbose_name|lower %}Create {{ name }}{% endblocktranslate %} {% blocktranslate with name=form.instance|verbose_name %}Create {{ name }}{% endblocktranslate %}
{% else %} {% else %}
{{ form.instance }} {{ form.instance }}
{% endif %} {% endif %}
@ -25,7 +25,7 @@
{% block body %} {% block body %}
{% with instance=form.instance %} {% with instance=form.instance %}
{% if instance.adding %} {% if instance.adding %}
<h1>{% blocktranslate with name=instance|verbose_name|lower %}Create {{ name }}{% endblocktranslate %}</h1> <h1>{% blocktranslate with name=instance|verbose_name %}Create {{ name }}{% endblocktranslate %}</h1>
{% else %} {% else %}
<h1> <h1>
{% block h1 %}{{ instance }}{% endblock %} {% block h1 %}{{ instance }}{% endblock %}