2015-03-18 15:13:44 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
2015-03-24 12:45:38 +00:00
|
|
|
{% block title %}{% trans "Profile" %}{% endblock %}
|
2015-03-18 15:13:44 +00:00
|
|
|
{% block content %}
|
|
|
|
<!-- Page Heading -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<h1 class="page-header">{% trans "Profile" %}</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
|
|
|
|
{% include 'errors_block.html' %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
2015-03-24 12:45:38 +00:00
|
|
|
<h3 class="page-header">{% trans "Edit Profile" %}</h3>
|
|
|
|
<form class="form-horizontal" method="post" action="" role="form">{% csrf_token %}
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label">{% trans "Login" %}</label>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" value="{{ request.user.username }}" disabled>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group bridge_name_form_group_dhcp">
|
|
|
|
<label class="col-sm-2 control-label">{% trans "Username" %}</label>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="text" class="form-control" name="username" value="{{ request.user.first_name }}" pattern="[0-9a-zA-Z]+">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group bridge_name_form_group_dhcp">
|
|
|
|
<label class="col-sm-2 control-label">{% trans "Email" %}</label>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="email" class="form-control" name="email" value="{{ request.user.email }}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
<button type="submit" class="btn btn-primary">{% trans "Change" %}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<h3 class="page-header">{% trans "Edit Password" %}</h3>
|
|
|
|
<form class="form-horizontal" method="post" action="" role="form">{% csrf_token %}
|
|
|
|
<div class="form-group">
|
2015-05-13 06:42:20 +00:00
|
|
|
<label class="col-sm-2 control-label">{% trans "Old" %}</label>
|
2015-03-24 12:45:38 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" name="oldpasswd" value="">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group bridge_name_form_group_dhcp">
|
2015-05-13 06:42:20 +00:00
|
|
|
<label class="col-sm-2 control-label">{% trans "New" %}</label>
|
2015-03-24 12:45:38 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" name="passwd1" value="">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group bridge_name_form_group_dhcp">
|
2015-05-13 06:42:20 +00:00
|
|
|
<label class="col-sm-2 control-label">{% trans "Retry" %}</label>
|
2015-03-24 12:45:38 +00:00
|
|
|
<div class="col-sm-4">
|
|
|
|
<input type="password" class="form-control" name="passwd2" value="">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
<button type="submit" class="btn btn-primary">{% trans "Change" %}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-03-18 15:13:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|