<commit_before>{% extends "admin/base_site.html" %}
{% load i18n %}

{% block extrahead %}{{ block.super }}
{{ media }}
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="../../../../">{% trans 'Home' %}</a> &rsaquo; 
    <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
    <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo; 
    <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo; 
    {% trans 'Send' %}
</div>
{% endblock %}

{% block content %}
<div id="content-main">

<form action="" method="post">
<div>
	<div class="module">
		<div class="form-row">
			{% blocktrans with opts.verbose_name|capfirst as model_name and object|truncatewords:"18" as object_name %}
			Clicking 'send' below will send the <a href="../">{{ object_name }}</a> {{ model_name }} to its recipients.
			{% endblocktrans %}
		</div>
	</div>
	<input type="hidden" value="1" name="send"/>
	<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
		<input type="submit" value="{% trans 'Send' %}" class="default" name="_submit"/>
		<p></p>
	</div>
	
</div>
</form>
</div>
{% endblock %}<commit_msg>Warn the user if she tries to send a campaign that was already sent. Change contributed by philippbosch (r16 was also by philippbosch).<commit_after>{% extends "admin/base_site.html" %}
{% load i18n %}

{% block extrahead %}{{ block.super }}
{{ media }}
{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
    <a href="../../../../">{% trans 'Home' %}</a> &rsaquo; 
    <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
    <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo; 
    <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo; 
    {% trans 'Send' %}
</div>
{% endblock %}

{% block content %}
<div id="content-main">

<form action="" method="post">
<div>
	<div class="module">
		<div class="form-row">
			<p>{% blocktrans with opts.verbose_name|capfirst as model_name and object|truncatewords:"18" as object_name %}
			Clicking 'Send' below will send the <a href="../">{{ object_name }}</a> {{ model_name }} to its recipients.
			{% endblocktrans %}</p>
			{% if object.sent %}
			<div class="errornote">{% trans "This campaign has already been sent at least once. Are you sure that you want to send it again?" %}</div>
			{% endif %}
		</div>
	</div>
	<input type="hidden" value="1" name="send"/>
	<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
		<input type="submit" value="{% trans 'Send' %}" class="default" name="_submit"/>
		<p></p>
	</div>
	
</div>
</form>
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.23726235741444868, 'fraction_numerical': 0.006083650190114068, 'mean_word_length': 3.8363970588235294, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4667700', 'n_tokens_mistral': 1021, 'n_tokens_neox': 907, 'n_words': 252}