- implement userdbs.forms.ChangeDatabaseUserPasswordForm - implement userdbs.views.ChangeDatabaseUserPassword - add URL pattern 'change_dbuser_password' to userdbs.urls - add template userdbs/databaseuser_setpassword.html - link from hostingpackage detail template to 'change_dbuser_password' - add changelog entry
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "userdbs/base.html" %}
 | |
| {% load i18n crispy_forms_tags %}
 | |
| 
 | |
| {% block title %}{{ block.super }} - {% spaceless %}
 | |
| {% if customer == user %}
 | |
| {% blocktrans with dbuser=dbuser.name %}Set Database User Password for {{ dbuser }}{% endblocktrans %}
 | |
| {% else %}
 | |
| {% blocktrans with dbuser=dbuser.name full_name=customer.get_full_name %}Set Database User Password for {{ dbuser }} of Customer {{ full_name }}{% endblocktrans %}
 | |
| {% endif %}
 | |
| {% endspaceless %}{% endblock title %}
 | |
| 
 | |
| {% block page_title %}{% spaceless %}
 | |
| {% if customer == user %}
 | |
| {% blocktrans with dbuser=dbuser.name %}Set Database User Password <small>for {{ dbuser }}</small>{% endblocktrans %}
 | |
| {% else %}
 | |
| {% blocktrans with dbuser=dbuser.name full_name=customer.get_full_name %}Set Database User Password <small>for {{ dbuser }} of Customer {{ full_name }}</small>{% endblocktrans %}
 | |
| {% endif %}
 | |
| {% endspaceless %}{% endblock page_title %}
 | |
| 
 | |
| {% block content %}
 | |
| <p>{% if customer == user %}{% trans "Please specify the new password for your database user." %}{% else %}{% trans "Please specify the new password of the database user." %}{% endif %}
 | |
| {% crispy form %}
 | |
| {% endblock content %}
 | |
| 
 | |
| {% block extra_js %}
 | |
| <script type="text/javascript">
 | |
| $(document).ready(function() {
 | |
|   $('input[type=password]').val('').first().focus();
 | |
| });
 | |
| </script>
 | |
| {% endblock extra_js %}
 |