<div id="rfqCol1">
<% field_set_tag "General" do %>
<div id="firstSet">
<%= f.text_field :title, :class => 'required' %>
<%= f.text_field :quantity, :class => 'required' %>
<%= form_tip "You may enter more than one quantity above." %>
</div>
<% end %>
<% field_set_tag "Specifications" do %>
<div id="bindingSet">
<%= f.select :orientation, [['Square', 'Square'], ['Portrait', 'Portrait'], ['Landscape', 'Landscape']], :label => 'Orientation' %>
<%= f.text_field :trim_size, :label => 'Trim Size' %>
<%= form_tip 'e.g. 216mm x 279mm (8 1/2" x 11")' %>
<%= f.select :binding_type, [["Hardcover", "Hardcover"], ["Hardcover Round Back", "Hardcover Round Back"], ["Hardcover Lay-flat", "Hardcover Lay-flat"], ["Hardcover Square Back", "Hardcover Square Back"], ["PUR", "PUR"], ["Perfect Bound Paperback", "Perfect Bound Paperback"], ["Notch Perfect Bound", "Notch Perfect Bound"], ["Smythe-sewn Perfect Bound", "Smythe-sewn Perfect Bound"], ["Concealed Wire-O", "Concealed Wire-O"], ["Wire-O", "Wire-O"], ["Semi-concealed Wire-O", "Semi-concealed Wire-O"], ["Plastic Spiral", "Plastic Spiral"], ["Saddle Stitch (stapled)", "Saddle Stitch (stapled)"], ["Other (specify in comments)", "Other (specify in comments)"]], :label => 'Binding Type' %>
<%= f.text_field :pages, :size => 4, :label => 'Pages of Text' %>
<%= f.text_area :binding_notes, :rows => 4, :cols => 30, :label => 'Notes' %>
<%= f.select :board, ['3mm', '2.5mm', '2mm', '1.5mm', '1mm'], :include_blank => true, :class => 'formFloater' %>
<%= f.check_box :board_front, :class => 'checkbox formFloater', :label => 'Front' %>
<%= f.check_box :board_back, :class => 'checkbox formFloater', :label => 'Back' %>
</div>
<% end %>
<% field_set_tag "Cover" do %>
<div id="coverSet">
<%= f.select :cover_type, [["Gloss Art Paper", "Gloss Art Paper"], ["Matte Art Paper", "Matte Art Paper"], ["Woodfree Paper", "Woodfree Paper"]], :label => 'Paper Type', :class => 'formFloater' %>
<%= f.select :cover_weight, ['128gsm', '157gsm', '210gsm', '250gsm', '300gsm', '350gsm', '400gsm'], :label => 'Weight', :class => 'formFloater' %>
<div class="clear">
<%= f.select :colors_cover_1, [[1],[2],[3],[4],['5 (PMS)'],['6 (PMS)'],['7 (PMS)'],['5 (Hi-Fi)'],['6 (Hi-Fi)']], :label => 'Colors', :help => 'outside cover', :class => 'formFloater', :selected => 4 %>
</div>
<%= f.select :colors_cover_2, [[0,0],[1,1],[2,2],[3,3],[4,4],['5 (PMS)'],['6 (PMS)'],['7 (PMS)'],['5 (Hi-Fi)'],['6 (Hi-Fi)']], :label => 'Colors', :help => 'inside cover', :class => 'formFloater' %>
<div class="clear">
<p>Please specify additional PANTONE colors below:</p>
<%= f.text_area :pantone_cover, :rows => 4, :cols => 30, :label => 'PANTONE' %>
<%= f.select :finishing_cover, ['Glossy Lamination', 'Matte Lamination'], :label => 'Finishing', :include_blank => true %>
<%= f.check_box :uv_cover, :class => 'checkbox formFloater', :label => 'UV' %>
<%= f.check_box :foil_cover, :class => 'checkbox formFloater', :label => 'Foil' %>
<%= f.check_box :emboss_cover, :class => 'checkbox formFloater', :label => 'Emboss' %>
</div>
</div>
<% end %>
<% field_set_tag "Dust Jacket" do %>
<div id="djSet">
<%= f.check_box :dust_jacket, :class => 'checkbox', :label => 'Include a dust jacket.' %>
<div id="djStuff">
<%= f.select :dj_type, [["Gloss Art Paper", "Gloss Art Paper"], ["Matte Art Paper", "Matte Art Paper"], ["Woodfree Paper", "Woodfree Paper"]], :label => 'Paper Type', :class => 'formFloater' %>
<%= f.select :dj_weight, ['128gsm', '157gsm', '210gsm', '250gsm', '300gsm', '350gsm', '400gsm'], :label => 'Weight', :class => 'formFloater' %>
<div class="clear">
<%= f.select :colors_dj, [[1,1],[2,2],[3,3],[4,4],['5 (PMS)'],['6 (PMS)'],['7 (PMS)'],['5 (Hi-Fi)'],['6 (Hi-Fi)']], :label => 'Colors', :help => 'outside cover', :class => 'formFloater', :selected => 4 %>
</div>
<div class="clear">
<p>Please specify additional PANTONE colors below:</p>
<%= f.text_area :pantone_dj, :rows => 4, :cols => 30, :label => 'PANTONE' %>
<%= f.select :finishing_dj, ['Glossy Lamination', 'Matte Lamination'], :label => 'Finishing', :include_blank => true %>
<%= f.check_box :uv_dj, :class => 'checkbox formFloater', :label => 'UV' %>
<%= f.check_box :foil_dj, :class => 'checkbox formFloater', :label => 'Foil' %>
<%= f.check_box :emboss_dj, :class => 'checkbox formFloater', :label => 'Emboss' %>
</div>
</div>
</div>
<% end %>
<% field_set_tag "Text" do %>
<div id="coverSet">
<%= f.select :paper_type, [["Gloss Art Paper", "Gloss Art Paper"], ["Matte Art Paper", "Matte Art Paper"], ["Woodfree Paper", "Woodfree Paper"]], :label => 'Paper Type', :class => 'formFloater' %>
<%= f.select :paper_weight, ['Not sure', '60gsm', '80gsm', '105gsm', '128gsm', '157gsm', '210gsm', '250gsm', '300gsm', '350gsm'], :label => 'Weight', :class => 'formFloater required', :include_blank => true %>
<div class="clear">
<%= f.select :colors_text_1, [[1,1],[2,2],[3,3],[4,4],['5 (PMS)'],['6 (PMS)'],['7 (PMS)'],['5 (Hi-Fi)'],['6 (Hi-Fi)']], :label => 'Colors', :help => 'text, side 1', :class => 'formFloater', :selected => 4 %>
<%= f.select :colors_text_2, [[1,1],[2,2],[3,3],[4,4],['5 (PMS)'],['6 (PMS)'],['7 (PMS)'],['5 (Hi-Fi)'],['6 (Hi-Fi)']], :label => 'Colors', :help => 'text, side 2', :class => 'formFloater', :selected => 4 %>
</div>
<div class="clear">
<p>Please specify additional PANTONE colors below:</p>
<%= f.text_area :pantone_text, :rows => 4, :cols => 30, :label => 'PANTONE' %>
<%= f.select :finishing_text, ['Glossy Varnish', 'Matte Varnish'], :label => 'Finishing', :include_blank => true %>
<%= f.check_box :uv_text, :class => 'checkbox formFloater', :label => 'UV' %>
<%= f.check_box :foil_text, :class => 'checkbox formFloater', :label => 'Foil' %>
<%= f.check_box :emboss_text, :class => 'checkbox formFloater', :label => 'Emboss' %>
</div>
</div>
<% end %>
</div>
<div id="rfqCol2" style="float: left; padding: 10px; margin: 10px">
<% field_set_tag "Proofs" do %>
<div id="proofsSet">
<%= f.check_box :wet_proofs, :class => 'checkbox formFloater' %>
<%= f.check_box :digital_proofs, :class => 'checkbox formFloater' %>
<%= f.text_area :proof_notes, :rows => 4, :cols => 30, :label => 'Notes' %>
</div>
<% end %>
<% field_set_tag "File Delivery" do %>
<div id="fileDeliverySet">
<%# select :foo, :file_delivery_method_select, FileDeliveryMethod.find(:all).collect {|fdm| [fdm.name, fdm.name] } %>
<%# f.text_field :file_delivery_method, :label => 'File Delivery Method' %>
<%# f.select :file_delivery_method, FileDeliveryMethod.find(:all).collect {|fdm| [fdm.name, fdm.name] } %>
<%= f.text_field :files_ready_on, :class => 'date validate-date validate-now-or-later', :label => 'Ready Date' %>
<%= form_tip "Click in box for calendar" %>
<%= f.text_area :file_delivery_notes, :rows => 4, :cols => 30, :label => 'Notes', :label => 'Notes' %>
</div>
<% end %>
<% field_set_tag "Delivery" do %>
<div id="deliverySet">
<%= f.text_area :packaging_notes, :rows => 4, :cols => 30, :label => 'Packaging Notes' %>
<%= f.text_area :delivery, :rows => 4, :cols => 30, :label => 'Delivery Instructions' %>
</div>
<% end %>
<% field_set_tag "Contact" do %>
<div id="contactSet">
<% unless current_user %>
<% fields_for :organization, :builder => NframeFormBuilder do |org| %>
<%= org.text_field :name, :class => 'required', :label => 'Company Name' %>
<% end %>
<% fields_for :user, :builder => NframeFormBuilder do |user| %>
<%= user.text_field :first_name, :class => 'required' %>
<%= user.text_field :last_name, :class => 'required' %>
<%= user.text_field :email, :class => 'required validate-email' %>
<% end %>
<% end %>
<% fields_for :phone, :builder => NframeFormBuilder do |phone| %>
<%= phone.text_field :phone_number, :label => 'Phone' %>
<%= phone.text_field :extension %>
<% end %>
<% if @address.new_record? %>
<% fields_for :address, :builder => NframeFormBuilder do |add| %>
<%= add.text_field :address1 %>
<%= add.text_field :address2 %>
<%= add.text_field :country, :value => 'United States' %>
<%= add.text_field :city %>
<p>
<%= add.label :state %>
<%= add.us_state_select :state, :include_blank => true %>
</p>
<%= add.text_field :zip, :label => 'Zip Code', :size => 9, :class => 'required' %>
<% end %>
<% else %>
<% fields_for @address, :builder => NframeFormBuilder do |add| %>
<%= add.text_field :address1 %>
<%= add.text_field :address2 %>
<p>
<%= add.label :country %>
<%= add.country_select :country, ["United States"] %>
</p>
<%= add.text_field :city %>
<p>
<%= add.label :state %>
<%= add.us_state_select :state, {}, { :prompt => '-- Select a State --' } %>
</p>
<%= add.text_field :zip, :label => 'Zip Code', :size => 9 %>
<% end %>
<% end %>
</div>
<% end %>
<% field_set_tag "General" do %>
<div id="generalSet">
<p style="width: 35em;">If you have any special instructions not covered above, please describe them below.</p>
<%= f.text_area :notes, :rows => 10, :cols => 30 %>
<p style="width: 35em;">Privacy policy: We respect your privacy. We use information collected from this site only for the purpose of conducting business with you.</p>
</div>
<div class="submitContainer">
<%= f.submit "Submit RFQ" %>
</div>
<% end %>
</div>
<div class="clear"> </div>