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

Revision 10, 1.9 kB (checked in by falcon, 17 years ago)

Final styling tweaks, ordering, misc cleanup.

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           
23           <p>
24            <b>Order Value</b><br/>
25                <div id="Input1" class="textbox">
26                        <%= f.text_field :iOrder %>
27                </div>
28               
29                <div id="Input1Results" class="results"></div>
30               
31                <script type="text/javascript">
32                        var combobox = new ComboBox('Input1', 'Input1Results',
33                        [
34                                <% for choice in @iOrders do -%>
35                                        <%= '"' + choice + '", ' %>
36                                <% end -%>
37                        ]
38                        );
39                </script>         
40           </p>
41
42          <p>
43            <b>File Upload</b><br/>         
44            <input type="file" id="gallery_files" name="gallery_files">
45                    <div id="gallery_files_list"></div>
46                    <script type="text/javascript">
47                         var multi_selector = new MultiSelector( document.getElementById('gallery_files_list'), 0, 'gallery_files');
48                         multi_selector.addElement( document.getElementById( 'gallery_files' ) );
49                         </script>
50          </p>   
51         
52          <p>
53            <b>Media Upload</b><br/>       
54            <input type="file" id="gallery_media" name="gallery_media">
55                    <div id="gallery_media_list"></div>
56                    <script type="text/javascript">
57                         var multi_selector = new MultiSelector( document.getElementById('gallery_media_list'), 0, 'gallery_media');
58                         multi_selector.addElement( document.getElementById( 'gallery_media' ) );
59                         </script>
60          </p>   
61         
62          <p>
63            <%= f.submit "Create" %>
64          </p>
65        <% end %>
66
67        <%= link_to 'Back', :controller => 'gallery', :action => 'manage' %>
Note: See TracBrowser for help on using the browser.