Sha256: 795fb6caacfc93a21247bacaa97123ca749231fc640db78866d7d28a0694701f

Contents?: true

Size: 1.12 KB

Versions: 144

Compression:

Stored size: 1.12 KB

Contents

<%= form_with model: delivery, url: (delivery.persisted? ? [:account, delivery] : [:account, @endpoint, :deliveries]), local: true, class: 'form' do |form| %>
  <%= render 'account/shared/forms/errors', form: form %>

  <% with_field_settings form: form do %>
    <%= render 'shared/fields/super_select', method: :event_id, options: {autofocus: true, include_blank: t('.fields.event_id.placeholder')}, 
    choices: @delivery.valid_events.map { |event| [event.label_string, event.id] } %>
    <%= render 'shared/fields/text_field', method: :endpoint_url %>
    <%= render 'shared/fields/date_and_time_field', method: :delivered_at %>
    <%# 🚅 super scaffolding will insert new fields above this line. %>
  <% end %>

  <div class="buttons">
    <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
    <% if form.object.persisted? %>
    <%= link_to t('global.buttons.cancel'), [:account, delivery], class: "button-secondary" %>
    <% else %>
    <%= link_to t('global.buttons.cancel'), [:account, @endpoint, :deliveries], class: "button-secondary" %>
    <% end %>
  </div>

<% end %>

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
bullet_train-outgoing_webhooks-1.10.0 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.9.0 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.8.5 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.8.4 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.8.3 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.8.2 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.8.1 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.8.0 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.23 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.22 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.21 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.20 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.19 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.18 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.17 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.16 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.15 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.14 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.13 app/views/account/webhooks/outgoing/deliveries/_form.html.erb
bullet_train-outgoing_webhooks-1.7.12 app/views/account/webhooks/outgoing/deliveries/_form.html.erb