{% extends "admin/base_site.html" %}

{% block title %}Apply tags to leads | By ReportLab for Air Seychelles{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs"><a href="/admin/">Home</a>
&rsaquo; <a href="/admin/crm/">Crm</a>
&rsaquo; <a href="/admin/crm/lead/">Leads</a>
&rsaquo; Apply tags to leads</div>
{% endblock %}

{% block content %}
<h1>Apply tags to leads</h1>

<p>
Tagging allows you to group leads together to make them easier to find in future. It is a way of categorising items where they can be assigned many different tag groups. Please try and assign the existing tags to your list first then use the text box if you want to create a new tag.
</p>

<form action="." method="get">
    <table>
        <tr>
            <th>Existing tags:</th>
            <td>
                <input type="hidden" name="ids" value="{% for lead in leads %}{{lead.id}},{% endfor %}"/>
                <select name="tag" size="10" multiple="multiple">
                    {% for tag in tags %}
                    <option value="{{tag.id}}">{{tag}}</option>
                    {% endfor %}
                </select>
            </td>
            <td>
                You can select multiple tags at a time usually by continuously holding down the control key (Ctrl) and clicking each item
            </td>
        </tr>
        <tr>
            <th>New tag:</th>
            <td>
                <input type="text" name="tag"/>
            </td>
        </tr>
    </table>
    <div class="submit-row">
        <input type="submit" name="submit" value="Submit"/>
    </div>
</form>


<h3>These tags will be applied to these leads:</h3>
<ul>
{% for lead in leads %}<li>{{lead}}</li>{% endfor %}
</ul>

{% endblock %}
