{% extends "base.html" %}

{% block content %}

{% if invitation.id %}
<h3>Edit Invite</h3>
{% else %}
<h3>Invite a friend to ContactOtter!</h3>
{% endif %}

<form action="{{ action }}" method="POST">
    {% csrf_token %}
    {% if form.non_field_errors %}
    <ul>
        {% for error in form.non_field_errors %}
        <li>{{ error }}</li>
        {% endfor %}
    </ul>
    {% endif %}
    <div class="form-group">
        <label class="sr-only" for="id_email">Email</label>
        <input id="id_email" class="form-control" maxlength="254" name="email" type="email" placeholder="Email"/>
        {{ form.email.errors }}
    </div>
    <div class="checkbox">
        {{ form.share_book.help_text }}
        <label for="id_share_book">
            <input type="checkbox" {% if share_book %}checked="checked"{% endif %} name="share_book" id="id_share_book">Share your contact book. (Checking this will share your book with this person. Leaving it blank will create a new book for them.)
        </label>
        {{ form.share_book.errors }}
    </div>
    <input id="add_invite" class="btn btn-primary" type="submit" value="Send Invite">
</form>
{% endblock %}
{% extends "base.html" %}

{% block content %}
<ol class="breadcrumb">
    {% include "breadcrumbs_common.html" %}
    {% if not tag %}
    <li class="active">Invitations</li>
    {% endif %}
</ol>
{% if invitation.id %}
<h3>Edit Invite</h3>
{% else %}
<h3>Invite a friend to ContactOtter!</h3>
{% endif %}

<form action="{{ action }}" method="POST">
    {% csrf_token %}
    {% if form.non_field_errors %}
    <ul>
        {% for error in form.non_field_errors %}
        <li>{{ error }}</li>
        {% endfor %}
    </ul>
    {% endif %}
    <div class="form-group">
        <label class="sr-only" for="id_email">Email</label>
        <input id="id_email" class="form-control" maxlength="254" name="email" type="email" placeholder="Email"/>
        {{ form.email.errors }}
    </div>
    <div class="checkbox">
        {{ form.share_book.help_text }}
        <label for="id_share_book">
            <input type="checkbox" {% if share_book %}checked="checked"{% endif %} name="share_book" id="id_share_book">Share your contact book. (Checking this will share your book with this person. Leaving it blank will create a new book for them.)
        </label>
        {{ form.share_book.errors }}
    </div>
    <input id="add_invite" class="btn btn-primary" type="submit" value="Send Invite">
</form>
{% endblock %}
Add breadcrumbs to invite page
Add breadcrumbs to invite page
