Revision 4, 1.5 kB
(checked in by falcon, 17 years ago)
|
75% complete. ajax support for engineering and galleries. galleries add/edit. artwork and engineering layouts.
|
Rev | Line | |
---|
[4] | 1 | <h1>New Gallery</h1> |
---|
| 2 | |
---|
| 3 | <%= error_messages_for :gallery %> |
---|
| 4 | |
---|
| 5 | <% form_for(@gallery, { :action => 'create' }, :html => {:multipart => true}) do |f| %> |
---|
| 6 | <p> |
---|
| 7 | <b>Title</b><br /> |
---|
| 8 | <%= f.text_field :sTitle, :class=>"textbox" %> |
---|
| 9 | </p> |
---|
| 10 | |
---|
| 11 | <p> |
---|
| 12 | <b>Description</b><br /> |
---|
| 13 | <%= f.text_area :tDescription, :class=>"textbox" %> |
---|
| 14 | </p> |
---|
| 15 | |
---|
| 16 | <p> |
---|
| 17 | <b>Type</b><br/> |
---|
| 18 | <select name="gallery[sType]" class="textbox" > |
---|
| 19 | <%= options_for_select [["Artwork", "Artwork"], ["Engineering", "Engineering"]] %> |
---|
| 20 | </select> |
---|
| 21 | </p> |
---|
| 22 | |
---|
| 23 | <p> |
---|
| 24 | <b>File Upload</b><br/> |
---|
| 25 | <input type="file" id="gallery_files" name="gallery_files"> |
---|
| 26 | <div id="gallery_files_list"></div> |
---|
| 27 | <script type="text/javascript"> |
---|
| 28 | var multi_selector = new MultiSelector( document.getElementById('gallery_files_list'), 0, 'gallery_files'); |
---|
| 29 | multi_selector.addElement( document.getElementById( 'gallery_files' ) ); |
---|
| 30 | </script> |
---|
| 31 | </p> |
---|
| 32 | |
---|
| 33 | <p> |
---|
| 34 | <b>Media Upload</b><br/> |
---|
| 35 | <input type="file" id="gallery_media" name="gallery_media"> |
---|
| 36 | <div id="gallery_media_list"></div> |
---|
| 37 | <script type="text/javascript"> |
---|
| 38 | var multi_selector = new MultiSelector( document.getElementById('gallery_media_list'), 0, 'gallery_media'); |
---|
| 39 | multi_selector.addElement( document.getElementById( 'gallery_media' ) ); |
---|
| 40 | </script> |
---|
| 41 | </p> |
---|
| 42 | |
---|
| 43 | <p> |
---|
| 44 | <%= f.submit "Create" %> |
---|
| 45 | </p> |
---|
| 46 | <% end %> |
---|
| 47 | |
---|
| 48 | <%= link_to 'Back', :controller => 'gallery', :action => 'manage' %> |
---|