Newer
Older
postorius / templates / mailman-django / domains.html
@benste benste on 22 Jul 2011 1 KB modified domain layouts and login
  1. {% extends "mailman-django/base.html" %}
  2. {% load i18n %}
  3.  
  4. {% block heading %}
  5. {% trans "Add a new Domain" %}
  6. {% endblock %}
  7.  
  8. {% block smallBoxLeft %}
  9. {% for domain in domains %}
  10. <div class="mm_box mm_smallBox mm_smallBoxLeft">
  11. <div class="mm_boxHeader">{{ domain.contact_address }}</div>
  12. <ul>
  13. <li><a href="http://{{ domain.base_url }}">{{ domain.base_url }}</a></li>
  14. {% if domain.description %}
  15. <li>{{ domain.description }}</li>
  16. {% endif %}
  17. </ul>
  18. </div>
  19. {% endfor %}
  20. {% endblock %}
  21.  
  22. {% block header %}
  23. <div class="mm_box">
  24. <div class="mm_boxHeader">{% trans "About" %}</div>
  25. This site allows to register a new Domain, due to restriction in the REST API we can't delete them here yet. Please modify the Mailman DB directly if you need to remove a Domain. If interested take a look at the <a href="https://bugs.launchpad.net/mailmanwebgsoc2011/+bug/799689"> Launchapd Bug Report</a>
  26. </p>
  27. </div>
  28. {% endblock %}
  29. {% block actionButtonsList %}
  30. <ul class="mm_actionButtons">
  31. <li class="mm_new_domain"><a href="#JS new_domain">{% trans "New Domain" %}</a></li>
  32. <!--<form action="{% url domains %}" method="post" class="newdomain">
  33. {{ form.as_div }}
  34. <div class="field">
  35. <button type="submit">{% trans "Create Domain" %}</button>
  36. </div>
  37. </form>-->
  38. {% if not domain == "unregistered Domain" %}
  39. <li class="mm_delete_domain">
  40. <a href="#JS delete_domain">{% trans "Delete Domain" %}</br>
  41. {{domain}}
  42. </a>
  43. </li>
  44. {% endif %}
  45. </ul>
  46.  
  47. {% endblock %}