Files
nairobi/app/views/admin/legislation/proposals/_form.html.erb
Javi Martín 8ff728ee83 Use the shared partial to render errors
We were using it most of the time, but in some places we still had
duplicated code.
2019-10-25 15:15:47 +02:00

18 lines
871 B
Plaintext

<%= form_for [:admin, @process], html: { data: { watch_changes: true } } do |f| %>
<%= render "shared/errors", resource: @process %>
<div class="small-12 medium-8 column">
<%= f.text_field :custom_list, value: @process.tag_list_on(:customs).to_s,
label: t("admin.legislation.proposals.form.custom_categories"),
hint: t("admin.legislation.proposals.form.custom_categories_description"),
placeholder: t("admin.legislation.proposals.form.custom_categories_placeholder"),
class: "js-tag-list",
aria: { describedby: "tag-list-help-text" } %>
</div>
<div class="small-12 medium-3 column clear end">
<%= f.submit(class: "button expanded", value: t("admin.legislation.processes.#{admin_submit_action(@process)}.submit_button")) %>
</div>
<% end %>