implement hosting domain creation

- implement domains.views.CreateHostingDomain
- define new URL create_hosting_domain in domains.urls
- add domains app URLs to gnuviechadmin.urls
- add templates domains/base.html and domains/hostingdomain_create.html
- link from hostingpackage detail page to domain creation view
This commit is contained in:
Jan Dittberner 2015-01-25 00:40:43 +01:00
parent 8615394c2f
commit 1690cace4d
6 changed files with 96 additions and 1 deletions

View file

@ -105,7 +105,7 @@
<p class="panel-body text-info">{% trans "There are no domains assigned to this hosting package yet." %}</p>
{% endif %}
{% if user.is_staff %}
<p class="panel-body"><a href="#" class="btn btn-primary">{% trans "Add domain" %}</a></p>
<p class="panel-body"><a href="{% url 'create_hosting_domain' package=hostingpackage.id %}" class="btn btn-primary">{% trans "Add domain" %}</a></p>
{% endif %}
</div>
</div>