Files
nairobi/app/components/admin/settings/text_form_component.html.erb
Senén Rodero Rodríguez 1fb351425f Use a plain tab param
Instead of using a setting nested param `setting[:tab]`. We only need
the tab param when rendering settings in the administration section.

This change will make it easier rendering the correct tab after
updating settings.
2024-01-25 18:29:38 +01:00

14 lines
566 B
Plaintext

<%= form_for([:admin, setting]) do |f| %>
<%= hidden_field_tag :tab, tab if tab %>
<div class="small-12 medium-6 large-8 column">
<%= f.text_area :value,
label: false,
id: dom_id(setting, :value),
"aria-label": strip_tags(t("settings.#{setting.key}")),
"aria-describedby": dom_id(setting, :description) %>
</div>
<div class="small-12 medium-6 large-4 column">
<%= f.submit(t("admin.settings.index.update_setting"), class: "button hollow expanded") %>
</div>
<% end %>