Sha256: 4f417884e2b62319362cccf03f56969558e552c6d895bc6cf213ae74ee3be3dc
Contents?: true
Size: 1.48 KB
Versions: 8
Compression:
Stored size: 1.48 KB
Contents
<%= simple_form_for report_email, as: report_email, url: report_email.new_record? ? report_emails_url : report_email_url(report_email), defaults: { wrapper_html: { class: 'span2'}, input_html: { class: 'input-medium' }, label_html: { class: 'quiet'}}, html: { class: 'form-inline', data: { ajax_form: true, sub_type: "AddALineForm", ajax_target: report_email.new_record? ? '#report_email_list' : "#report_email_#{report_email.id}", error_target: "new_report_email_container_#{report_email.report_id}", insert_method: report_email.new_record? ? 'append' : 'html', container: "new_report_email_container_#{report_email.report_id}", ajax_flash: true }} do |f| %> <div class="scol one-third"> <%= f.input :name %> </div> <div class="scol one-third"> <%= f.input :report_id, as: :hidden %> <%= f.input :when_to_send, collection: ClarkKent::ReportEmail::SEND_TIMES, include_blank: false %> </div> <div class="scol one-third right margin-top"> <%= f.button :submit %> <% unless report_email.new_record? %> <%= link_to 'cancel', report_email_url(report_email), data: {ajax_link: "true", ajax_target: "#report_email_#{report_email.id}" } %> <%= link_to '⊗'.html_safe, report_email_url(report_email), class: "delete", data: {ajax_delete: "true", ajax_target: "#report_email_#{report_email.id}"}, tabindex: "-1" %> <% end %> </div> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems