docbrown/app/views/admin/settings/_form_submission.html.erb
Michael Kohl dcf942e3a2
Add Admin:Settings controllers (#13851)
* Add Admin:Settings::BaseController and refactor

* Further simplify controllers

* Add comments, more cleanup

* Update mandatory settings controller

* Update spec

* Update service object and spec

* Update controller

* Update app/services/settings/general/upsert.rb

Co-authored-by: Jamie Gaskins <jamie@forem.com>

Co-authored-by: Jamie Gaskins <jamie@forem.com>
2021-06-08 10:13:55 +07:00

12 lines
664 B
Text

<% if current_user.has_role?(:super_admin) %>
<div class="crayons-notice p-4 mt-4">
<div class="crayons-field">
<%= label_tag :confirmation_update, "Confirmation update", class: "crayons-field__label" %>
<p class="crayons-field__description">Type the sentence: <strong><%= @confirmation_text %></strong></p>
<div class="flex">
<%= text_field_tag :confirmation, nil, class: "crayons-textfield flex-1 mr-2", placeholder: "Confirmation text", autocomplete: "off", required: true, pattern: @confirmation_text %>
<%= f.submit "Update Settings", class: "crayons-btn align-self-start" %>
</div>
</div>
</div>
<% end %>