implement hosting package option choice view
- implement new hostingpackages.views.HostingOptionChoices - add URL pattern 'hosting_option_choices' to hostingpackages.urls - add template hostingpackages/customerhostingpackage_option_choices.html - link from hostingpackages/customerhostingpackage_detail.html to 'hosting_package_choices'
This commit is contained in:
parent
353ea7ad90
commit
9815bd1f5b
4 changed files with 64 additions and 3 deletions
|
@ -58,7 +58,7 @@
|
|||
<p class="panel-body text-info">{% trans "No options booked" %}</p>
|
||||
{% endif %}
|
||||
{% if user.is_staff %}
|
||||
<p class="panel-body"><a class="btn btn-primary" href="#" title="{% trans "Add another hosting option" %}">{% trans "Add option" %}</a></p>
|
||||
<p class="panel-body"><a class="btn btn-primary" href="{% url 'hosting_option_choices' pk=hostingpackage.id %}" title="{% trans "Add another hosting option" %}">{% trans "Add option" %}</a></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue