Add setting to turn off automatic collapsing of variations

This commit is contained in:
Raphael Michel
2017-01-22 20:31:59 +01:00
parent 3a2ca8d3d6
commit 78fc58cc93
5 changed files with 16 additions and 5 deletions

View File

@@ -499,6 +499,10 @@ class DisplaySettingsForm(SettingsForm):
required=False,
widget=I18nTextarea
)
show_variations_expanded = forms.BooleanField(
label=_("Show variations of a product expanded by default"),
required=False
)
class TicketSettingsForm(SettingsForm):

View File

@@ -10,6 +10,7 @@
{% bootstrap_field form.primary_color layout="horizontal" %}
{% bootstrap_field form.logo_image layout="horizontal" %}
{% bootstrap_field form.frontpage_text layout="horizontal" %}
{% bootstrap_field form.show_variations_expanded layout="horizontal" %}
</fieldset>
<div class="form-group submit-group">
<button type="submit" class="btn btn-primary btn-save">