Sha256: 1eff48d14987053f74fe6aa717f23a5abeb1db32c3259ed86f155d3786a46305
Contents?: true
Size: 1 KB
Versions: 4
Compression:
Stored size: 1 KB
Contents
<% if @snippet.new_record? -%> <h1>New Snippet</h1> <% else -%> <h1>Edit Snippet</h1> <% end -%> <form method="post" action=""> <%= hidden_field "snippet", "lock_version" %> <div class="form-area"> <p class="title"> <label for="snippet_name">Name</label> <%= text_field "snippet", "name", :class => 'textbox', :maxlength => 100 %> </p> <p class="content"> <label for="snippet_content">Body</label> <%= text_area "snippet", "content", :class => "textarea", :style => "width: 100%" %></p> <p> <label for="snippet_filter">Filter</label> <%= select_tag "snippet[filter_id]", options_for_select([['none', '']] + TextFilter.descendants.map { |f| f.filter_name }.sort, @snippet.filter_id), :id => 'snippet_filter' %> </p> <%= updated_stamp @snippet %> </div> <p class="buttons"> <%= save_model_button(@snippet) %> <%= save_model_and_continue_editing_button(@snippet) %> or <%= link_to "Cancel", snippet_index_url %> </p> </form> <%= focus 'snippet_name' %>
Version data entries
4 entries across 4 versions & 1 rubygems