public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / app / views / admin / assets / edit.rhtml
100644 22 lines (19 sloc) 0.957 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<%= render :partial => "action_nav" %>
<% form_for @asset, :html => { :multipart => true } do |f| %>
  <div style="padding: 10px;text-align: center;">
    <%= link_to asset_image_for(@asset, :thumb), @asset.public_filename %>
  </div>
 
  <%= error_messages_for :asset %>
  <dl class="group">
    <dt><label for="asset_title">Title</label> <span class="hint">If you don't enter a title, we will use the filename instead.</span></dt>
    <dd><%= f.text_field :title %></dd>
    <dt><label for="asset_tag">Tags</label> <span class="hint">Enter one or more tags separated by a comma or a space (for example, <em>"Web Dev" Tutorials</em> or <em>Web Dev, Tutorials</em>).</span></dt>
    <dd><%= f.text_field :tag %></dd>
    <dt><label for="asset_uploaded_data">Select a file</label></dt>
    <dd><%= f.file_field :uploaded_data %></dd>
  </dl>
 
  <p class="btns">
    <%= submit_tag 'Save Asset' %>
    or <%= link_to 'cancel', assets_path %>
  </p>
<% end -%>