Skip to content

Commit

Permalink
Move cropping settings in parameters tab
Browse files Browse the repository at this point in the history
closes #1717
  • Loading branch information
gagnieray committed Oct 12, 2023
1 parent a1c096d commit c3ab1a4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions galette/templates/default/pages/preferences.html.twig
Expand Up @@ -241,6 +241,21 @@
<option value="{{ constant('Galette\\Core\\Preferences::PUBLIC_PAGES_VISIBILITY_PRIVATE') }}"{% if pref.pref_publicpages_visibility == constant('Galette\\Core\\Preferences::PUBLIC_PAGES_VISIBILITY_PRIVATE') %} selected="selected"{% endif %}>{{ _T("Admin and staff only") }}</option>
</select>
</div>
<div class="field inline">
<div class="ui right aligned toggle checkbox">
<input type="checkbox" name="pref_force_picture_ratio" id="pref_force_picture_ratio" value="1" {% if pref.pref_force_picture_ratio == 1 %}checked="checked"{% endif %}/>
<label for="pref_force_picture_ratio">{{ _T("Force member picture ratio") }}</label>
</div>
<i class="tooltip circular inverted primary small icon info" data-html="{{ _T("If checked, the members's picture will be resized and cropped to the ratio selected below.") }}" data-variation="inverted wide"></i>
</div>
<div id="pref_member_picture_ratio_field" class="inline field{% if pref.pref_force_picture_ratio != 1 %} displaynone{% endif %}">
<label for="pref_member_picture_ratio" title="{{ _T("Choose the") }}">{{ _T("Select a ratio") }}</label>
<select name="pref_member_picture_ratio" id="pref_member_picture_ratio" class="ui dropdown nochosen">
<option value="square_ratio"{% if pref.pref_member_picture_ratio == 'square_ratio' %} selected="selected"{% endif %}>{{ _T("Square (1:1)") }}</option>
<option value="portrait_ratio"{% if pref.pref_member_picture_ratio == 'portrait_ratio' %} selected="selected"{% endif %}>{{ _T("Portrait (3:4)") }}</option>
<option value="landscape_ratio"{% if pref.pref_member_picture_ratio == 'landscape_ratio' %} selected="selected"{% endif %}>{{ _T("Landscape (4:3)") }}</option>
</select>
</div>
<div class="field inline">
<div class="ui right aligned toggle checkbox">
<input type="checkbox" name="pref_bool_selfsubscribe" id="pref_bool_selfsubscribe" value="1"{% if pref.pref_bool_selfsubscribe %} checked="checked"{% endif %}/>
Expand Down Expand Up @@ -610,21 +625,6 @@
</div>
<div class="ui stackable two column grid">
<div class="column">
<div class="field inline">
<div class="ui right aligned toggle checkbox">
<input type="checkbox" name="pref_force_picture_ratio" id="pref_force_picture_ratio" value="1" {% if pref.pref_force_picture_ratio == 1 %}checked="checked"{% endif %}/>
<label for="pref_force_picture_ratio">{{ _T("Force member picture ratio") }}</label>
</div>
<i class="tooltip circular inverted primary small icon info" data-html="{{ _T("If checked, the members's picture will be resized and cropped to the ratio selected below.") }}" data-variation="inverted wide"></i>
</div>
<div id="pref_member_picture_ratio_field" class="inline field{% if pref.pref_force_picture_ratio != 1 %} displaynone{% endif %}">
<label for="pref_member_picture_ratio" title="{{ _T("Choose the") }}">{{ _T("Select a ratio") }}</label>
<select name="pref_member_picture_ratio" id="pref_member_picture_ratio" class="ui dropdown nochosen">
<option value="square_ratio"{% if pref.pref_member_picture_ratio == 'square_ratio' %} selected="selected"{% endif %}>{{ _T("Square (1:1)") }}</option>
<option value="portrait_ratio"{% if pref.pref_member_picture_ratio == 'portrait_ratio' %} selected="selected"{% endif %}>{{ _T("Portrait (3:4)") }}</option>
<option value="landscape_ratio"{% if pref.pref_member_picture_ratio == 'landscape_ratio' %} selected="selected"{% endif %}>{{ _T("Landscape (4:3)") }}</option>
</select>
</div>
<div class="field">
<label for="pref_card_abrev">{{ _T("Short Text (Card Center):") }}</label>
<div class="ui action input">
Expand Down

0 comments on commit c3ab1a4

Please sign in to comment.