Sha256: 01861cb733c177a702f60a170cc5f4ca89f133e1ed49e24dfa9c3a7ba1b18d80
Contents?: true
Size: 1.16 KB
Versions: 144
Compression:
Stored size: 1.16 KB
Contents
<%= form_with model: delivery_attempt, url: (delivery_attempt.persisted? ? [:account, delivery_attempt] : [:account, @delivery, :delivery_attempts]), 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: :response_code, options: {autofocus: true} %> <%= render 'shared/fields/text_area', method: :response_body %> <%= render 'shared/fields/text_area', method: :response_message %> <%= render 'shared/fields/text_area', method: :error_message %> <%= render 'shared/fields/text_field', method: :attempt_number %> <%# 🚅 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_attempt], class: "button-secondary" %> <% else %> <%= link_to t('global.buttons.cancel'), [:account, @delivery, :delivery_attempts], class: "button-secondary" %> <% end %> </div> <% end %>
Version data entries
144 entries across 144 versions & 1 rubygems