Sha256: 298b6e5aaad16d07b88ee7d6f4180ceca5235b49fbceda03c7c80ff61929e722

Contents?: true

Size: 1.55 KB

Versions: 129

Compression:

Stored size: 1.55 KB

Contents

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

  <% with_field_settings form: form do %>
    <%= render 'shared/fields/text_field', method: :name, options: {autofocus: true} %>
    <%= render 'shared/fields/text_field', method: :url %>
    <% unless I18n.t("webhooks/outgoing/endpoints.fields.api_version.options").keys.one? %>
      <%= render 'shared/fields/super_select', method: :api_version %>
    <% end %>
    <%= render 'shared/fields/super_select', method: :event_type_ids, html_options: {multiple: true},
      choices: @endpoint.valid_event_types.map { |event_type| [event_type.label_string, event_type.id] } %>
    <%= render 'shared/fields/super_select', method: :scaffolding_absolutely_abstract_creative_concept_id,
      choices: [['None', '']] + @endpoint.creative_concepts.map { |event_type| [event_type.name, event_type.id] }, other_options: {search: true} %>
    <%# 🚅 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, endpoint], class: "button-secondary" %>
    <% else %>
    <%= link_to t('global.buttons.cancel'), [:account, @parent, :webhooks_outgoing_endpoints], class: "button-secondary" %>
    <% end %>
  </div>

<% end %>

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
bullet_train-outgoing_webhooks-1.3.6 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.3.5 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.3.4 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.3.3 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.3.2 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.3.1 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.3.0 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.24.4 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.24.3 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.24.2 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.24.1 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.27 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.26 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.25 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.24 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.23 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.22 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.21 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.20 app/views/account/webhooks/outgoing/endpoints/_form.html.erb
bullet_train-outgoing_webhooks-1.2.19 app/views/account/webhooks/outgoing/endpoints/_form.html.erb