Sha256: 3a851323d987f168e43608a964feb9afc4c043657995bb65160e8f61b34f093c
Contents?: true
Size: 937 Bytes
Versions: 2
Compression:
Stored size: 937 Bytes
Contents
<% if @snippet.new_record? -%> <h1>New Snippet</h1> <% else -%> <h1>Edit Snippet</h1> <% end -%> <form method="post"> <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.find_all.map { |f| f.registered_id }, @snippet.filter_id) %> </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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.1 | app/views/admin/snippet/new.rhtml |
radiant-0.5.2 | app/views/admin/snippet/new.rhtml |