Simplify min/max abstract length feature

Also clarify that those are words...
This commit is contained in:
Henne Vogelsang 2025-01-30 17:23:36 +01:00
parent bb59c9a4d9
commit 9514171e33
3 changed files with 10 additions and 13 deletions

View file

@ -8,6 +8,6 @@ module EventTypesHelper
# ====Returns
# * +String+ -> number of registrations / max allowed registrations
def event_type_select_options(event_types = {})
event_types.map { |type| ["#{type.title} - #{show_time(type.length)}", type.id] }
event_types.map { |type| ["#{type.title} - #{show_time(type.length)} - #{type.minimum_abstract_length} to #{type.maximum_abstract_length} words", type.id] }
end
end