Sha256: 73619c5c104a0587d643c1b023fba32c8bf17614a6b3b866ee7d2580f2ef8c3d

Contents?: true

Size: 969 Bytes

Versions: 8

Compression:

Stored size: 969 Bytes

Contents

<%%= form_with(model: <%= @variable_subject %>, url: ((["new", "create"].include? action_name) ? <%= [@route_scope_path, @scope_path].reject { |c| c.empty? }.join("_") %>_path : <%= [@route_scope_path, @scope_path.singularize].reject { |c| c.empty? }.join("_") %>_path(<%= @variable_subject %>)), class: "contents") do |form| %>

  <%%= render "components/error_form_submit", resource: <%= @variable_subject %> if <%= @variable_subject %>.errors.any? %>

  <div class="space-y-12 sm:space-y-16">
    <div>
      <div class="mt-10 space-y-8 pb-12 sm:space-y-0 sm:pb-0 p-4 class-card-container">
        <%= @form_fields_html %>
      </div>
    </div>
  </div>

  <div class="mt-6 flex items-center justify-end gap-x-6">
    <%%= link_to "Back", <%= [@route_scope_path, @scope_path].reject { |c| c.empty? }.join("_") %>_path, class: "inline-flex justify-center class-button" %>
    <%%= form.submit class: "inline-flex justify-center class-button" %>
  </div>
<%% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sun-sword-0.0.9 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.8 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.7 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.6 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.5 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.4 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.3 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt
sun-sword-0.0.2 lib/generators/sun_sword/templates_scaffold/views/_form.html.erb.tt