<commit_before>{% extends "./preregistration/preregbase.html" %}
{% block title %}Preregistration{% endblock %}
{% block content %}

<div class="masthead"></div>

<div class="panel panel-default">
{% if attendee.is_dealer %}
    <span class="text-center"><h2>Dealer Application</h2></span>
{% else %}
    <div class="row bs-wizard" style="border-bottom:0;border-top:0;">   
        <div class="col-xs-4 bs-wizard-step active">
            <div class="text-center bs-wizard-stepnum">Step 1</div>
            <div class="progress">
                <div class="progress-bar"></div>
            </div>
            <a class="bs-wizard-dot"></a>
            <div class="bs-wizard-info text-center">Enter Info</div>
        </div> 
        <div class="col-xs-4 bs-wizard-step disabled">
            <div class="text-center bs-wizard-stepnum">Step 2</div>
            <div class="progress">
                <div class="progress-bar"></div>
            </div>
            <a class="bs-wizard-dot"></a>
            <div class="bs-wizard-info text-center">Review &amp; Pay</div>
        </div>
        <div class="col-xs-4 bs-wizard-step disabled">
            <div class="text-center bs-wizard-stepnum">Step 3</div>
            <div class="progress">
                <div class="progress-bar"></div>
            </div>
            <a class="bs-wizard-dot"></a>
            <div class="bs-wizard-info text-center">Done</div>
        </div>
    </div>

    {% if c.DEALER_REG_START and c.DEALER_REG_PUBLIC %}
        <div class="form-group row">
            <p class="col-sm-6 col-sm-offset-2">
                <strong>Dealers:</strong>
                {% if c.BEFORE_DEALER_REG_PUBLIC %}
                    Registrations for dealer memberships begin {{ c.DEALER_REG_START|datetime }}.
                {% else %}
                    Please register <a href="dealer_registration">here</a>.
                {% endif %}
            </p>
        </div>
    {% endif %}

    <div class="form-group" id="reg-types">
        <label class="col-sm-2 control-label" style="white-space:nowrap">Registration Type</label>
    </div>
{% endif %}

<form method="post" action="form" class="form-horizontal" role="form">

<input type="hidden" name="badge_type" value="{{ attendee.badge_type }}" />
{% if edit_id %}
    <input type="hidden" name="edit_id" value="{{ edit_id }}" />
{% endif %}

{% if not attendee.is_dealer %}
    <div class="form-group" id="badge-types">
        <label class="col-sm-2 control-label">Badge Level</label>
    </div>

    <div class="group_fields hide">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">Group Name</label>
            <div class="col-sm-6">
                <input type="text" name="name" class="form-control" value="{{ group.name }}" />
            </div>
        </div>
    </div>

    <div class="group_fields hide">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">Badges</label>
            <div class="col-sm-6">
                <select name="badges" class="form-control">{% int_options c.MIN_GROUP_SIZE c.MAX_GROUP_SIZE badges %}</select>
            </div>
            (${{ c.GROUP_PRICE }} each)
        </div>
    </div>
{% else %}
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">Dealer Table Name</label>
        <div class="col-sm-6">
            <input class="form-control" type="text" class="focus" name="name" value="{{ group.name }}" maxlength="40" />
        </div>
    </div>

    <div class="form-group">
        <label for="tables" class="col-sm-2 control-label">Tables</label>
        <div class="col-sm-6">
            <select class="form-control" name="tables">
                {% int_options 1 4 group.tables %}
            </select>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">[<i>You may contact us via <a href='{{ c.CONTACT_URL }}'>{{ c.CONTACT_URL }}</a> to request more than {{ c.MAX_TABLES }} tables.</i>]</p>
    </div>

    <div class="form-group">
        <label for="badges" class="col-sm-2 control-label">Badges</label>
        <div class="col-sm-6">
            <select class="form-control" name="badges" onChange="setDealerCost()">{% int_options 1 c.MAX_DEALERS badges %}</select>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">The number of people working your table, including yourself.</p>
    </div>

    <div class="form-group">
        <label for="wares" class="col-sm-2 control-label">What do you sell?</label>
        <div class="col-sm-6">
            <textarea class="form-control" name="wares" rows="4">{{ group.wares }}</textarea>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">Please be detailed; include a link to view your wares if possible.</p>
    </div>

    <div class="form-group">
        <label for="description" class="col-sm-2 control-label">Description</label>
        <div class="col-sm-6">
            <textarea class="form-control" name="description" rows="4" maxlength="400">{{ group.description }}</textarea>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">Please keep to one sentence.</p>
    </div>

    <div class="form-group">
        <label for="special_needs" class="col-sm-2 control-label">Table Requests and Special Requests</label>
        <div class="col-sm-6">
            <textarea class="form-control" name="special_needs" rows="4" placeholder="E.g., specific table, who you would like to sit near, who you would not like to sit near.">{{ group.special_needs }}</textarea>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">No guarantees that we can accommodate any requests.</p>
    </div>

    <div class="form-group">
        <label for="website" class="col-sm-2 control-label">Website URL</label>
        <div class="col-sm-6">
            <input class="form-control" type="text" name="website" value="{{ group.website }}" size="40" />
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">The one you want us to link on our website, or n/a</p>
    </div>
{% endif %}

