Newer
Older
postorius / templates / mailman-django / domains.html
@benste benste on 23 Jun 2011 922 bytes Frist part Menus
  1. {% extends "mailman-django/base.html" %}
  2. {% load i18n %}
  3.  
  4. {% block content %}
  5.  
  6. <h1>{% trans "Add a new Domain" %}</h1>
  7.  
  8. <p id=logout><a href="{% url logout %}">{% trans "Logout" %}</a></p>
  9. <table cellpadding="0" cellspacing="0">
  10. <tr>
  11. <th>{% trans "Domain" %}</th>
  12. <th>{% trans "Contact Address" %}</th>
  13. <th>{% trans "Description" %}</th>
  14. </tr>
  15. {% if domains %}
  16. {% for domain in domains %}
  17. <tr>
  18. <td>{{ domain.base_url }}</td>
  19. <td>{{ domain.contact_address }}</td>
  20. <td>
  21. {% if domain.description %}
  22. {{ domain.description }}
  23. {% endif %}
  24. </td>
  25. </tr>
  26. {% endfor %}
  27. {% endif %}
  28. </table>
  29. <br>
  30. <form action="{% url domains %}" method="post" class="newdomain">
  31.  
  32. {{ form.as_div }}
  33.  
  34. <div class="field">
  35. <button type="submit">{% trans "Create Domain" %}</button>
  36. </div>
  37.  
  38. </form>
  39. {% endblock %}