{% extends "admin/base_site.html" %}
{% load i18n admin_modify %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
&rsaquo; <a href="{% url 'admin:app_list' app_label='core' %}">Core</a>
&rsaquo; <a href="{% url 'admin:core_whatsappconfig_changelist' %}">WhatsApp Configurations</a>
&rsaquo; {% trans 'Send Test Message' %}
</div>
{% endblock %}

{% block content %}
<div id="content-main">
    <form method="post">
        {% csrf_token %}
        <div>
            <fieldset class="module aligned">
                <div class="form-row">
                    <div>
                        <label class="required" for="id_phone">{% trans 'Test Phone Number' %}:</label>
                        <input type="text" name="phone" id="id_phone" class="vTextField" required placeholder="e.g. 966500000000">
                        <div class="help">{% trans 'Enter the phone number in international format without the + sign.' %}</div>
                    </div>
                </div>
                <div class="form-row">
                    <div>
                        <label class="required" for="id_message">{% trans 'Message' %}:</label>
                        <textarea name="message" id="id_message" class="vLargeTextField" required cols="40" rows="10">{% trans 'This is a test message from your Logistics App.' %}</textarea>
                    </div>
                </div>
            </fieldset>
            <div class="submit-row">
                <input type="submit" value="{% trans 'Send Message' %}" class="default">
                <a href="{% url 'admin:core_whatsappconfig_changelist' %}" class="closelink">{% trans 'Cancel' %}</a>
            </div>
        </div>
    </form>
</div>
{% endblock %}
