Template source: listing/_bidding_buy_widget.html

{% load buy_item %}{% load i18n %}{% load currency %}{% load widget_tweaks %}{% load secure_url %}{% load flatpages %}{% load captureas %}
{% if listing.is_active %}
<hr>
<section id="bid-widget">
    <form class="bid-widget-form">
          <h4 class="uppercase bold small text-center appendtop-15">{% trans "Bid Amount" %}</h4>
          <div class="input-prepend">
            <span class="add-on">$</span>
            {% if 'quickbid' in request.GET %}
              {{ bid_form.current_bid|attr:current_bid_value_text }}
            {% else %}
              {{ bid_form.current_bid|attr:current_bid_placeholder_text }}
            {% endif %}
          </div>
          <script>
          $(document).ready(function(){
              $('#id_current_bid').one('click', function(){
                  $(this).val('');
              });
          });
          </script>
          <h4 class="uppercase bold small text-center appendtop-15">{% trans "Place proxy bid?" %}
            {% get_flatpages '/popover/proxy_bid/' as proxy_bid_popover %}
            <i class="ss-help ss-dark-grey ss-large lowercase"
              rel="popover"
              data-title="<span><i class='ss-help'></i> {{ proxy_bid_popover.0.title|escape }}</span><a href='javascript:;' onclick='$(&quot;[rel=popover]&quot;).popover(&quot;hide&quot;);' class='close'><i class='ss-delete ss-dark-grey'></i></a>"
              data-content="{{ proxy_bid_popover.0.content|escape }}"
              data-html="true"
              data-placement="bottom">
            </i>
          </h4>
        <div class="proxy-bid appendbottom-15">
          <div class="btn-group btn-80">
            {{ bid_form.proxy_bid }}
          </div>
        </div>
    </form>
    <div class="bidding-widget relative appendbottom-15">
        {% get_flatpages '/popover/bidding_info/' as bid_info_popover %}
        <button id="bid-btn" class="btn btn-green btn-wide-80 btn-loader" {% if not user.is_authenticated or not hide_bidding_info %} style="display:none"{% endif %}>{% trans 'Bid Now' %}</button>
        <button id='sign-in' class='btn btn-green btn-wide-80 btn-loader'{% if user.is_authenticated %} style="display:none"{% endif %}>{% trans 'Bid Now' %}</button>
        <button id='bid-info' class='btn btn-green btn-wide-80 btn-loader' {% if not user.is_authenticated or hide_bidding_info %} style="display:none"{% endif %}>{% trans 'Bid Now' %}</button>
        <h4 class="uppercase bold small text-center appendtop-15">{% trans 'Bidding Info' %}
            <i class="ss-help ss-dark-grey ss-large lowercase"
              rel="popover"
              data-title="<span><i class='ss-help'></i> {{ bid_info_popover.0.title|escape }}</span><a href='javascript:;' onclick='$(&quot;[rel=popover]&quot;).popover(&quot;hide&quot;);' class='close'><i class='ss-delete ss-dark-grey'></i></a>"
              data-content="{{ bid_info_popover.0.content|escape }}"
              data-html="true"
              data-placement="bottom">
            </i>
        </h4>
    </div>
</section>
{% endif %}
<hr>