forked from thomcowell/radiant-gallery
/
edit.html.erb
19 lines (19 loc) · 963 Bytes
/
edit.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div id="popups">
<div class="popup" id="update-item-popup">
<h3>Edit info</h3>
<% remote_form_for(@item, :url => admin_gallery_item_path(@gallery, @item), :method => 'put',
:loading => "var b = $('popup_save_button'); b.setAttribute('originalValue', b.getAttribute('value')); b.setAttribute('value', 'Saving...'); b.setAttribute('disabled', true);"
) do |f| -%>
<div>
<input type="hidden" id="update-item-popup-id-field" name="id" value="" />
<label for="update-item-popup-name-field">Name:</label> <br />
<%= f.text_field :name, :maxlength => 255 %> <br />
<label for="update-item-popup-description-field">Description:</label> <br />
<%= f.text_area :description %><br />
<label for='update-item-popup-keywords-field'>Keywords:</label><br/>
<%= f.text_field :keywords, :maxlength => 255 %><br/>
<%= submit_tag "Save", :id => 'popup_save_button' %>
</div>
<% end %>
</div>
</div>