Sha256: 64753c986c4dd616aa54ff10e278c5327d05d72e2492032b387772dac6a21dcf

Contents?: true

Size: 1.07 KB

Versions: 21

Compression:

Stored size: 1.07 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 &ldquo;#{@page.title}&rdquo;" 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 style="white-space:nowrap"><button class="btn btn-default btn-sm page_content_block" type="button" data-content_block="<%= content_block.name %>"><%= content_block.name.titleize %></button></td>
        <td><%= content_block.description %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
  <% end %>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/views/smithy/page_contents/new.html.erb
smithycms-0.7.3 app/views/smithy/page_contents/new.html.erb
smithycms-0.7.2 app/views/smithy/page_contents/new.html.erb
smithycms-0.7.1 app/views/smithy/page_contents/new.html.erb
smithycms-0.7.0 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.10 app/views/smithy/page_contents/new.html.erb
smithycms-0.5.99.3 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.9 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.7 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.6 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.5 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.4 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.3 app/views/smithy/page_contents/new.html.erb
smithycms-0.5.99.2 app/views/smithy/page_contents/new.html.erb
smithycms-0.5.99.1 app/views/smithy/page_contents/new.html.erb
smithycms-0.5.99 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.2 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.1 app/views/smithy/page_contents/new.html.erb
smithycms-0.5.2 app/views/smithy/page_contents/new.html.erb
smithycms-0.6.0 app/views/smithy/page_contents/new.html.erb