Sha256: 491fb8a457a1bc0e76e9a1969de4b397e14b7084fefc18d2e84b2d0d18926084

Contents?: true

Size: 837 Bytes

Versions: 42

Compression:

Stored size: 837 Bytes

Contents

<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  <div class="max-w-2xl mx-auto ">

    <% if breadcrumb? %>
      <%= breadcrumb %>
    <% end %>

    <div class="my-5 mb-10">
      <div class="mt-2 md:flex md:items-center md:justify-between">

        <% if title? %>
          <%= title %>
        <% end %>

        <% if delete_button? %>
          <%= delete_button %>
        <% end %>

      </div>
    </div>

    <% if @nav_bar %>
      <%= render(@nav_bar) %>
    <% end %>

    <% if item.is_a?(ApplicationRecord) && item.errors.any? %>
      <div class="error-message">
        <%= render('layouts/errors', errors: item.errors.full_messages.to_sentence.capitalize) %>
      </div>
    <% end %>

    <div class="px-4 py-5 bg-white space-y-6 sm:p-6 shadow sm:rounded-md">
      <%= content %>
    </div>
  </div>
</div>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
tybo-0.2.5 app/components/form_component.html.erb
tybo-0.2.4 app/components/form_component.html.erb
tybo-0.2.2 app/components/form_component.html.erb
tybo-0.2.0 app/components/form_component.html.erb
tybo-0.1.2 app/components/form_component.html.erb
tybo-0.1.0 app/components/form_component.html.erb
tybo-0.0.40 app/components/form_component.html.erb
tybo-0.0.39 app/components/form_component.html.erb
tybo-0.0.38 app/components/form_component.html.erb
tybo-0.0.37 app/components/form_component.html.erb
tybo-0.0.36 app/components/form_component.html.erb
tybo-0.0.35 app/components/form_component.html.erb
tybo-0.0.34 app/components/form_component.html.erb
tybo-0.0.32 app/components/form_component.html.erb
tybo-0.0.31 app/components/form_component.html.erb
tybo-0.0.30 app/components/form_component.html.erb
tybo-0.0.29 app/components/form_component.html.erb
tybo-0.0.28 app/components/form_component.html.erb
tybo-0.0.27 app/components/form_component.html.erb
tybo-0.0.26 app/components/form_component.html.erb