Sha256: 348bbbe46fcbfb607249759144c71e15706b262ea5c7b5814390dfdad4329a4c
Contents?: true
Size: 700 Bytes
Versions: 5
Compression:
Stored size: 700 Bytes
Contents
<header class="navbar border-bottom py-4"> <h2 class="m-0">Create <%= model_class.name %></h2> <div> <a href="<%= "/admin/#{model_class.name.underscore}" %>" class="btn btn-primary"> Back to index </a> </div> </header> <main class="p-4"> <% if @errors.present? %> <ul class="alert alert-danger"> <% @errors.each do |error| %> <li class="ml-3"><%= error %></li> <% end %> </ul> <% end %> <form method="post" action="/admin/#{model_class.name.underscore}"> <% form_attributes.each do |attribute| %> <div class="mb-3"> <label><%= attribute %></label> <%= render "new/#{attribute}" %> </div> <% end %> </form> </main>
Version data entries
5 entries across 5 versions & 1 rubygems