Sha256: 205d662f5affd791910c4b16a2130a235b1b0caf1fff76981abf11db014637ac

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

<%- model_class = @content.class -%>
<div class="page-header">
  <h1><%=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human,
                                 :default => "New #{model_class.model_name.human}") %></h1>
</div>
<%= form_for @content, :url => contents_path, :as => :content, :html => { :class => 'form-horizontal' } do |f| %>
  <%= render :partial => 'fields_new', :locals => {f: f} %>
  <div class="form-actions">
    <%= f.submit nil, :class => 'btn btn-primary' %>
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                contents_path, :class => 'btn' %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
common-content-0.0.5 app/views/contents/new.html.erb