<%= form_for @admin_banner, html: { class: 'post' } do |f| %> <%= error_messages_for @admin_banner %>

<%= ts('* Required information') %>

<%= ts('Admin Banner') %>

<%= ts('Admin Banner') %>

<%= f.label :content, ts('Banner text') + '*' %>

<%= allowed_html_instructions %>

<%= f.text_area :content %>
<%= ts('Banner type') %>*
  • <%= f.radio_button :banner_type, '', checked: true %> <%= f.label :banner_type_, ts('Default') %>
  • <%= f.radio_button :banner_type, 'event' %> <%= f.label :banner_type_event, ts('Event (For membership drives, celebrations, etc.)') %>
  • <%= f.radio_button :banner_type, 'alert' %> <%= f.label :banner_type_alert, ts('Alert (For bugs, important changes, expected downtime, etc.)') %>
<%= f.check_box :active %>
<%= f.label :active, ts('Active') %>
<% if @admin_banner.active? %>
<%= check_box_tag :admin_banner_minor_edit %>
<%= label_tag :admin_banner_minor_edit, ts('This is a minor update (Do not turn the banner back on for users who have dismissed it)') %>
<% end %>
<%= ts('Actions') %>

<%= ts('Actions') %>

<%= f.submit @admin_banner.new_record? ? ts('Create Banner') : ts('Update Banner') %>

<% end %>