Skip to content

Commit

Permalink
Remove default level of new adventures #5922
Browse files Browse the repository at this point in the history
  • Loading branch information
boryanagoncharenko committed Jan 9, 2025
1 parent e039cc0 commit 77a34b1
Show file tree
Hide file tree
Showing 63 changed files with 364 additions and 8 deletions.
3 changes: 3 additions & 0 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

msgid "select_lang"
msgstr ""

Expand Down
8 changes: 4 additions & 4 deletions templates/customize-adventure.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ <h2>{{_('customize_adventure')}}: <strong>{{adventure.name}}</strong></h2>
<div class="flex flex-row items-center mb-4">
<label for="custom_adventure_classes" class="inline-block w-40 text-xl">{{_('used_in')}}</label>
<div class="flex-1">
<custom-select data-type="multiple" id="classes_dropdown" data-cy="classes_select" data-label="{{_('used_in')}}">
<custom-select data-type="multiple" id="classes_dropdown" data-cy="classes_select"
data-label="{{_('select_classes')}}">
{% for class in all_classes %}
<option {% if class.id in adventure.classes %}selected{% endif %} value="{{class.id}}" data-cy="{{class.name}}">{{ class.name }}</option>
{% endfor %}
Expand All @@ -104,8 +105,7 @@ <h2>{{_('customize_adventure')}}: <strong>{{adventure.name}}</strong></h2>
<div class="flex-1">
<custom-select data-type="multiple" id="levels_dropdown" data-cy="level_select" data-label="{{_('select_levels')}}">
{% for i in range(1, (max_level + 1)) %}
{% set adv_levels = adventure.levels if adventure.get("levels") else [adventure.level|string] %}
<option {% if i|string in adv_levels %}selected{% endif %} data-value="{{i}}" data-cy="{{i}}">{{ i }}</option>
<option {% if i|string in adventure.levels %}selected{% endif %} data-value="{{i}}" data-cy="{{i}}">{{ i }}</option>
{% endfor %}
</custom-select>
</div>
Expand Down Expand Up @@ -298,4 +298,4 @@ <h3>{{_('adventure_exp_classes')}}</h3>
</div>

</div>
{% endblock %}
{% endblock %}
6 changes: 6 additions & 0 deletions translations/ar/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,9 @@ msgstr "اختيار المغامرات"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

msgid "select_lang"
msgstr "اختر اللغة"

Expand Down Expand Up @@ -2682,3 +2685,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/bg/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2894,3 +2897,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/bn/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -3012,3 +3015,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/ca/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,9 @@ msgstr "Selecciona i ordena aventures"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2541,3 +2544,6 @@ msgstr "El teu programa"
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2906,3 +2909,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/cy/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2994,3 +2997,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/da/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1935,6 +1935,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2977,3 +2980,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,9 @@ msgstr "Wähle und ordne Abenteuer"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2566,3 +2569,6 @@ msgstr "Dein Programm"
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/el/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,9 @@ msgstr "Επίλεξε περιπέτειες"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2765,3 +2768,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

3 changes: 3 additions & 0 deletions translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,9 @@ msgstr "Select and order adventures"
msgid "select_all"
msgstr "Select all"

msgid "select_classes"
msgstr "Select classes"

msgid "select_lang"
msgstr "Select language"

Expand Down
6 changes: 6 additions & 0 deletions translations/eo/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,9 @@ msgstr "Elekti aventurojn"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

msgid "select_lang"
msgstr "Elektu lingvon"

Expand Down Expand Up @@ -2755,3 +2758,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/es/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,9 @@ msgstr "Seleccionar y encargar aventuras"
msgid "select_all"
msgstr "Seleccionar todo"

msgid "select_classes"
msgstr ""

msgid "select_lang"
msgstr "Selecciona el idioma"

Expand Down Expand Up @@ -2376,3 +2379,6 @@ msgstr "Tu programa"
#~ msgid "classes"
#~ msgstr "Clases"

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/et/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2971,3 +2974,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/fa/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1950,6 +1950,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -3005,3 +3008,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/fi/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2993,3 +2996,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,9 @@ msgstr "Choisissez les aventures"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2610,3 +2613,6 @@ msgstr "Ton programme"
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/fr_CA/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2825,3 +2828,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/fy/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2896,3 +2899,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/he/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2962,3 +2965,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/hi/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,9 @@ msgstr "adventures का चयन करें"
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2784,3 +2787,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

6 changes: 6 additions & 0 deletions translations/hr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,9 @@ msgstr ""
msgid "select_all"
msgstr ""

msgid "select_classes"
msgstr ""

#, fuzzy
msgid "select_lang"
msgstr ""
Expand Down Expand Up @@ -2796,3 +2799,6 @@ msgstr ""
#~ msgid "classes"
#~ msgstr ""

#~ msgid "select_class"
#~ msgstr ""

Loading

0 comments on commit 77a34b1

Please sign in to comment.