{% extends "directories/base.html" %}
{% load directory_tags %}
{% load perm_tags %}
{% load i18n %}

{% block title %}{% trans "Add a New Price:" %} {% firstof MODULE_DIRECTORIES_LABEL trans 'Job' %}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/directories.css">
{% endblock %}

{% block body %}
<div class="t">

    {% directory_pricing_nav request.user %}

    <h1>{% trans "Add a New Price:" %} {% firstof MODULE_DIRECTORIES_LABEL trans 'Directory' %}</h1>
    <p>{% trans "To add a new directory price, complete the fields below and press Submit." %}</p>
    
	<div class="directory-pricing">
	
	{% if form.errors %}
	<div class="errors">
		<p>{% trans "Please review the fields below. Thank you." %}</p>
		<ul>
		{% for field in form %}
			{% if field.errors %}
				<li><a href="javascript:;">{{ field.label_tag }}</a></li>	
			{% endif %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}

    <div class="directory-pricing-wrap">
    <form action="." method="post">{% csrf_token %}
    	<div class="forms">
			<div class="pricing-item">
				<div class="errs">{{ form.duration.errors }}</div>
				<div class="label">{{ form.duration.label_tag }}:</div>
				<div class="field">{{ form.duration }}</div>
				<div class="help">{{ form.duration.help_text }}</div>
				<div class="clear-left"></div>
			</div>

			<div class="pricing-item">
				<div class="errs">{{ form.regular_price.errors }}</div>
				<div class="label">{{ form.regular_price.label_tag }} ({{SITE_GLOBAL_CURRENCYSYMBOL}}):</div>
				<div class="field">{{ form.regular_price }}</div>
				<div class="help">{{ form.regular_price.help_text }}</div>
				<div class="clear-left"></div>
			</div>

			<div class="pricing-item">
				<div class="errs">{{ form.premium_price.errors }}</div>
				<div class="label">{{ form.premium_price.label_tag }} ({{SITE_GLOBAL_CURRENCYSYMBOL}}):</div>
				<div class="field">{{ form.premium_price }}</div>
				<div class="help">{{ form.premium_price.help_text }}</div>
				<div class="clear-left"></div>
			</div>
			
			<div class="pricing-item">
				<div class="errs">{{ form.regular_price_member.errors }}</div>
				<div class="label">{{ form.regular_price_member.label_tag }} ({{SITE_GLOBAL_CURRENCYSYMBOL}}):</div>
				<div class="field">{{ form.regular_price_member }}</div>
				<div class="help">{{ form.regular_price_member.help_text }}</div>
				<div class="clear-left"></div>
			</div>

			<div class="pricing-item">
				<div class="errs">{{ form.premium_price_member.errors }}</div>
				<div class="label">{{ form.premium_price_member.label_tag }} ({{SITE_GLOBAL_CURRENCYSYMBOL}}):</div>
				<div class="field">{{ form.premium_price_member }}</div>
				<div class="help">{{ form.premium_price_member.help_text }}</div>
				<div class="clear-left"></div>
			</div>

			<div class="pricing-item">
				<div class="errs">{{ form.show_member_pricing.errors }}</div>
				<div class="label">{{ form.show_member_pricing.label_tag }}</div>
				<div class="field">{{ form.show_member_pricing }}</div>
				<div class="help">{{ form.show_member_pricing.help_text }}</div>
				<div class="clear-left"></div>
			</div>


			</div>

        </div>
        
        <div id="pricing-submit">
        	<input type="submit" value="Submit" />
        </div>
        <div class="clear"></div>
    </form>

    </div>
 

</div>
{% endblock %}
