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

{% block extrahead %}{{ block.super }}
<script src="{% url 'admin:jsi18n' %}"></script>
{{ media }}
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
&rsaquo; <a href="{% url 'admin:app_list' app_label='core' %}">Core</a>
&rsaquo; <a href="{% url 'admin:core_platformprofile_changelist' %}">Platform Profiles</a>
&rsaquo; Test WhatsApp Configuration
</div>
{% endblock %}

{% block content %}
<div id="content-main">
    <form method="post">
    {% csrf_token %}
    <div>
        <fieldset class="module aligned">
            <h2>Test WhatsApp Configuration</h2>
            <div class="form-row">
                <label for="id_phone_number" class="required">Target Phone Number:</label>
                <input type="text" name="phone_number" id="id_phone_number" value="{{ phone_number }}" required>
                <div class="help">Enter the phone number (with country code) to receive the test message.</div>
            </div>
        </fieldset>
        
        <div class="submit-row">
            <input type="submit" value="Send Test Message" class="default" name="_save">
            <a href="../" class="button closelink" style="margin-left: 10px;">Go Back</a>
        </div>
    </div>
    </form>
</div>
{% endblock %}