Sha256: 7b32192d4377c2c40547a33ae079db2933b9361f02425a63c380fee7bf00eb64
Contents?: true
Size: 1.04 KB
Versions: 9
Compression:
Stored size: 1.04 KB
Contents
<% content_for :title, "Page Content" %> <%= semantic_form_for [@page, @page_content], :url => page_contents_path(@page.id), :html => { :class => 'form-horizontal' } do |f| %> <%= f.inputs "Adding to #{@page_content.container.titleize} on “#{@page.title}”" do %> <%= f.input :label, :hint => "Please enter a label for your content (internal CMS usage only)" %> <%= f.input :container, :as => :hidden %> <%= f.input :content_block_type, :as => :hidden %> <% end %> <%= f.inputs "Choose a Content Block" do %> <table class="table table-bordered table-striped"> <thead> <tr> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <% @content_blocks.each do |content_block| %> <tr> <td><button class="btn btn-small page_content_block" type="button" data-content_block="<%= content_block.name %>"><%= content_block.name.capitalize %></button></td> <td><%= content_block.description %></td> </tr> <% end %> </tbody> </table> <% end %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems