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