Sha256: a8a8b4df0046210dda686989c801b46f1327612d1421c56cf43edb02103f806b
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
<header> <%% status = params[:status] || @feather_page.status %> <div class="subnav"> <ul class="nav nav-pills"> <li class='<%%= status == 'published' ? 'active ' : '' %>'> <%%= link_to 'Published Page', feather_page_path('<%= @type %>',:published) %> </li> <li class='<%%= status == 'draft' ? 'active ' : '' %>'> <%%= link_to 'Draft Page', feather_page_path('<%= @type %>', :draft) %> </li> <li> <%%= link_to 'Preview', feather_page_preview_path('<%= @type %>', status), target: '_blank' %> </li> </ul> </div> <hr> </header> <div class="row"> <div class="span12"> <%%= form_for(@feather_page, :url => feather_page_path('<%= @type %>')) do |f| %> <div class="control-group"> <label class="control-label" for="status">Status</label> <div class="controls"> <%%= f.select :status, [:draft, :published] %> </div> <label class="control-label" for="layout">Layout</label> <div class="controls"> <%%= f.select :layout, FeatherCms::Config.layouts %> </div> </div> <div class="control-group"> <label class="control-label" for="textarea">Content</label> <div class="controls"> <%%= f.text_area :content, :class => 'codemirror_feather_cms input-xlarge span12', :row => "20" %> </div> </div> <%%= f.submit "Save", :class => 'btn btn-primary btn-large' %> <%% end %> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feather_cms-0.0.1 | lib/generators/feather_cms/templates/form.html.erb |