Jan Dittberner
150366a524
- document new feature in changelog - add autogenerated documentation for osusers.urls and osusers.views - add osuser URLs to gnuviechadmin.urls - implement get_absolute_url in hostingpackages.models.CustomerHostingPackage - use set_ldap_user_password instead of create_ldap_user for existing OS users in osusers.models.User.set_password - add URL pattern set_osuser_password in osusers.urls - implement osusers.views.SetOsUserPassword to set the password of an existing operating system user - link to hosting package detail view on user dashboard - add template hostingpackages/customerhostingpackage_detail.html - add template osusers/user_setpassword.html
48 lines
2.5 KiB
HTML
48 lines
2.5 KiB
HTML
{% extends "hostingpackages/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{{ block.super }} - {% spaceless %}
|
|
{% if user == customer %}
|
|
{% blocktrans with package=hostingpackage.name %}Details for your Hosting Package {{ package }}{% endblocktrans %}
|
|
{% else %}
|
|
{% blocktrans with package=hostingpackage.name full_name=customer.get_full_name %}Details for Hosting Package {{ package }} of {{ full_name }}{% endblocktrans %}
|
|
{% endif %}
|
|
{% endspaceless %}{% endblock title %}
|
|
|
|
{% block page_title %}{% blocktrans with package=hostingpackage.name %}Details of Hosting Package {{ package }}{% endblocktrans %}{% endblock page_title %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-lg-6 col-md-6 col-xs-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
{% trans "Hosting Package Information" %}<div class="pull-right"><a class="panel-title" href="#" title="{% trans "Edit Hosting Package Information" %}"><i class="glyphicon glyphicon-cog"></i></a></div>
|
|
</div>
|
|
<dl class="panel-body dl-horizontal">
|
|
<dt>{% trans "Name" %}</dt>
|
|
<dd>{{ hostingpackage.name }}</dd>
|
|
<dt>{% trans "Description" %}</dt>
|
|
<dd>{{ hostingpackage.description|default:"-" }}</dd>
|
|
<dt>{% trans "Disk space" %}</dt>
|
|
{% with diskspace=hostingpackage.get_disk_space %}
|
|
<dd title="{% blocktrans %}The reserved disk space for your hosting package is {{ diskspace }} bytes.{% endblocktrans %}">{{ diskspace|filesizeformat }}</dd>
|
|
{% endwith %}
|
|
<dt>{% trans "Mailboxes" %}</dt>
|
|
<dd>{% blocktrans with num=hostingpackage.get_used_mailboxes total=hostingpackage.get_mailboxes %}{{ num }} of {{ total }} in use{% endblocktrans %}</dd>
|
|
<dt>{% if hostingpackage.osuser.is_sftp_user %}{% trans "SFTP username" %}{% else %}{% trans "SSH/SFTP username" %}{% endif %}</dt>
|
|
<dd>{{ hostingpackage.osuser.username }}</dd>
|
|
<dt>{% trans "Upload server" %}</dt>
|
|
<dd>{{ uploadserver }}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 col-md-6 col-xs-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">{% trans "Hosting Package Actions" %}</div>
|
|
<ul class="list-group">
|
|
<li class="list-group-item"><a href="{% url "set_osuser_password" slug=hostingpackage.osuser.username %}">{% if hostingpackage.osuser.is_sftp %}{% trans "Set SFTP password" %}{% else %}{% trans "Set SSH/SFTP password" %}{% endif %}</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|