Browse files

updated every template for use of new base template

  • Loading branch information...
1 parent 7042b37 commit 6bd94398de00d442a8f8303a2977f28db72eb60c Marc Rochow committed Jun 26, 2012
Showing with 949 additions and 735 deletions.
  1. +15 −11 web/limeade/cloud/templates/limeade_cloud/instance_add.html
  2. +15 −11 web/limeade/cloud/templates/limeade_cloud/instance_edit.html
  3. +37 −32 web/limeade/cloud/templates/limeade_cloud/instance_list.html
  4. +9 −17 web/limeade/cloud/templates/limeade_cloud/novnc.html
  5. +15 −11 web/limeade/cloud/templates/limeade_cloud/sshkey_add.html
  6. +25 −21 web/limeade/cloud/templates/limeade_cloud/sshkey_list.html
  7. +15 −11 web/limeade/cluster/templates/limeade_cluster/region_add.html
  8. +15 −11 web/limeade/cluster/templates/limeade_cluster/region_edit.html
  9. +23 −20 web/limeade/cluster/templates/limeade_cluster/region_list.html
  10. +15 −11 web/limeade/cluster/templates/limeade_cluster/server_add.html
  11. +15 −11 web/limeade/cluster/templates/limeade_cluster/server_edit.html
  12. +38 −33 web/limeade/cluster/templates/limeade_cluster/server_list.html
  13. +15 −11 web/limeade/ftp/templates/limeade_ftp/account_add.html
  14. +15 −11 web/limeade/ftp/templates/limeade_ftp/account_edit.html
  15. +33 −24 web/limeade/ftp/templates/limeade_ftp/account_list.html
  16. +15 −11 web/limeade/mail/templates/limeade_mail/account_add.html
  17. +15 −11 web/limeade/mail/templates/limeade_mail/account_edit.html
  18. +23 −19 web/limeade/mail/templates/limeade_mail/account_list.html
  19. +15 −11 web/limeade/mail/templates/limeade_mail/redirect_add.html
  20. +14 −10 web/limeade/mail/templates/limeade_mail/redirect_edit.html
  21. +25 −20 web/limeade/mail/templates/limeade_mail/redirect_list.html
  22. +15 −11 web/limeade/mysql/templates/limeade_mysql/db_add.html
  23. +15 −11 web/limeade/mysql/templates/limeade_mysql/db_edit.html
  24. +29 −25 web/limeade/mysql/templates/limeade_mysql/db_list.html
  25. +7 −3 web/limeade/settings.py
  26. +31 −13 web/limeade/system/templates/limeade_system/account.html
  27. +15 −11 web/limeade/system/templates/limeade_system/contract_add.html
  28. +15 −11 web/limeade/system/templates/limeade_system/customer_add.html
  29. +15 −11 web/limeade/system/templates/limeade_system/customer_edit.html
  30. +25 −20 web/limeade/system/templates/limeade_system/customer_list.html
  31. +55 −38 web/limeade/system/templates/limeade_system/customer_view.html
  32. +15 −11 web/limeade/system/templates/limeade_system/domain_add.html
  33. +33 −15 web/limeade/system/templates/limeade_system/product_add.html
  34. +14 −14 web/limeade/system/templates/limeade_system/product_edit.html
  35. +23 −19 web/limeade/system/templates/limeade_system/product_list.html
  36. +23 −19 web/limeade/system/templates/limeade_system/ressources.html
  37. +2 −2 web/limeade/system/urls.py
  38. +15 −11 web/limeade/web/templates/limeade_web/poolip_add.html
  39. +23 −18 web/limeade/web/templates/limeade_web/poolip_list.html
  40. +15 −11 web/limeade/web/templates/limeade_web/redirect_add.html
  41. +15 −11 web/limeade/web/templates/limeade_web/redirect_edit.html
  42. +25 −20 web/limeade/web/templates/limeade_web/redirect_list.html
  43. +15 −11 web/limeade/web/templates/limeade_web/sslcert_add.html
  44. +27 −21 web/limeade/web/templates/limeade_web/sslcert_list.html
  45. +15 −11 web/limeade/web/templates/limeade_web/vhost_add.html
  46. +15 −11 web/limeade/web/templates/limeade_web/vhost_edit.html
  47. +30 −26 web/limeade/web/templates/limeade_web/vhost_list.html
  48. +15 −22 web/templates/registration/login.html
