profile_form.html 1.64 KB
Newer Older
1 2 3
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %} 
4 5 6

{% block title-page %}{% trans "Profile" %}{% endblock %}

7 8 9 10 11 12
{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
13 14 15
        <a class="pull-right btn btn-default btn-xs" 
          href="{% url "dashboard.views.profile" username=object.user.username %}">
          {% trans "Go to my profile" %}</a>
16 17 18
        <h3 class="no-margin"><i class="icon-desktop"></i> {% trans "My profile" %}</h3>
      </div>
      <div class="panel-body">
19
        <div class="row">
20
          <div class="col-md-4" style="margin-bottom: 50px;">
21 22 23 24 25
            <fieldset>
              <legend>{% trans "Password change" %}</legend>
              {% crispy forms.change_password %}
            </fieldset>
          </div>
26
          <div class="col-md-4" style="margin-bottom: 50px;">
27
            <fieldset>
28
              <legend>{% trans "My preferences" %}</legend>
29 30 31
              {% crispy forms.change_language %}
            </fieldset>
          </div>
32 33 34 35 36 37 38 39 40 41 42 43 44 45
          <div class="col-md-4">
            <fieldset>
              <legend>{% trans "Current avatar" %}</legend>
              <p>
                <img id="dashboard-profile-avatar" 
                 class="img-rounded" src="{{ object.get_avatar_url }}"/>
              </p>
              <p>
                <a href="{% url "dashboard.views.profile" username=profile.user.username %}">
                  {% trans "Go to my profile" %}
                </a>
              </p>
            </fieldset>
          </div>
46
        </div>
47 48 49 50 51 52
      </div>
    </div>
  </div>
</div>

{% endblock %}