Sha256: 04a96ec5bdf61397a7880a2088a273b93c58166ecbcdcd0eb1b2a2120c023e59
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
<alv-form-layout> <%= simple_form_for @form_record, html: { enctype: "multipart/form-data" }, data: { turbo: false } do |f| %> <% @f = f %> <div class="space-y-12"> <div class="border-b border-gray-900/10 pb-8"> <% if @title %> <h2 class="text-base font-semibold leading-7 text-gray-900"><%= @title %></h2> <% end %> <% if @description %> <p class="mt-1 text-sm leading-6 text-gray-600"><%= @description %></p> <% end %> <div class="grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6 <%= @description || @title ? "mt-10" : "" %>"> <%= content %> </div> </div> </div> <div class="mt-6 flex items-center justify-end gap-x-6"> <% cancel_url = if @record.persisted? show_path_for(@record, prefix: :admin) else index_path_for(@record, prefix: :admin) end %> <%= link_to "Cancel", cancel_url, class: "text-sm font-semibold leading-6 text-gray-900" %> <%= f.button :submit, class: "cursor-pointer rounded-md bg-primary-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600" %> </div> <% end %> </alv-form-layout>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-1.0.0.pre.alpha.1 | app/components/alveole/form_layout_component.html.erb |