Sha256: e5d4fed69ef83d740fe80b58173a6f01959de364ea5e08750a839454a1cabcde

Contents?: true

Size: 993 Bytes

Versions: 4

Compression:

Stored size: 993 Bytes

Contents

<div id="page_content">
  <h2 id="page-title">Edit Page</h2>
  <div class="content">
    <?r if @page.errors.count > 0 ?>
      <div class="message error">
        <?r @page.errors.each do |k, v| ?>
          #{k} #{v.first}<br />
        <?r end ?>
      </div>
    <?r end ?>
    <div class="new-post-form tabular">
       #{
        form_for(@page, :method => :post, :action => '/admin/pages/save/' + @page.id.to_s) do |f|
          f.input_text 'Title', :title
          f.input_text 'Slug', :slug
          f.textarea 'Body', :body
          f.g.p do
            f.g.label do "On Menu?" end
            if @page.on_menu.to_i == 1
              f.g.input(:type => 'checkbox', :id => 'on_menu', :name => 'on_menu', :value => 1, :checked => 'checked')
            else
              f.g.input(:type => 'checkbox', :id => 'on_menu', :name => 'on_menu', :value => 1)
            end
          end
          f.submit "Save", :class => "submit-btn"
        end
      }
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogaze-0.1.0 lib/blogaze/themes/default/admin/pages/edit.xhtml
blogaze-0.0.3 lib/blogaze/themes/default/admin/pages/edit.xhtml
blogaze-0.0.2 proto/themes/default/admin/pages/edit.xhtml
blogaze-0.0.1 proto/themes/default/admin/pages/edit.xhtml