Sha256: 6738c3d5d7f75ae1abc5d7842e0b160824c701e896f34d30506264e30baa1502
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
<%= form_with model: endpoint, url: (endpoint.persisted? ? [:account, endpoint] : [:account, @team, :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 %> <%= 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] } %> <%# 🚅 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, @team, :webhooks_outgoing_endpoints], class: "button-secondary" %> <% end %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems