Sha256: 6de4537fb175212b039743738182319a6cb1f8728860f8f399569634fbc49a99

Contents?: true

Size: 1.48 KB

Versions: 52

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="ih-span one-third">
    <%= f.input :name %>
  </div>
  <div class="ih-span one-third">
    <%= f.input :report_id, as: :hidden %>
    <%= f.input :when_to_send, collection: ClarkKent::ReportEmail::SEND_TIMES, include_blank: false %>
  </div>
  <div class="ih-span one-third right margin-top">
    <%= f.button :submit %>
    <% unless report_email.new_record? %>
      &nbsp; <%= link_to 'cancel', report_email_url(report_email),
        data: {ajax_link: "true", ajax_target: "#report_email_#{report_email.id}" } %>
      &nbsp; <%= link_to '&otimes;'.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

52 entries across 52 versions & 1 rubygems

Version Path
clark_kent-0.9.9 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.8 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.7 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.6 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.5 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.4 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.2 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.1 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.9.0 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.11 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.10 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.9 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.8 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.7 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.6 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.5 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.4 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.3 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.2 app/views/clark_kent/report_emails/_form.html.erb
clark_kent-0.8.1 app/views/clark_kent/report_emails/_form.html.erb