Sha256: c213534ec52dccf28ff418e0e1f458c5a8f5ea4018f46acc74b9f038e140c55f

Contents?: true

Size: 701 Bytes

Versions: 7

Compression:

Stored size: 701 Bytes

Contents

<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->

<h2>Add a new <%= singular_name.humanize.downcase %></h2>

<%%= form_for @<%= file_name %>, url: casein_<%= @plural_route %>_path do |f| %>

  <%%= render partial: 'casein/<%= plural_name %>/form', locals: { f: f } %>

  <p class="submits">
    <%%= link_to 'Cancel', casein_<%= @plural_route %>_path, class: 'btn btn-mini btn-danger' %>
    <%%= f.submit "Add new <%= singular_name.humanize.downcase %>", class: "btn btn-mini btn-primary" %>
  </p>

<%% end %>

<%%= content_for :sidebar do %>
  <li><%%= link_to "#{casein_show_icon "th-list"}Back to list".html_safe, casein_<%= @plural_route %>_path %></li>
<%% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
casein-5.5.1.0 lib/generators/casein/scaffold/templates/views/new.html.erb
casein-5.5.0.0 lib/generators/casein/scaffold/templates/views/new.html.erb
casein-5.4.0.0 lib/generators/casein/scaffold/templates/views/new.html.erb
casein-5.3.2.0 lib/generators/casein/scaffold/templates/views/new.html.erb
casein-5.3.1.0 lib/generators/casein/scaffold/templates/views/new.html.erb
casein-5.3.0.0 lib/generators/casein/scaffold/templates/views/new.html.erb
casein-5.2.0.0 lib/generators/casein/scaffold/templates/views/new.html.erb