root/app/views/galleries/new.html.erb @ 2

Revision 2, 1.5 kB (checked in by falcon, 17 years ago)

added plugins

Line 
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            <select name="gallery[sType]" class="textbox" >
19                <%= options_for_select [["Artwork", "Artwork"], ["Engineering", "Engineering"]] %>
20            </select>
21           </p>
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            <b>Media Upload</b><br/>       
34            <input type="file" id="gallery_media" name="gallery_media">
35                    <div id="gallery_media_list"></div>
36                    <script type="text/javascript">
37                         var multi_selector = new MultiSelector( document.getElementById('gallery_media_list'), 0, 'gallery_media');
38                         multi_selector.addElement( document.getElementById( 'gallery_media' ) );
39                         </script>
40          </p>   
41         
42          <p>
43            <%= f.submit "Create" %>
44          </p>
45        <% end %>
46
47        <%= link_to 'Back', :controller => 'gallery', :action => 'manage' %>
Note: See TracBrowser for help on using the browser.