|
|
@ -29,7 +29,17 @@ See docs/COPYRIGHT.rdoc for more details. |
|
|
|
|
|
|
|
|
|
|
|
<%= styled_form_tag({ action: 'edit', tab: 'users' }, class: 'admin-settings--form') do %> |
|
|
|
<%= styled_form_tag({ action: 'edit', tab: 'users' }, class: 'admin-settings--form') do %> |
|
|
|
|
|
|
|
|
|
|
|
<div class ="form--section"> |
|
|
|
<div class="form--fieldset"> |
|
|
|
|
|
|
|
<legend class="form--fieldset-legend"><%= t(:'settings.user.default_preferences')%></legend> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
|
|
|
<%= setting_check_box :default_auto_hide_popups, label: 'activerecord.attributes.user_preference.auto_hide_popups' %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--fieldset"> |
|
|
|
|
|
|
|
<legend class="form--fieldset-legend"><%= t(:'settings.user.deletion')%></legend> |
|
|
|
<div class="form--field"> |
|
|
|
<div class="form--field"> |
|
|
|
<%= setting_check_box :users_deletable_by_admins %> |
|
|
|
<%= setting_check_box :users_deletable_by_admins %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -39,42 +49,40 @@ See docs/COPYRIGHT.rdoc for more details. |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<fieldset class="form--fieldset"> |
|
|
|
<fieldset id="consent_settings" class="form--fieldset"> |
|
|
|
<fieldset id="consent_settings" class="form--fieldset"> |
|
|
|
<legend class="form--fieldset-legend"><%= I18n.t(:label_consent_settings) %></legend> |
|
|
|
<legend class="form--fieldset-legend"><%= I18n.t(:label_consent_settings) %></legend> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
<div class="form--field"> |
|
|
|
<%= setting_check_box :consent_required %> |
|
|
|
<%= setting_check_box :consent_required %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<%= cell Settings::TextSettingCell, I18n.locale, name: "consent_info" %> |
|
|
|
<%= cell Settings::TextSettingCell, I18n.locale, name: "consent_info" %> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
<div class="form--field"> |
|
|
|
<%= setting_block("consent_time") do %> |
|
|
|
<%= setting_block("consent_time") do %> |
|
|
|
<span class="form--check-box-field-container -slim"> |
|
|
|
<span class="form--check-box-field-container -slim"> |
|
|
|
<input type="hidden" name="settings[consent_time]" disabled id="settings_consent_time"> |
|
|
|
<input type="hidden" name="settings[consent_time]" disabled id="settings_consent_time"> |
|
|
|
<%= check_box_tag 'toggle_consent_time', |
|
|
|
<%= check_box_tag 'toggle_consent_time', |
|
|
|
'1', |
|
|
|
'1', |
|
|
|
!Setting.consent_time.present?, |
|
|
|
!Setting.consent_time.present?, |
|
|
|
id: 'toggle_consent_time' %> |
|
|
|
id: 'toggle_consent_time' %> |
|
|
|
</span> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<div class="form--field-instructions"> |
|
|
|
|
|
|
|
<%= I18n.t('consent.text_update_consent_time') %> |
|
|
|
|
|
|
|
<br/> |
|
|
|
|
|
|
|
<strong> |
|
|
|
|
|
|
|
<%= I18n.t('consent.update_consent_last_time', |
|
|
|
|
|
|
|
update_time: Setting.consent_time.present? ? format_time(Setting.consent_time) : t(:label_never)) %> |
|
|
|
|
|
|
|
</strong> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
|
|
|
<%= setting_text_field :consent_decline_mail, size: 6, container_class: '-middle' %> |
|
|
|
|
|
|
|
<span class="form--field-instructions"> |
|
|
|
|
|
|
|
<%= t('consent.contact_mail_instructions') %> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<div class="form--field-instructions"> |
|
|
|
|
|
|
|
<%= I18n.t('consent.text_update_consent_time') %> |
|
|
|
|
|
|
|
<br/> |
|
|
|
|
|
|
|
<strong> |
|
|
|
|
|
|
|
<%= I18n.t('consent.update_consent_last_time', |
|
|
|
|
|
|
|
update_time: Setting.consent_time.present? ? format_time(Setting.consent_time) : t(:label_never)) %> |
|
|
|
|
|
|
|
</strong> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</fieldset> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form--field"> |
|
|
|
|
|
|
|
<%= setting_text_field :consent_decline_mail, size: 6, container_class: '-middle' %> |
|
|
|
|
|
|
|
<span class="form--field-instructions"> |
|
|
|
|
|
|
|
<%= t('consent.contact_mail_instructions') %> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</fieldset> |
|
|
|
</fieldset> |
|
|
|
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %> |
|
|
|
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|