Revision 1, 1.0 kB
(checked in by falcon, 17 years ago)
|
Version one -> initial work from the laptop.
|
Rev | Line | |
---|
[1] | 1 | <h1>New Gallery</h1> |
---|
| 2 | |
---|
| 3 | <%= error_messages_for :gallery %> |
---|
| 4 | |
---|
| 5 | <% form_for(@gallery, { :action => 'do_file_upload' }, :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 | <%= f.select :sType, :class => "textbox" %> |
---|
| 19 | <%= options_for_select ["Artwork", "Engineering"] %> |
---|
| 20 | </p> |
---|
| 21 | |
---|
| 22 | <p> |
---|
| 23 | <b>File Upload</b><br/> |
---|
| 24 | <input type="file" id="gallery_files" name="gallery_files"> |
---|
| 25 | <div id="gallery_files_list"></div> |
---|
| 26 | <script type="text/javascript"> |
---|
| 27 | var multi_selector = new MultiSelector( document.getElementById('gallery_files_list'), 0, 'gallery_files'); |
---|
| 28 | multi_selector.addElement( document.getElementById( 'gallery_files' ) ); |
---|
| 29 | </script> |
---|
| 30 | </p> |
---|
| 31 | |
---|
| 32 | <p> |
---|
| 33 | <%= f.submit "Create" %> |
---|
| 34 | </p> |
---|
| 35 | <% end %> |
---|
| 36 | |
---|
| 37 | <%= link_to 'Back', :controller => 'gallery', :action => 'manage' %> |
---|