.row
= simple_form_for(@email, html: { role: 'form', multipart: true }, url: emails_path) do |f|
.row
.col-md-12
- if @email.errors.any?
#error_explanation
%h3.text-center
%mark
= "#{pluralize(@email.errors.count, 'error')} prohibited this contact from being saved:"
%ul
- @email.errors.full_messages.each do |msg|
%li.alert.alert-danger.fade.in{role: 'alert'}
%button.close{'data-dismiss' => 'alert', type: 'button'}
%span{'aria-hidden' => 'true'} ×
%span.sr-only Close
%strong= msg.to_s.humanize
.col-md-12
%h4 Technical Options (Opciones Técnicas):
%hr
.field.col-md-3.col-xs-6.text-center{ style: 'background-color: #e7e7e7;'}
= f.input :mailing, inline_label: 'Mailing (Subscriber Yes/No)', label: false
.row
%hr
.actions.col-md-12.col-xs-12
= f.submit 'Save', class: 'btn btn-lg btn-primary btn-block', id: 'save'