{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans "Send Survey via CSV Upload" %} - PX360{% endblock %} {% block content %}

{% trans "Send Survey Manually" %}

{% trans "Select a survey template and send it to a recipient" %}

{% trans "Back to Surveys" %}
{% trans "Search Existing" %} {% trans "Enter Phone" %} {% trans "Upload CSV" %}

{% trans "CSV Upload Details" %}

{% csrf_token %}
{% if form.survey_template.errors %}
{% for error in form.survey_template.errors %}{{ error }}{% endfor %}
{% endif %}
{% if form.csv_file.errors %}
{% for error in form.csv_file.errors %}{{ error }}{% endfor %}
{% endif %}

{% trans "CSV Format Requirements" %}

{% trans "Your CSV file should have the following format:" %}

phone_number,name(optional)
+966501234567,John Doe
+966501234568,Jane Smith
+966501234569,
  • {% trans "First column: Phone number with country code (e.g., +966501234567)" %}
  • {% trans "Second column (optional): Recipient name" %}
  • {% trans "Header row is optional (will be auto-detected)" %}
  • {% trans "Maximum file size: 5MB" %}
{% if form.custom_message.errors %}
{% for error in form.custom_message.errors %}{{ error }}{% endfor %}
{% endif %}

{% trans "This message will be included in all survey invitations" %}

{% trans "How it works" %}

{% trans "The system will process each phone number in the CSV file and send a survey via SMS. You will receive a summary of successful and failed sends after processing." %}

{% trans "Cancel" %}
{% endblock %}