View
26 web/limeade/cloud/templates/limeade_cloud/instance_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cloud/base.html" %}
-{% block content %}
-<h1>Add Instance</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Instance" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Instance" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/cloud/templates/limeade_cloud/instance_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cloud/base.html" %}
-{% block content %}
-<h1>Edit Instance</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit Instance" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit Instance" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
69 web/limeade/cloud/templates/limeade_cloud/instance_list.html
@@ -1,35 +1,40 @@
-{% extends "base.html" %}
+{% extends "limeade_cloud/base.html" %}
-{% block content %}
-<h1>Cloud Instances</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_cloud_instance_add %}">Add a new Instance</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Instance</th><th>State</th><th>&nbsp;</th></tr>
-{% for instance in object_list %}
- <tr>
- <td>{{ instance.db.hostname }}</td>
- <td>{{ instance.state }}</td>
- <td>
- {% if instance.db.active %}
- {% if instance.state != 'running' %}
- <a href="{% url limeade_cloud_instance_start instance.db.pk %}">Start</a>
- {% endif %}
- {% if instance.state != 'stopped' %}
- <a href="{% url limeade_cloud_instance_stop instance.db.pk %}">Stop</a>
- {% endif %}
- <a href="{% url limeade_cloud_instance_restart instance.db.pk %}">Restart</a>
- <a href="{% url limeade_cloud_instance_vnc instance.db.pk %}">VNC</a>
- <a href="{% url limeade_cloud_instance_delete instance.db.pk %}" class="action_delete">Delete</a>
- {% endif %}
- </td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Instances yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "Cloud Instances" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_cloud_instance_add %}">{% trans "Add a new Instance" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Instance" %}</th>
+ <th>{% trans "State" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for instance in object_list %}
+ <tr>
+ <td>{{ instance.db.hostname }}</td>
+ <td>{{ instance.state }}</td>
+ <td>
+ {% if instance.db.active %}
+ {% if instance.state != 'running' %}
+ <a href="{% url limeade_cloud_instance_start instance.db.pk %}" class="btn btn-success">{% trans "Start" %}</a>
+ {% endif %}
+ {% if instance.state != 'stopped' %}
+ <a href="{% url limeade_cloud_instance_stop instance.db.pk %}" class="btn btn-inverse">{% trans "Stop" %}</a>
+ {% endif %}
+ <a href="{% url limeade_cloud_instance_restart instance.db.pk %}" class="btn btn-warning">{% trans "Restart" %}</a>
+ <a href="{% url limeade_cloud_instance_vnc instance.db.pk %}" class="btn btn-info">{% trans "VNC" %}</a>
+ <a href="{% url limeade_cloud_instance_delete instance.db.pk %}" class="btn btn-danger action_delete">{% trans "Delete" %}</a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Instances yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/cloud/templates/limeade_cloud/novnc.html
@@ -1,4 +1,6 @@
-{% extends "base.html" %}
+{% extends "limeade_cloud/base.html" %}
+
+{% load i18n %}
{% block extrahead %}
<script type="text/javascript">
@@ -11,34 +13,26 @@
{% endblock %}
{% block content %}
-
- <h1>VNC</h1>
- <p>{{ host }}</p>
- <p>{{ port }}</p>
-
+ <h1>{% trans "VNC" %}</h1>
<div id="noVNC_screen">
-
<div id="noVNC_status_bar" class="noVNC_status_bar">
- <table border="0" width="100%">
+ <table>
<tr>
<td>
- <div id="noVNC_status">Loading</div>
+ <div id="noVNC_status">{% trans "Loading" %}</div>
</td>
- <td width="1%">
+ <td>
<div id="noVNC_buttons">
- <input type="button" value="Send Ctrl+Alt+Del" id="sendCtrlAltDelButton" />
+ <input type="button" class="btn btn-danger" value="{% trans 'Send Ctrl+Alt+Del' %}" id="sendCtrlAltDelButton" />
</div>
</td>
</tr>
</table>
</div>
-
<canvas id="noVNC_canvas" width="640px" height="20px">
- Canvas not supported.
+ {% trans "Canvas not supported." %}
</canvas>
-
</div>
-
<script type="text/javascript">
"use strict";
@@ -144,6 +138,4 @@
};
</script>
-
{% endblock %}
-
View
26 web/limeade/cloud/templates/limeade_cloud/sshkey_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cloud/base.html" %}
-{% block content %}
-<h1>Add SSH Public Key</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add SSH Public Key" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add SSH Public Key" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
46 web/limeade/cloud/templates/limeade_cloud/sshkey_list.html
@@ -1,24 +1,28 @@
-{% extends "base.html" %}
+{% extends "limeade_cloud/base.html" %}
-{% block content %}
-<h1>SSH Keys</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_cloud_sshkey_add %}">Add a new SSH Public Key</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>SSH Key</th><th>&nbsp;</th></tr>
-{% for key in object_list %}
- <tr>
- <td>{{ key.comment }}</td>
- <td>
- <a href="{% url limeade_cloud_sshkey_delete key.pk %}" class="action_delete">Delete</a>
- </td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have uploaded any SSH Keys yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "SSH Keys" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_cloud_sshkey_add %}">{% trans "Add a new SSH Public Key" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "SSH Key" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for key in object_list %}
+ <tr>
+ <td>{{ key.comment }}</td>
+ <td>
+ <a href="{% url limeade_cloud_sshkey_delete key.pk %}" class="action_delete">{% trans "Delete" %}</a>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have uploaded any SSH Keys yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/cluster/templates/limeade_cluster/region_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cluster/base.html" %}
-{% block content %}
-<h1>Add Region</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Region" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Region" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/cluster/templates/limeade_cluster/region_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cluster/base.html" %}
-{% block content %}
-<h1>Edit Region</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load 18n %}
+{% block content %}
+ <h1>{% trans "Edit Region" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit Region" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
43 web/limeade/cluster/templates/limeade_cluster/region_list.html
@@ -1,23 +1,26 @@
-{% extends "base.html" %}
+{% extends "limeade_cluster/base.html" %}
-{% block content %}
-<h1>Regions</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_cluster_region_add %}">Add a new Region</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Region</th><th>&nbsp;</th></tr>
-{% for region in object_list %}
- <tr>
- <td><a href="{% url limeade_cluster_region_edit region.pk %}">{{ region.name }}</a></td>
- <td><a href="{% url limeade_cluster_region_delete region.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Regions yet.</p>
-{% endif %}
-<br />
+{% block content %}
+ <h1>{% trans "Regions" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_cluster_region_add %}">{% trans "Add a new Region" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Region" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for region in object_list %}
+ <tr>
+ <td><a href="{% url limeade_cluster_region_edit region.pk %}">{{ region.name }}</a></td>
+ <td><a href="{% url limeade_cluster_region_delete region.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Regions yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/cluster/templates/limeade_cluster/server_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cluster/base.html" %}
-{% block content %}
-<h1>Add Server</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Server" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Server" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/cluster/templates/limeade_cluster/server_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_cluster/base.html" %}
-{% block content %}
-<h1>Edit Server</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit Server" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit Server" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
71 web/limeade/cluster/templates/limeade_cluster/server_list.html
@@ -1,36 +1,41 @@
-{% extends "base.html" %}
+{% extends "limeade_cluster/base.html" %}
-{% block content %}
-<h1>Servers</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_cluster_server_add %}">Add a new Server</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Hostname</th><th>Services</th><th>&nbsp;</th></tr>
-{% for server in object_list %}
- <tr>
- <td><a href="{% url limeade_cluster_server_edit server.pk %}">{{ server.hostname }}</a></td>
- <td>
- <ul>
- {% for service in server.services.all %}
- <li>{{ service.name }}</li>
- {% endfor %}
- </ul></td>
- <td>
- {% if server.enabled %}
- <a href="{% url limeade_cluster_server_disable server.pk %}">Disable</a>
- {% else %}
- <a href="{% url limeade_cluster_server_enable server.pk %}">Enable</a>
- {% endif %}
- <a href="{% url limeade_cluster_server_delete server.pk %}" class="action_delete">Delete</a>
- </td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Servers yet.</p>
-{% endif %}
-<br />
+{% block content %}
+ <h1>{% trans "Servers" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_cluster_server_add %}">{% trans "Add a new Server" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Hostname" %}</th>
+ <th>{% trans "Services" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for server in object_list %}
+ <tr>
+ <td><a href="{% url limeade_cluster_server_edit server.pk %}">{{ server.hostname }}</a></td>
+ <td>
+ <ul>
+ {% for service in server.services.all %}
+ <li>{{ service.name }}</li>
+ {% endfor %}
+ </ul>
+ </td>
+ <td>
+ {% if server.enabled %}
+ <a href="{% url limeade_cluster_server_disable server.pk %}">{% trans "Disable" %}</a>
+ {% else %}
+ <a href="{% url limeade_cluster_server_enable server.pk %}">{% trans "Enable" %}</a>
+ {% endif %}
+ <a href="{% url limeade_cluster_server_delete server.pk %}" class="action_delete">{% trans "Delete" %}</a>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Servers yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/ftp/templates/limeade_ftp/account_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_ftp/base.html" %}
-{% block content %}
-<h1>Add FTP Account</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add FTP Account" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add FTP Account" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/ftp/templates/limeade_ftp/account_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_ftp/base.html" %}
-{% block content %}
-<h1>Edit FTP Account</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit FTP Account" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit FTP Account" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
57 web/limeade/ftp/templates/limeade_ftp/account_list.html
@@ -1,27 +1,36 @@
-{% extends "base.html" %}
+{% extends "limeade_ftp/base.html" %}
-{% block content %}
-<h1>FTP Accounts</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_ftp_account_add %}">Add a new FTP Account</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Account</th><th>VHost</th><th>&nbsp;</th></tr>
-{% for account in object_list %}
- <tr>
- <td><a href="{% url limeade_ftp_account_edit account.pk %}">{{ account.name }}</a></td>
- <td>{{ account.vhost }}</td>
- <td><a href="{% url limeade_ftp_account_delete account.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Accounts yet.</p>
-{% endif %}
-<br />
-<p>
- FTP Server: <em>ftp.local</em><br />
- TLS highly recommended.
+{% block content %}
+ <h1>{% trans "FTP Accounts" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_ftp_account_add %}">{% trans "Add a new FTP Account" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Account" %}</th>
+ <th>{% trans "VHost" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for account in object_list %}
+ <tr>
+ <td><a href="{% url limeade_ftp_account_edit account.pk %}">{{ account.name }}</a></td>
+ <td>{{ account.vhost }}</td>
+ <td><a href="{% url limeade_ftp_account_delete account.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Accounts yet." %}</p>
+ {% endif %}
+ <br />
+ <p>
+ {% blocktrans %}
+ FTP Server: <em>ftp.local</em>
+ <br />
+ TLS highly recommended.
+ {% endblocktrans %}
+ </p>
{% endblock %}
View
26 web/limeade/mail/templates/limeade_mail/account_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_mail/base.html" %}
-{% block content %}
-<h1>Add Email Account</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Email Account" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Email Account" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/mail/templates/limeade_mail/account_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_mail/base.html" %}
-{% block content %}
-<h1>Edit Email Account</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit Email Account" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit Email Account" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
42 web/limeade/mail/templates/limeade_mail/account_list.html
@@ -1,22 +1,26 @@
-{% extends "base.html" %}
+{% extends "limeade_mail/base.html" %}
-{% block content %}
-<h1>Email Accounts</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_mail_account_add %}">Add a new Email Account</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Account</th><th>&nbsp;</th></tr>
-{% for account in object_list %}
- <tr>
- <td><a href="{% url limeade_mail_account_edit account.pk %}">{{ account }}</a></td>
- <td><a href="{% url limeade_mail_account_delete account.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Accounts yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "Email Accounts" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_mail_account_add %}">{% trans "Add a new Email Account" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Account" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for account in object_list %}
+ <tr>
+ <td><a href="{% url limeade_mail_account_edit account.pk %}">{{ account }}</a></td>
+ <td><a href="{% url limeade_mail_account_delete account.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Accounts yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/mail/templates/limeade_mail/redirect_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_mail/base.html" %}
-{% block content %}
-<h1>Add Email Redirect</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Email Redirect" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Email Redirect" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
24 web/limeade/mail/templates/limeade_mail/redirect_edit.html
@@ -1,14 +1,18 @@
{% extends "base.html" %}
-{% block content %}
-<h1>Edit Email Redirect</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit Email Redirect" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit Email Redirect" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
45 web/limeade/mail/templates/limeade_mail/redirect_list.html
@@ -1,23 +1,28 @@
-{% extends "base.html" %}
+{% extends "limeade_mail/base.html" %}
-{% block content %}
-<h1>Email Redirects</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_mail_redirect_add %}">Add a new Email Redirect</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Redirect</th><th>To</th><th>&nbsp;</th></tr>
-{% for redirect in object_list %}
- <tr>
- <td><a href="{% url limeade_mail_redirect_edit redirect.pk %}">{{ redirect.name }}@{{ redirect.domain }}</a></td>
- <td>{{ redirect.to }}</td>
- <td><a href="{% url limeade_mail_redirect_delete redirect.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Redirects yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "Email Redirects" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_mail_redirect_add %}">{% trans "Add a new Email Redirect" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Redirect" %}</th>
+ <th>{% trans "To" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for redirect in object_list %}
+ <tr>
+ <td><a href="{% url limeade_mail_redirect_edit redirect.pk %}">{{ redirect.name }}@{{ redirect.domain }}</a></td>
+ <td>{{ redirect.to }}</td>
+ <td><a href="{% url limeade_mail_redirect_delete redirect.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Redirects yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/mysql/templates/limeade_mysql/db_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_mysql/base.html" %}
-{% block content %}
-<h1>Add MySQL Database</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add MySQL Database" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add MySQL Database" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/mysql/templates/limeade_mysql/db_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_mysql/base.html" %}
-{% block content %}
-<h1>Change Password</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Change Password" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Change Password" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
54 web/limeade/mysql/templates/limeade_mysql/db_list.html
@@ -1,28 +1,32 @@
-{% extends "base.html" %}
+{% extends "limeade_mysql/base.html" %}
-{% block content %}
-<h1>Databases</h1>
-
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_mysql_db_add %}">Add a new MySQL Database</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Database</th><th>&nbsp;</th></tr>
-{% for db in object_list %}
- <tr>
- <td><a href="{% url limeade_mysql_db_edit db.1 %}">{{ db.0 }}</a></td>
- <td><a href="{% url limeade_mysql_db_delete db.1 %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-<br />
-<p>
-To access your tables you can use <a href="http://v1.local/phpmyadmin/">phpMyAdmin</a>.
-</p>
-
-{% else %}
-<p>You don't have any MySQL Databases yet.</p>
-{% endif %}
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Databases" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_mysql_db_add %}">{% trans "Add a new MySQL Database" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Database" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for db in object_list %}
+ <tr>
+ <td><a href="{% url limeade_mysql_db_edit db.1 %}">{{ db.0 }}</a></td>
+ <td><a href="{% url limeade_mysql_db_delete db.1 %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ <br />
+ <p>
+ {% blocktrans %}
+ To access your tables you can use <a href="http://v1.local/phpmyadmin/">phpMyAdmin</a>.
+ {% endblocktrans %}
+ </p>
+ {% else %}
+ <p>{% trans "You don't have any MySQL Databases yet." %}</p>
+ {% endif %}
{% endblock %}
View
10 web/limeade/settings.py
@@ -17,9 +17,7 @@
MANAGERS = ADMINS
-EDITORAL_STAFF = MANAGERS + (
- #(u'Your Name', 'your_email@domain.com'),
-)
+EDITORAL_STAFF = MANAGERS + ()
DATABASES = {
'default': {
@@ -67,6 +65,12 @@
os.path.join(os.path.dirname(os.path.dirname(__file__)), 'static'),
)
+STATICFILES_FINDERS = (
+ 'django.contrib.staticfiles.finders.FileSystemFinder',
+ 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+ #'django.contrib.staticfiles.finders.DefaultStorageFinder',
+)
+
ADMIN_MEDIA_PREFIX = '/static/admin/'
SECRET_KEY = 'po&5*yv$)lpnv9pwhcq!%s(up#le!_!y-1!$1)-oi60pe@o2mwdummydummy-dev-only'
View
44 web/limeade/system/templates/limeade_system/account.html
@@ -1,16 +1,34 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Account</h1>
+{% load i18n %}
-<table>
-<tr><td>Login:</td><td>{{ person.user.username }}</td></tr>
-<tr><td>Name:</td><td>{{ person.first_name }} {{ person.last_name }}</td></tr>
-{% if person.company %}<tr><td>Firma:</td><td>{{ person.company }}</td></tr>{% endif %}
-<tr><td>Address:</td><td>{{ person.address }}</td></tr>
-<tr><td>Email:</td><td><a href="mailto:{{ person.user.email }}">{{ person.user.email }}</a></td></tr>
-</table>
-<p>
-<a href="{% url django.contrib.auth.views.password_change %}">Passwort ändern</a>
-</p>
+{% block content %}
+ <h1>{% trans "Account" %}</h1>
+ <table>
+ <tr>
+ <td>{% trans "Login:" %}</td>
+ <td>{{ person.user.username }}</td>
+ </tr>
+ <tr>
+ <td>{% trans "Name:" %}</td>
+ <td>{{ person.first_name }} {{ person.last_name }}</td>
+ </tr>
+ {% if person.company %}
+ <tr>
+ <td>{% trans "Company:" %}</td>
+ <td>{{ person.company }}</td>
+ </tr>
+ {% endif %}
+ <tr>
+ <td>{% trans "Address:" %}</td>
+ <td>{{ person.address }}</td>
+ </tr>
+ <tr>
+ <td>{% trans "Email:" %}</td>
+ <td><a href="mailto:{{ person.user.email }}">{{ person.user.email }}</a></td>
+ </tr>
+ </table>
+ <p>
+ <a href="{% url django.contrib.auth.views.password_change %}" class="btn btn-inverse">{% trans "Change password" %}</a>
+ </p>
{% endblock %}
View
26 web/limeade/system/templates/limeade_system/contract_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Add Contract</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Add"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Contract" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Contract" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Add" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/system/templates/limeade_system/customer_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Add Customer</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Add"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Customer" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Customer" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Add" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/system/templates/limeade_system/customer_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Edit {{ username }}</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit" %} {{ username }}</h1>
+ <form method="post" enctype="multipart/form-data" action".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit" %} {{ username }}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
45 web/limeade/system/templates/limeade_system/customer_list.html
@@ -1,23 +1,28 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Customers</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_system_customer_add %}">Add a new Customer</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Name</th><th>Login</th><th>Domains</th></tr>
-{% for customer in object_list %}
- <tr>
- <td><a href="{% url limeade_system_customer_view customer.username %}">{{ customer.first_name }} {{ customer.last_name }}</a></td>
- <td>{{ customer.user.username }}</td>
- <td></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any customers yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "Customers" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_system_customer_add %}">{% trans "Add a new Customer" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Name" %}</th>
+ <th>{% trans "Login" %}</th>
+ <th>{% trans "Domains" %}</th>
+ </tr>
+ {% for customer in object_list %}
+ <tr>
+ <td><a href="{% url limeade_system_customer_view customer.username %}">{{ customer.first_name }} {{ customer.last_name }}</a></td>
+ <td>{{ customer.user.username }}</td>
+ <td></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any customers yet." %}</p>
+ {% endif %}
{% endblock %}
View
93 web/limeade/system/templates/limeade_system/customer_view.html
@@ -1,41 +1,58 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>{{ object.user.username }}</h1>
-
-<p class="action_box">
-<a href="{% url limeade_system_customer_edit object.username %}">Edit</a>
-<a href="{% url limeade_system_customer_manage object.username %}">Manage</a>
-<a href="{% url limeade_system_customer_delete object.username %}" class="action_delete">Delete</a>
-</p>
-<table class="form">
-<tr><th>Name:</th><td>{{ object.first_name }} {{ object.last_name }}</td></tr>
-{% if object.company %}<tr><th>Firma:</th><td>{{ object.company }}</td></tr>{% endif %}
-<tr><th>Address:</th><td>{{ object.address }}</td></tr>
-<tr><th>Email:</th><td><a href="mailto:{{ object.user.email }}">{{ object.user.email }}</a></td></tr>
-</table>
+{% load i18n %}
-<h4>Contracts</h4>
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_system_contract_add object.username %}">Add new Contract</a>
-</p>
-<table>
- <tr><th>Product</th><th>Domains</th><th>Actions</th></tr>
-{% for contract in contracts %}
- <tr>
- <td>{{ contract.product }}</td>
- <td>
- {% for domain in contract.domain_set.all %}
- {{ domain }}
- <a href="{% url limeade_system_domain_delete slug=object.user.username contract_id=contract.id domain_id=domain.id%}" class="action_delete">Delete</a><br />
- {% endfor %}
- </td>
- <td>
- <a href="{% url limeade_system_domain_add slug=object.user.username contract_id=contract.id %}">Add Domain</a>
- <a href="{% url limeade_system_contract_customize slug=object.user.username contract_id=contract.id %}">Customize</a>
- <a href="{% url limeade_system_contract_delete slug=object.user.username contract_id=contract.id %}" class="action_delete">Delete</a>
- </td>
- </tr>
-{% endfor %}
-</table>
+{% block content %}
+ <h1>{{ object.user.username }}</h1>
+ <p class="action_box">
+ <a href="{% url limeade_system_customer_edit object.username %}">{% trans "Edit" %}</a>
+ <a href="{% url limeade_system_customer_manage object.username %}">{% trans "Manage" %}</a>
+ <a href="{% url limeade_system_customer_delete object.username %}" class="action_delete">{% trans "Delete" %}</a>
+ </p>
+ <table>
+ <tr>
+ <th>{% trans "Name:" %}</th>
+ <td>{{ object.first_name }} {{ object.last_name }}</td>
+ </tr>
+ {% if object.company %}
+ <tr>
+ <th>{% trans "Company:" %}</th>
+ <td>{{ object.company }}</td>
+ </tr>
+ {% endif %}
+ <tr>
+ <th>{% trans "Address:" %}</th>
+ <td>{{ object.address }}</td>
+ </tr>
+ <tr>
+ <th>{% trans "Email:" %}</th>
+ <td><a href="mailto:{{ object.user.email }}">{{ object.user.email }}</a></td>
+ </tr>
+ </table>
+ <h4>{% trans "Contracts" %}</h4>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_system_contract_add object.username %}">{% trans "Add new Contract" %}</a>
+ </p>
+ <table>
+ <tr>
+ <th>{% trans "Product" %}</th>
+ <th>{% trans "Domains" %}</th>
+ <th>{% trans "Actions" %}</th>
+ </tr>
+ {% for contract in contracts %}
+ <tr>
+ <td>{{ contract.product }}</td>
+ <td>
+ {% for domain in contract.domain_set.all %}
+ {{ domain }} <a href="{% url limeade_system_domain_delete slug=object.user.username contract_id=contract.id domain_id=domain.id%}" class="action_delete">{% trans "Delete" %}</a>
+ {% endfor %}
+ </td>
+ <td>
+ <a href="{% url limeade_system_domain_add slug=object.user.username contract_id=contract.id %}">{% trans "Add Domain" %}</a>
+ <a href="{% url limeade_system_contract_customize slug=object.user.username contract_id=contract.id %}">{% trans "Customize" %}</a>
+ <a href="{% url limeade_system_contract_delete slug=object.user.username contract_id=contract.id %}" class="action_delete">{% trans "Delete" %}</a>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
{% endblock %}
View
26 web/limeade/system/templates/limeade_system/domain_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Add Domain</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Add"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Domain" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Domain" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Add" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
48 web/limeade/system/templates/limeade_system/product_add.html
@@ -1,19 +1,37 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Add Product</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
+{% comment %}
+ TODO: restyle forms for limitsets
+{% endcomment %}
- {% for limitset in limitsets %}
- <tr><th class="section" colspan="2">{{ limitset.verbose_name }}</th></tr>
- {{ limitset.as_table }}
- {% endfor %}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add Product" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add Product" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% for formset in limitsets %}
+ {{ formset.management_form }}
+ <h2>{{ formset.verbose_name }}</h2>
+ {% for form in formset %}
+ {% include "forms/display_form.html" %}
+ {% endfor %}
+ {% endfor %}
+ {% comment %}
+ {% for limitset in limitsets %}
+ <h2>{{ limitset.verbose_name }}</h2>
+ {% with form=limitset %}
+ {% include "forms/display_form.html" %}
+ {% endwith %}
+ {% endfor %}
+ {% endcomment %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
28 web/limeade/system/templates/limeade_system/product_edit.html
@@ -1,18 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Edit</h1>
+{% load i18n %}
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- {% for limitset in limitsets %}
- <tr><th class="section" colspan="2">{{ limitset.verbose_name }}</th></tr>
- {{ limitset.as_table }}
- {% endfor %}
- </table>
+{% block content %}
+ <h1>{% trans "Edit product" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
{% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
-
+ <fieldset>
+ <legend>{% trans "Edit product" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
42 web/limeade/system/templates/limeade_system/product_list.html
@@ -1,22 +1,26 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
-{% block content %}
-<h1>Products</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_system_product_add %}">Add a new Product</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Name</th><th>&nbsp;</th></tr>
-{% for product in object_list %}
- <tr>
- <td><a href="{% url limeade_system_product_edit product.pk %}">{{ product.name }}</a></td>
- <td><a href="{% url limeade_system_product_delete product.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any products yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "Products" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_system_product_add %}">{% trans "Add a new Product" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>Name</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for product in object_list %}
+ <tr>
+ <td><a href="{% url limeade_system_product_edit product.pk %}">{{ product.name }}</a></td>
+ <td><a href="{% url limeade_system_product_delete product.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any products yet." %}</p>
+ {% endif %}
{% endblock %}
View
42 web/limeade/system/templates/limeade_system/ressources.html
@@ -1,22 +1,26 @@
-{% extends "base.html" %}
+{% extends "limeade_system/base.html" %}
+
+{% load i18n %}
{% block content %}
-<h1>Ressources</h1>
-{% if limits %}
-<table>
-{% for groupname, limitgroup in limits.items %}
- <tr><th colspan="4">{{ groupname }}</td></tr>
- {% for limit in limitgroup %}
- <tr>
- <td>{{ limit.name }}:</td>
- <td style="text-align: right">{% if limit.utilization %}{{ limit.utilization }} /{% else %}&nbsp;{% endif %}</td>
- <td style="text-align: right">{{ limit.value }}</td>
- <td>{{ limit.help_text }}</td>
- </tr>
- {% endfor %}
-{% endfor %}
-</table>
-{% else %}
-<p>Please buy some Products ;-)</p>
-{% endif %}
+ <h1>{% trans "Ressources" %}</h1>
+ {% if limits %}
+ {% for groupname, limitgroup in limits.items %}
+ <table>
+ <tr>
+ <th colspan="4">{{ groupname }}</td>
+ </tr>
+ {% for limit in limitgroup %}
+ <tr>
+ <td>{{ limit.name }}:</td>
+ <td style="text-align: right">{% if limit.utilization %}{{ limit.utilization }} /{% else %}&nbsp;{% endif %}</td>
+ <td style="text-align: right">{{ limit.value }}</td>
+ <td>{{ limit.help_text }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endfor %}
+ {% else %}
+ <p>{% trans "Please buy some Products ;-)" %}</p>
+ {% endif %}
{% endblock %}
View
4 web/limeade/system/urls.py
@@ -4,8 +4,8 @@
urlpatterns = patterns('limeade.system.views',
- url(r'^$', 'ressources'),
- url(r'^account/$', 'account'),
+ url(r'^$', 'ressources', name='limeade_system_ressources'),
+ url(r'^account/$', 'account', name='limeade_system_account'),
url(r'^customer/$', 'customer_list', name='limeade_system_customer_list'),
url(r'^customer/add/$', 'customer_add', name='limeade_system_customer_add'),
url(r'^customer/(?P<slug>[^/]+)/$', 'customer_view', name='limeade_system_customer_view'),
View
26 web/limeade/web/templates/limeade_web/poolip_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>Add IP or Subnet</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add IP or Subnet" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add IP or Subnet" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
41 web/limeade/web/templates/limeade_web/poolip_list.html
@@ -1,23 +1,28 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>IP Pool for HTTPS</h1>
-
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_web_poolip_add %}">Add new IP Addresses</a>
-</p>
+{% load i18n %}
-<table>
-<tr><th>Region</th><th>Used</th><th>Free</th><th>Use%</th><th>Total</th></tr>
-{% for region in stats %}
+{% block content %}
+ <h1>{% trans "IP Pool for HTTPS" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_web_poolip_add %}">{% trans "Add new IP Addresses" %}</a>
+ </p>
+ <table>
<tr>
- <td>{{ region.region }}</td>
- <td>{{ region.used }}</td>
- <td>{{ region.free }}</td>
- <td>{{ region.use|floatformat }}%</td>
- <td>{{ region.total }}</td>
+ <th>{% trans "Region" %}</th>
+ <th>{% trans "Used" %}</th>
+ <th>{% trans "Free" %}</th>
+ <th>{% trans "Use%" %}</th>
+ <th>{% trans "Total" %}</th>
</tr>
-{% endfor %}
-</table>
-
+ {% for region in stats %}
+ <tr>
+ <td>{{ region.region }}</td>
+ <td>{{ region.used }}</td>
+ <td>{{ region.free }}</td>
+ <td>{{ region.use|floatformat }}%</td>
+ <td>{{ region.total }}</td>
+ </tr>
+ {% endfor %}
+ </table>
{% endblock %}
View
26 web/limeade/web/templates/limeade_web/redirect_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>Add HTTP Redirect</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add HTTP Redirect" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add HTTP Redirect" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/web/templates/limeade_web/redirect_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>Edit HTTP Redirect</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit HTTP Redirect" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit HTTP Redirect" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
45 web/limeade/web/templates/limeade_web/redirect_list.html
@@ -1,23 +1,28 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>HTTP Redirects</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_web_redirect_add %}">Add a new HTTP Redirect</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Redirect</th><th>To</th><th>&nbsp;</th></tr>
-{% for redirect in object_list %}
- <tr>
- <td><a href="{% url limeade_web_redirect_edit redirect.pk %}">{{ redirect.name }}.{{ redirect.domain }}</a></td>
- <td>{{ redirect.to }}</td>
- <td><a href="{% url limeade_web_redirect_delete redirect.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any Redirects yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "HTTP Redirects" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_web_redirect_add %}">{% trans "Add a new HTTP Redirect" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>Redirect</th>
+ <th>To</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for redirect in object_list %}
+ <tr>
+ <td><a href="{% url limeade_web_redirect_edit redirect.pk %}">{{ redirect.name }}.{{ redirect.domain }}</a></td>
+ <td>{{ redirect.to }}</td>
+ <td><a href="{% url limeade_web_redirect_delete redirect.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any Redirects yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/web/templates/limeade_web/sslcert_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>Add SSL Certificate</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add SSL Certificate" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add SSL Certificate" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
48 web/limeade/web/templates/limeade_web/sslcert_list.html
@@ -1,24 +1,30 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>SSL Certificates</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_web_sslcert_add %}">Add a new SSL Certificate</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>Common Name</th><th>Valid not before</th><th>Valid not after</th><th>&nbsp;</th></tr>
-{% for cert in object_list %}
- <tr>
- <td><span title="{{ cert.issuer }}">{{ cert.cn }}</td>
- <td>{{ cert.valid_not_before }}</td>
- <td>{{ cert.valid_not_after }}</td>
- <td><a href="{% url limeade_web_sslcert_delete cert.pk %}" class="action_delete">Delete</a></td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any SSL Certificates yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "SSL Certificates" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_web_sslcert_add %}">{% trans "Add a new SSL Certificate" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "Common Name" %}</th>
+ <th>{% trans "Valid not before" %}</th>
+ <th>{% trans "Valid not after" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for cert in object_list %}
+ <tr>
+ <td><span title="{{ cert.issuer }}">{{ cert.cn }}</td>
+ <td>{{ cert.valid_not_before }}</td>
+ <td>{{ cert.valid_not_after }}</td>
+ <td><a href="{% url limeade_web_sslcert_delete cert.pk %}" class="action_delete">{% trans "Delete" %}</a></td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any SSL Certificates yet." %}</p>
+ {% endif %}
{% endblock %}
View
26 web/limeade/web/templates/limeade_web/vhost_add.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>Add VHost</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Add VHost" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Add VHost" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
26 web/limeade/web/templates/limeade_web/vhost_edit.html
@@ -1,14 +1,18 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>Edit VHost</h1>
-
-<form method="POST" enctype="multipart/form-data" action=".">
- <table class="form">
- {{ form.as_table }}
- </table>
- {% csrf_token %}
- <input type="submit" value="Save"/>
-</form>
+{% load i18n %}
+{% block content %}
+ <h1>{% trans "Edit VHost" %}</h1>
+ <form method="post" enctype="multipart/form-data" action=".">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Edit VHost" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Save" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}
View
56 web/limeade/web/templates/limeade_web/vhost_list.html
@@ -1,29 +1,33 @@
-{% extends "base.html" %}
+{% extends "limeade_web/base.html" %}
-{% block content %}
-<h1>VHosts</h1>
+{% load i18n %}
-<p class="action_box">
-<span class="lime action_link">+</span><a href="{% url limeade_web_vhost_add %}">Add a new VHost</a>
-</p>
-{% if object_list %}
-<table>
-<tr><th>VHost</th><th>&nbsp;</th></tr>
-{% for vhost in object_list %}
- <tr>
- <td><a href="{% url limeade_web_vhost_edit vhost.pk %}">{{ vhost }}</a></td>
- <td>
- {% if vhost.defaultvhost_set.count %}
- <a href="{% url limeade_web_vhost_catchall_delete vhost.defaultvhost_set.get.pk %}">Delete Catch-All</a>
- {% else %}
- <a href="{% url limeade_web_vhost_catchall_set vhost.pk %}">Set Catch-All</a>
- {% endif %}
- <a href="{% url limeade_web_vhost_delete vhost.pk %}" class="action_delete">Delete</a>
- </td>
- </tr>
-{% endfor %}
-</table>
-{% else %}
-<p>You don't have any VHosts yet.</p>
-{% endif %}
+{% block content %}
+ <h1>{% trans "VHosts" %}</h1>
+ <p class="action_box">
+ <span class="lime action_link">+</span><a href="{% url limeade_web_vhost_add %}">{% trans "Add a new VHost" %}</a>
+ </p>
+ {% if object_list %}
+ <table>
+ <tr>
+ <th>{% trans "VHost" %}</th>
+ <th>&nbsp;</th>
+ </tr>
+ {% for vhost in object_list %}
+ <tr>
+ <td><a href="{% url limeade_web_vhost_edit vhost.pk %}">{{ vhost }}</a></td>
+ <td>
+ {% if vhost.defaultvhost_set.count %}
+ <a href="{% url limeade_web_vhost_catchall_delete vhost.defaultvhost_set.get.pk %}">{% trans "Delete Catch-All" %}</a>
+ {% else %}
+ <a href="{% url limeade_web_vhost_catchall_set vhost.pk %}">{% trans "Set Catch-All" %}</a>
+ {% endif %}
+ <a href="{% url limeade_web_vhost_delete vhost.pk %}" class="action_delete">{% trans "Delete" %}</a>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% else %}
+ <p>{% trans "You don't have any VHosts yet." %}</p>
+ {% endif %}
{% endblock %}
View
37 web/templates/registration/login.html
@@ -1,27 +1,20 @@
{% extends "base.html" %}
-{% block content %}
-<h1>Login</h1>
-
-{% if form.errors %}
-<p>Your username and password didn't match. Please try again.</p>
-{% endif %}
+{% load i18n %}
-<form method="post" action="{% url django.contrib.auth.views.login %}" class="uniForm">
-{% csrf_token %}
-<table>
-<tr>
- <td>{{ form.username.label_tag }}</td>
- <td>{{ form.username }}</td>
-</tr>
-<tr>
- <td>{{ form.password.label_tag }}</td>
- <td>{{ form.password }}</td>
-</tr>
-</table>
-
-<input type="submit" value="login" />
-<input type="hidden" name="next" value="{{ next }}" />
-</form>
+{% block title %}Login - {{ block.super }}{% endblock %}
+{% block content %}
+ <h1>{% trans "Login" %}</h1>
+ <form method="post" action"{% url django.contrib.auth.views.login %}">
+ {% csrf_token %}
+ <fieldset>
+ <legend>{% trans "Login" %}</legend>
+ {% include "forms/display_form.html" %}
+ {% trans "Login" as submit_str %}
+ {% with submit_text=submit_str button_class="btn btn-success" %}
+ {% include "forms/display_form_submit.html" %}
+ {% endwith %}
+ </fieldset>
+ </form>
{% endblock %}

0 comments on commit 6bd9439

Please sign in to comment.