forked from rapidsms/rapidsms
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brian's csv upload code. Not functional yet.
- Loading branch information
U-rotop\rowena
committed
May 6, 2010
1 parent
dbd3382
commit b4888c9
Showing
3 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% load i18n %} | ||
{% block title %}{% trans "Send SMS via CSV upload" %}{% endblock %} | ||
{% block buildmanager_content %} | ||
{% extends base_template %} | ||
|
||
<h2>{% trans "CSV file to upload for bulk SMS sending" %}</h2> | ||
<h3>{{msg}}</h3> | ||
<form action="" method="POST" accept-charset="utf-8" enctype="multipart/form-data"> | ||
<input type="file" name="csv_file_upload" id="id_csv_file_upload" /> | ||
<input type="submit" value="Submit" /> | ||
</form> | ||
{{errors}} | ||
|
||
{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% load i18n %} | ||
{% block title %}{% trans "Send SMS via CSV upload" %}{% endblock %} | ||
{% block buildmanager_content %} | ||
{% extends base_template %} | ||
|
||
<h2>{% trans "CSV file to upload for bulk SMS sending" %}</h2> | ||
<h3>{{msg}}</h3> | ||
<p>The following SMS will be sent: | ||
<table> | ||
<tr> | ||
<td>Recipient ID</td> | ||
<td>Number</td> | ||
<td>Message</td> | ||
</tr> | ||
{% for row in msglist %} | ||
{% for key,value in row.items %} | ||
<tr> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
{% endfor %} | ||
</table> | ||
</p> | ||
<form action="" method="POST" accept-charset="utf-8" enctype="multipart/form-data"> | ||
<input type="hidden" name="temp-file" id="id_csv_file_upload" value="{{temp-file}}"/> | ||
<input type="submit" value="Send SMS" /> | ||
</form> | ||
|
||
{{errors}} | ||
|
||
{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters