<% # Copyright (C) 2018 Colin Darie , 2018 Jeremy Lecour , 2018 Evolix %> <% # License: GNU AGPL-3+ (see full text in LICENSE file) %>
<%- if many_channels_available? %>
<%- if f.object.new_record? -%> <%= f.input :channel, collection: Notification.channels.keys, label: false %> <% else -%> <%= f.input_field :channel, as: :string, readonly: true, class: "form-control-plaintext" %> <%- end %>
<% end %>
<%= f.input :recipient, as: :email, label: false %>
<%= f.input :interval, as: :integer, label: false %>
<% if f.object.persisted? %> <%= link_to check_notification_path(check, f.object), method: :delete, remote: true, class: "btn btn-danger" do %> <%== Octicons::Octicon.new("x", width: 15, height: 20).to_svg %> <% end %> <% end %>