Sha256: 74017a96b4b59b7a4772ef72d191f408c91b25dcdb17069343f50c2e60e5792f

Contents?: true

Size: 1.21 KB

Versions: 93

Compression:

Stored size: 1.21 KB

Contents

<h1>Change Template</h1>

<%= form_for(@node, :as => :node, :url => noodall_admin_node_path(@node), :html => {:method => :put, :id => "node-form"}) do |f| %>
  <%= f.error_messages %>

<div id="main-form">

  <p>Changing a page's template removes all information like modules that will not fit in the new page template.</p>
  <p><strong>This change cannot be undone!</strong></p>

  <fieldset class="template">
    <legend>Select a template *</legend>
<% for template_name in @template_names.reject{|t| t == @node.class.name.titleize } -%>
    <label>
       <%= template_name %> <%= f.radio_button :template, template_name %><br/>
       <%= image_tag "admin/templates/#{template_name.parameterize}.gif", :title => template_name %>
    </label><br/>
<% end -%>
  </fieldset>


  <div id="templates">
    <span id="current-label">Current</span>
    <span id="new-label">New</span><br /><br />
    <%= image_tag "admin/templates/#{@node.template.parameterize}.gif", :title => @node.template %>
  </div>
</div>

  <div class="fixed-form">
    <div id="buttons">
      <%= f.submit 'Change', :class => 'change', :name => 'commit' %>
      <%= link_to 'Cancel', noodall_admin_node_path(@node), :class => 'cancel'  %>
    </div>
  </div>

<% end %>

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
noodall-ui-0.1.15 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.14 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.13 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.12 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.11 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.10 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.9 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.8 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.6 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.5 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.4 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.3 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.2 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.1 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.1.0 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.0.22 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.0.21 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.0.20 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.0.19 app/views/noodall/admin/nodes/change_template.html.erb
noodall-ui-0.0.18 app/views/noodall/admin/nodes/change_template.html.erb