Files
nairobi/app/views/admin/legislation/homepages/_form.html.erb
Javi Martín 9a4a7bd56e Remove obsolete parameter rendering globalize locales
This parameter isn't used since commit b86c0d3c3, which deleted a file
that wasn't used since commit 146c09adb. Further proof that this code
wasn't used is the fact that the `enable_translation_style` method,
which this code called, was removed in commit 5ada97544.
2024-06-05 16:10:55 +02:00

29 lines
1023 B
Plaintext

<%= render "shared/globalize_locales", resource: @process, manage_languages: false %>
<%= translatable_form_for [:admin, @process], url: url do |f| %>
<%= render "shared/errors", resource: @process %>
<div class="row">
<div class="small-12 column margin-top">
<%= f.check_box :homepage_enabled %>
</div>
</div>
<div class="row">
<%= f.translatable_fields do |translations_form| %>
<div class="small-12 column">
<%= translations_form.text_area :homepage,
language: I18n.locale,
class: "html-area admin",
hint: t("admin.legislation.processes.form.homepage_description") %>
</div>
<% end %>
</div>
<div class="row">
<div class="small-12 medium-3 column end margin-top">
<%= f.submit(class: "button success expanded", value: t("admin.legislation.processes.#{admin_submit_action(@process)}.submit_button")) %>
</div>
</div>
<% end %>