Created
April 12, 2014 12:20
-
-
Save 3lackRos3/10533044 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal fade" id= "step2-alert" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog modal-size"> | |
<div class="modal-content"> | |
<div class="modal-header center"> | |
<i class="icon-warning-sign bigger-200"></i> | |
<h4></h4> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> | |
<span>×</span> | |
</button> | |
</div> | |
</div><!-- /.modal-content --> | |
</div><!-- /.modal-dialog --> | |
</div><!-- /.modal --> | |
<div class="enclose-pbn"> | |
<div class="col-xs-12 bid-wrapper"> | |
<div class = "bid-step-2 col-xs-12"> | |
<!-- <div class="col-xs-6 no-padding steps inactive-step arrow-right-step2 center"> | |
<div class="space-6 col-xs-12"></div> | |
<span class="step col-xs-1 col-sm-offset-1">1</span> | |
<span class="pull-left">Add Features <i class = "icon-ok green" ></i></span> | |
</div> | |
<div class="col-xs-6 no-padding steps active-step center "> | |
<div class="space-6 col-xs-12"></div> | |
<span class="step step col-xs-1 col-sm-offset-1">2</span> | |
<span class="pull-left">Bid Your Price</span> | |
</div> --> | |
<div class="space-10"></div> | |
<div class="step-pane" id="step2"> | |
<div class="row-fluid"> | |
<div class="car-details col-xs-12"> | |
<b><%= @results.first.division_name%></b> <span><%= @results.first.model_name %> MSRP <%= number_to_currency(@base_price[:msrp][:@high]) %> </span> | |
<hr> | |
</div> | |
<div class="col-xs-4"> | |
<% if @results.first == nil %> | |
<%= image_tag "preview.jpg", :class => "car-bid" %> | |
<% else %> | |
<% media_gal = FullVehicleDescription.where(:style_id => params[:trim_id]).first.media_gallery %> | |
<% media_gal.each do |gal| %> | |
<%# if gal[:@primary_color_option_code] == params[:color_code] %> | |
<% if gal[:@primary_color_option_code] == params[:color_code] && gal[:@width] == "640" && gal[:@shot_code] == "03" && gal[:@background_description] == "Transparent" %> | |
<% url = gal[:@url]%> | |
<%# image_tag @results.first.stock_photo_url, :class => "car-bid" %> | |
<%= image_tag url, :class => "car-bid" %> | |
<% end %> | |
<% end %> | |
<%#= image_tag "/upload/ail_prerelease/"+ @viflist.first.vehicle_number.to_s+"_sp0640_032.jpg", :class => "car-bid" %> | |
<% end %> | |
<div class="form-group pull-left col-xs-12 no-padding uncenter"> | |
<%= form_for(@bid,:html => {:novalidate => true}) do |f| %> | |
<%= f.hidden_field :user_id %> | |
<%= hidden_field_tag 'bid_id', @bid.id %> | |
<div class="form_row"> | |
<label for="choose"></label> | |
<br><span class="col-xs-3 no-padding"><%= radio_button_tag 'choose', 'buy', true , :class => "pull-left right_10", :id => "radio_buy" %> <span class="width-35">Buy</span></span> | |
<span class="col-xs-3 no-padding"><%= radio_button_tag 'choose', 'lease' , :class => "", :id => "radio_lease" %><span class="width-35"> Lease</span></span> | |
</div> | |
</div> | |
<div class="form-group pull-left col-xs-12 uncenter no-padding"> | |
<div class="check_finance"> | |
<label> | |
<%= f.check_box :finance, :style => "float:left;", :id => "check_finance", :class => "right_10" %> | |
Do you have your own financing? | |
</label> | |
</div> | |
</div> | |
<div class="form-group pull-left col-xs-12 no-padding uncenter" id="bid_text" style="display:none"> | |
<%= f.text_field :bid_price,:placeholder => "Bid Price", :class => "col-xs-10", :min => 0, :max => 40000000 %> | |
<i class = "icon-question hints" id="bid_tooltip" data-toggle="tooltip" data-placement="top" title="The MSRP & Invoice prices shown do not include Tax, License, Registration and all other fees. Please Enter the price you are willing to pay including all Fees"></i> | |
</div> | |
<div id="lease_text"> | |
<div class="form-group pull-left col-xs-12 uncenter no-padding"> | |
<%= f.text_field :monthly_payment, :placeholder => "Monthly Payment", :class => "col-xs-10", :required => "" %> | |
<i class = "icon-question hints" id="monthly_tooltip" data-toggle="tooltip" data-placement="top" title="Enter the monthly payment you desire."></i> | |
</div> | |
<div class="form-group pull-left col-xs-12 uncenter no-padding"> | |
<%= f.text_field :down_payment, :placeholder => "Down Payment", :class => "col-xs-10", :required => "" %> | |
<i class = "icon-question hints" id="down_tooltip" data-toggle="tooltip" data-placement="top" title="This payment is made upon you buying the vehicle. The more you pay, the less your monthly payment will be."></i> | |
</div> | |
<div class="form-group pull-left col-xs-12 uncenter no-padding month_pay_drop"> | |
<%# f.number_field :no_of_month,:placeholder => "No of month", :class => "col-xs-10", :min => 0, :max => 12 %> | |
<%= f.select(:no_of_month,["12","24","36","48","60","72"], {:prompt => "Number of monthly payment"},{:placeholder => "No of month", :class => "col-xs-10 select_input", :required => ""}) %> | |
<i class = "icon-question hints" id="no_tooltip" data-toggle="tooltip" data-placement="top" title="Enter the duration you would like the loan for. More months = Less monthly payment (but more interest)."></i> | |
</div> | |
<%#= hidden_field_tag 'trim_id', '', :value => params[:trim_id].to_s %> | |
</div> | |
<%= f.hidden_field :trim_id, :value => params[:trim_id].to_s %> | |
<%= f.hidden_field :customer_id, :value => current_user.id %> | |
<%= f.hidden_field :carmake_id, :value => params[:carmake] %> | |
<%= f.hidden_field :carmodel_id, :value => params[:carmodel] %> | |
<%= f.hidden_field :car_colour, :value => params[:color_code] %> | |
<%= f.hidden_field :car_year, :value => params[:platform] %> | |
</div> | |
<div class="col-xs-4"> | |
<div id="accessories"> | |
<b class = "step2-b">Accessories</b> <br> | |
<% CarOption.where(:bid_id => @bid.id).each do |option| %> | |
<tr> | |
<td><%= option.description %></td> | |
<td><%= option.price %></td> | |
</tr> | |
<% end %> | |
</div> | |
<div id = "hint-bid-price" class = "col-xs-10 no-padding "> | |
<div><b class = "step2-b">See how much you're saving</b></div> | |
MSRP including Fees :<%= number_to_currency(@base_price[:msrp][:@high]) %> | |
<div> | |
*Your offer including Fees : | |
<span class="my-fee"></span> | |
</div> | |
<div>Your offer Breakdown</div> | |
<div > | |
<span>Price of Car: </span> | |
<span class = "price-of-car"></span> | |
</div> | |
<div class = "fees-include-tlr"> | |
<i class = "icon-question" id="fee_tooltip" data-toggle="tooltip" data-placement="top" title="Fees are estimated at 9% of the Price of the car, this can fluctuate depending on your physical address,car"></i> | |
<span>Fees (Includes TLR):</span> | |
<span class = "fees-includes"></span> | |
</div> | |
<div> | |
<span>Total:</span> | |
<span class = "total-fees"> </span> | |
</div> | |
</div> | |
</div> | |
<div id="dealers-list" class="col-xs-4 col-sm-4 pricing-box car-bid-details"> | |
<%=render partial: "dealers_list", :object => @dealers, :locals => { :miles => 10, :zipcode => params[:zipcode], :divisionid => params[:carmake] } %> | |
<div class="space-8"></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<br /> | |
<!-- <a href="#credco" role="button" class="btn btn-default" data-toggle="modal" | |
contenteditable="false">Credco</a> --> | |
<div class="row "> | |
<div class="col-xs-12"> | |
<div class="col-xs-6 topten"> | |
<%= link_to raw('<i class="icon-thumbs-up"></i> Save My Bid'), {:controller => "dashboard", :action => "save_bid", :id => params[:save_bid] }, :class => "save_bid", :id => "save_current_bid", :data => {:toggle => "modal"}, :remote => true %> | |
</div> | |
<div class="col-xs-6"> | |
<%= f.submit "Submit Your Bid", :class => "btn shrink btn-success pull-right topten", :id => "step2_submit_bid", :data => {:toggle => "modal", :target => "#submit_bidd"} %> | |
</div> | |
</div> | |
</div> | |
<%= render 'submit_bid_modal' %> | |
<%= render 'save_bid_modal'%> | |
<% end %> | |
</div> | |
</div> | |
<%= render "credco_modal"%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment