agendas: change wording on minimal_booking_time (#76303)
gitea/chrono/pipeline/head This commit looks good Details

This commit is contained in:
Emmanuel Cazenave 2023-04-06 18:30:16 +02:00
parent c866e7e4a4
commit c7e9c0cd81
4 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ class Migration(migrations.Migration):
default=datetime.time(0, 0),
null=True,
help_text='Ex.: 08:00:00. If left empty, available events will be those that are later than the current time.',
verbose_name='Minimal booking time',
verbose_name='Booking opening time',
),
),
]

View File

@ -276,7 +276,7 @@ class Agenda(models.Model):
blank=True,
)
minimal_booking_time = models.TimeField(
verbose_name=_('Minimal booking time'),
verbose_name=_('Booking opening time'),
default=datetime.time(0, 0, 0), # booking is possible starting and finishin at 00:00
help_text=_(
'Ex.: 08:00:00. If left empty, available events will be those that are later than the current time.'

View File

@ -256,8 +256,8 @@ msgid "Events type"
msgstr "Type dévénements"
#: agendas/models.py
msgid "Minimal booking time"
msgstr "Heure de réservation minimale"
msgid "Booking opening time"
msgstr "Horaire douverture des réservations"
#: agendas/models.py
msgid ""
@ -2213,8 +2213,8 @@ msgid "Maximal booking delay:"
msgstr "Délai de réservation maximal :"
#: manager/templates/chrono/manager_agenda_settings.html
msgid "Minimal booking time:"
msgstr "Heure de réservation minimale :"
msgid "Booking opening time:"
msgstr "Horaire douverture des réservations :"
#: manager/templates/chrono/manager_agenda_settings.html
msgid "current time"

View File

@ -90,7 +90,7 @@
{% blocktrans count count=agenda.maximal_booking_delay %}{{ count }} day{% plural %}{{ count }} days{% endblocktrans %}
{% else %}<i>{% trans "undefined" %}</i>{% endif %}</li>
{% if agenda.minimal_booking_delay is not None or agenda.maximal_booking_delay is not None %}
<li>{% trans "Minimal booking time:" %}
<li>{% trans "Booking opening time:" %}
{% if agenda.minimal_booking_time is not None %}{{ agenda.minimal_booking_time }}{% else %}{% trans "current time" %}{% endif %}</li>
{% endif %}
</ul>