- implement managemails.forms.CreateMailboxForm - implement managemails.views.CreateMailbox - add url pattern 'create_mailbox' to managemails.urls - add templates managemails/base.html and managemails/mailbox_create.html - add german translation - add generated code documentation
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "managemails/base.html" %}
 | |
| {% load i18n crispy_forms_tags %}
 | |
| {% block title %}{{ block.user }} - {% spaceless %}
 | |
| {% with full_name=customer.get_full_name package=hostingpackage.name %}
 | |
| {% if customer == user %}
 | |
| {% blocktrans %}Add Mailbox to Hosting Package {{ package }}{% endblocktrans %}
 | |
| {% else %}
 | |
| {% blocktrans %}Add Mailbox to Hosting Package {{ package }} of Customer {{ full_name }}{% endblocktrans %}
 | |
| {% endif %}
 | |
| {% endwith %}
 | |
| {% endspaceless %}{% endblock title %}
 | |
| {% block page_title %}{% spaceless %}
 | |
| {% with full_name=customer.get_full_name package=hostingpackage.name %}
 | |
| {% if customer == user %}
 | |
| {% blocktrans %}Add Mailbox to Hosting Package {{ package }}{% endblocktrans %}
 | |
| {% else %}
 | |
| {% blocktrans %}Add Mailbox to Hosting Package {{ package }} of Customer {{ full_name }}{% endblocktrans %}
 | |
| {% endif %}
 | |
| {% endwith %}
 | |
| {% endspaceless %}{% endblock page_title %}
 | |
| 
 | |
| {% block content %}
 | |
| <p>{% if customer == user %}{% trans "Please specify the password for your new mailbox." %}{% else %}{% trans "Please specify the password for the new mailbox." %}{% endif %}</p>
 | |
| {% crispy form %}
 | |
| {% endblock content %}
 | |
| 
 | |
| {% block extra_js %}
 | |
| <script type="text/javascript">
 | |
| $(document).ready(function() {
 | |
|   $('input[type=password]').val('');
 | |
|   $('input[type=password]').first().focus();
 | |
| });
 | |
| </script>
 | |
| {% endblock extra_js %}
 |