{% include "regform.html" %}

<div class="form-group">
    <div class="col-sm-6 col-sm-offset-2">
        {% if attendee.is_dealer %}
            <button type="submit" class="btn btn-primary" value="Submit Application">Submit Application</button>
        {% elif not edit_id %}
            <button type="submit" class="btn btn-primary" value="Add to Cart">Add to Cart</button>
        {% else %}
            <button type="submit" class="btn btn-primary" value="Update">Update</button>
        {% endif %}
    </div>
</div>

</form>

{% include "preregistration/disclaimers.html" %}

{% endblock %}
<commit_msg>Show table and badge price for dealers Fixes #1283.<commit_after>{% extends "./preregistration/preregbase.html" %}
{% block title %}Preregistration{% endblock %}
{% block content %}

<div class="masthead"></div>

<div class="panel panel-default">
{% if attendee.is_dealer %}
    <span class="text-center"><h2>Dealer Application</h2></span>
{% else %}
    <div class="row bs-wizard" style="border-bottom:0;border-top:0;">   
        <div class="col-xs-4 bs-wizard-step active">
            <div class="text-center bs-wizard-stepnum">Step 1</div>
            <div class="progress">
                <div class="progress-bar"></div>
            </div>
            <a class="bs-wizard-dot"></a>
            <div class="bs-wizard-info text-center">Enter Info</div>
        </div> 
        <div class="col-xs-4 bs-wizard-step disabled">
            <div class="text-center bs-wizard-stepnum">Step 2</div>
            <div class="progress">
                <div class="progress-bar"></div>
            </div>
            <a class="bs-wizard-dot"></a>
            <div class="bs-wizard-info text-center">Review &amp; Pay</div>
        </div>
        <div class="col-xs-4 bs-wizard-step disabled">
            <div class="text-center bs-wizard-stepnum">Step 3</div>
            <div class="progress">
                <div class="progress-bar"></div>
            </div>
            <a class="bs-wizard-dot"></a>
            <div class="bs-wizard-info text-center">Done</div>
        </div>
    </div>

    {% if c.DEALER_REG_START and c.DEALER_REG_PUBLIC %}
        <div class="form-group row">
            <p class="col-sm-6 col-sm-offset-2">
                <strong>Dealers:</strong>
                {% if c.BEFORE_DEALER_REG_PUBLIC %}
                    Registrations for dealer memberships begin {{ c.DEALER_REG_START|datetime }}.
                {% else %}
                    Please register <a href="dealer_registration">here</a>.
                {% endif %}
            </p>
        </div>
    {% endif %}

    <div class="form-group" id="reg-types">
        <label class="col-sm-2 control-label" style="white-space:nowrap">Registration Type</label>
    </div>
{% endif %}

<form method="post" action="form" class="form-horizontal" role="form">

<input type="hidden" name="badge_type" value="{{ attendee.badge_type }}" />
{% if edit_id %}
    <input type="hidden" name="edit_id" value="{{ edit_id }}" />
{% endif %}

