Sha256: feff5bbed9613bc39c242e3b9178b0aab604201c5576b7bfcb4539800e6dae69

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

- new_record = @notification_subscription.new_record?
- options = new_record ? {:url => whoops_notification_subscriptions_path, :method => :post} : {:url => whoops_notification_subscription_path(@notification_subscription), :method => :put}
= form_for :notification_subscription, options do |f|
  #new-notification-rule
    %label.nofloat
      Email
      %br
      =f.text_field :email
    .filters
      = render(:partial => "filters/filters", :locals => {:filter => @notification_subscription.filter} )
    = submit_tag (new_record ? "Create" : "Update"), :class => "btn primary"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whoops-0.5.5 app/views/notification_subscriptions/_form.html.haml
whoops-0.5.4 app/views/notification_subscriptions/_form.html.haml
whoops-0.5.3 app/views/notification_subscriptions/_form.html.haml
whoops-0.5.2 app/views/notification_subscriptions/_form.html.haml
whoops-0.5.1 app/views/notification_subscriptions/_form.html.haml
whoops-0.5.0 app/views/notification_subscriptions/_form.html.haml
whoops-0.4.0 app/views/notification_subscriptions/_form.html.haml