Sha256: 64c99332751e93cc23587d06d6de0b0e91e2963c25baf1d48c23d0973884a49a

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

<% if @layout.new_record? -%>
<h1>New Layout</h1>
<% else -%>
<h1>Edit Layout</h1>
<% end -%>

<form method="post">
  <div class="form-area">
    <p class="title">
      <label for="layout_name">Name</label>
      <%= text_field "layout", "name", :class => 'textbox', :maxlength => 100 %>
    </p>
    <div id="extended-metadata" class="row"<%= meta_visible(:meta) %>>
      <table class="fieldset" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><label for="layout_content_type">Content-Type</label></td>
          <td class="field"><%= text_field "layout", "content_type", :class => 'textbox', :maxlength => 40 %></td>
        </tr>
      </table>
    </div>
    <p>
      <small>
        <a id="more-extended-metadata" href="<%= toggle_javascript_for('extended-metadata') %>"<%= meta_visible(:meta_more) %>>More</a>
        <a id="less-extended-metadata" href="<%= toggle_javascript_for('extended-metadata') %>"<%= meta_visible(:meta_less) %>>Less</a>
      </small>
    </p>
    <p class="content">
      <label for="layout_content">Body</label>
      <%= text_area "layout", "content", :class => "textarea", :style => "width: 100%" %></p>
    <%= updated_stamp @layout %>
  </div>
  <p class="buttons">
    <%= save_model_button(@layout) %> <%= save_model_and_continue_editing_button(@layout) %> or <%= link_to "Cancel", layout_index_url %>
  </p>
</form>

<%= focus 'layout_name' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-0.5.1 app/views/admin/layout/new.rhtml
radiant-0.5.2 app/views/admin/layout/new.rhtml