{% if not attendee.is_dealer %}
    <div class="form-group" id="badge-types">
        <label class="col-sm-2 control-label">Badge Level</label>
    </div>

    <div class="group_fields hide">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">Group Name</label>
            <div class="col-sm-6">
                <input type="text" name="name" class="form-control" value="{{ group.name }}" />
            </div>
        </div>
    </div>

    <div class="group_fields hide">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">Badges</label>
            <div class="col-sm-6">
                <select name="badges" class="form-control">{% int_options c.MIN_GROUP_SIZE c.MAX_GROUP_SIZE badges %}</select>
            </div>
            (${{ c.GROUP_PRICE }} each)
        </div>
    </div>
{% else %}
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">Dealer Table Name</label>
        <div class="col-sm-6">
            <input class="form-control" type="text" class="focus" name="name" value="{{ group.name }}" maxlength="40" />
        </div>
    </div>

    <div class="form-group">
        <label for="tables" class="col-sm-2 control-label">Tables</label>
        <div class="col-sm-6">
            <select class="form-control" name="tables">
                {% int_options 1 4 group.tables %}
            </select>
            (${{ c.TABLE_PRICES.default_price }} per table)
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2"><i>You may contact us via <a href='{{ c.CONTACT_URL }}'>{{ c.CONTACT_URL }}</a> to request more than {{ c.MAX_TABLES }} tables.</i></p>
    </div>

    <div class="form-group">
        <label for="badges" class="col-sm-2 control-label">Badges</label>
        <div class="col-sm-6">
            <select class="form-control" name="badges" onChange="setDealerCost()">{% int_options 1 8 badges %}</select>
            (${{ c.DEALER_BADGE_PRICE }} per badge)
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">The number of people working your table, including yourself.</p>
    </div>

    <div class="form-group">
        <label for="wares" class="col-sm-2 control-label">What do you sell?</label>
        <div class="col-sm-6">
            <textarea class="form-control" name="wares" rows="4">{{ group.wares }}</textarea>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">Please be detailed; include a link to view your wares if possible.</p>
    </div>

    <div class="form-group">
        <label for="description" class="col-sm-2 control-label">Description</label>
        <div class="col-sm-6">
            <textarea class="form-control" name="description" rows="4" maxlength="400">{{ group.description }}</textarea>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">Please keep to one sentence.</p>
    </div>

    <div class="form-group">
        <label for="special_needs" class="col-sm-2 control-label">Table Requests and Special Requests</label>
        <div class="col-sm-6">
            <textarea class="form-control" name="special_needs" rows="4" placeholder="E.g., specific table, who you would like to sit near, who you would not like to sit near.">{{ group.special_needs }}</textarea>
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">No guarantees that we can accommodate any requests.</p>
    </div>

    <div class="form-group">
        <label for="website" class="col-sm-2 control-label">Website URL</label>
        <div class="col-sm-6">
            <input class="form-control" type="text" name="website" value="{{ group.website }}" size="40" />
        </div>
    </div>
    <div class="form-group">
        <p class="help-block col-sm-6 col-sm-offset-2">The one you want us to link on our website, or n/a</p>
    </div>
{% endif %}

{% include "regform.html" %}

<div class="form-group">
    <div class="col-sm-6 col-sm-offset-2">
        {% if attendee.is_dealer %}
            <button type="submit" class="btn btn-primary" value="Submit Application">Submit Application</button>
        {% elif not edit_id %}
            <button type="submit" class="btn btn-primary" value="Add to Cart">Add to Cart</button>
        {% else %}
            <button type="submit" class="btn btn-primary" value="Update">Update</button>
        {% endif %}
    </div>
</div>

</form>

{% include "preregistration/disclaimers.html" %}

{% endblock %}

{'fraction_non_alphanumeric': 0.1805279591257451, 'fraction_numerical': 0.008728356514334373, 'mean_word_length': 2.4339668615984404, 'pattern_counts': {'":': 0, '<': 355, '<?xml version=': 0, '>': 355, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4319875', 'n_tokens_mistral': 4696, 'n_tokens_neox': 4449, 'n_words': 988}