domain and new domain cleanup of layout
1 parent 99227b7 commit 44f529d9a43cd5061613b2bed4237a0a6bf78325
@benste benste authored on 16 Aug 2011
Showing 2 changed files
View
2
■■■
forms.py
To use it: add a list for each wished fieldset. The first item in
the list should be the wished name of the fieldset, the following
the fields that should be included in the fieldset.
"""
layout = [["New Domain","mail_host", "web_host", "description",]]
layout = [["","mail_host", "web_host", "description",]]
 
class ListNew(FieldsetForm):
"""
View
16
templates/mailman-django/domain_index.html
<ul class="mm_actionButtons">
<li class="mm_new_domain"><a href="{% url domain_new %}">{% trans "New Domain" %}</a></li>
{% if not domain == "unregistered Domain" %}
<li class="mm_delete_domain">
<a href="#JS delete_domain">{% trans "Delete Domain" %}</br>
<a href="#missing_REST_function">{% trans "Delete Domain" %}</br>
{{domain}}
</a>
</li>
{% endif %}
 
{% block smallBoxLeft %}
{% for domain in domains %}
<div class="mm_box mm_smallBox {% cycle 'mm_clear' '' %}">
<div class="mm_boxHeader">{{ domain.contact_address }}</div>
<ul>
<li><a href="http://{{ domain.base_url }}">{{ domain.base_url }}</a></li>
{% if domain.description %}
<li>{{ domain.description }}</li>
{% endif %}
</ul>
<div class="mm_boxHeader">{{ domain.contact_address }} (<a href="http://{{ domain.base_url }}">{{ domain.base_url }}</a>)</div>
{% if domain.description %}
{{ domain.description }}
{% endif %}
</div>
{% endfor %}
{% endblock %}