Sha256: 55f36d0991ea04b0023e585a7c6a74cc767c888ee3947f4d5721c7e9bc74bf0e

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

%h3 New
- options = @notification_rule.new_record? ? {:url => whoops_notification_rules_path, :method => :post} : {:url => whoops_notification_rule_path(@notification_rule), :method => :put}
= form_for :notification_rule, options do |f|
  #new-notification-rule
    %p
      Email
      %br
      =f.text_field :email
    %p
      Matchers
      %br
      = f.text_area :matchers, :value => @notification_rule.matchers.to_a.join("\n")
    %p= f.submit(:class => "primary btn", :value => "Save Notification Rule")

%p= link_to "Back to notification rules", whoops_notification_rules_path

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
whoops-0.3.5 app/views/notification_rules/_form.html.haml
whoops-0.3.4 app/views/notification_rules/_form.html.haml
whoops-0.3.3 app/views/notification_rules/_form.html.haml
whoops-0.3.2 app/views/notification_rules/_form.html.haml
whoops-0.3.1 app/views/notification_rules/_form.html.haml
whoops-0.3 app/views/notification_rules/_form.html.haml