Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "base.html" %}
- {% block content %}
- {% load i18n static %}
- <script src="{% static 'registration/js/profile.js' %}"></script>
- <link rel="stylesheet" type="text/css" href="{% static 'registration/css/profile.css' %}">
- <link rel="stylesheet" href="https://opensource.keycdn.com/fontawesome/4.6.3/font-awesome.min.css"
- integrity="sha384-Wrgq82RsEean5tP3NK3zWAemiNEXofJsTwTyHmNb/iL3dP/sZJ4+7sOld1uqYJtE" crossorigin="anonymous">
- <section>
- <div class="container" style="margin-top: 30px;">
- <div class="profile-head">
- <div class="col-md- col-sm-4 col-xs-12">
- <img src="{{user.avatar.url}}" class="img-responsive" />
- <h6>{{user.get_full_name}}</h6>
- </div><!--col-md-4 col-sm-4 col-xs-12 close-->
- <div class="col-md-5 col-sm-5 col-xs-12">
- <h5>{{user.get_full_name}}</h5>
- <p>{{user.profession}}</p>
- <ul>
- <li><span class="glyphicon glyphicon-briefcase"></span> {{ user.work_time }} </li>
- <li><span class="glyphicon glyphicon-map-marker"></span> {{ user.location }} </li>
- <li><span class="glyphicon glyphicon-home"></span> {{ user.address }} </li>
- <li><span class="glyphicon glyphicon-phone"></span> <a href="#" title="call">{{ user.phone }}</a></li>
- <li><span class="glyphicon glyphicon-envelope"></span><a href="#" title="mail">{{ user.email }}</a></li>
- </ul>
- </div><!--col-md-8 col-sm-8 col-xs-12 close-->
- </div><!--profile-head close-->
- </div><!--container close-->
- <div id="sticky" class="container">
- <!-- Nav tabs -->
- <ul class="nav nav-tabs nav-menu" role="tablist">
- <li class="active">
- <a href="#profile" role="tab" data-toggle="tab">
- <i class="fa fa-male"></i> {% trans 'პროფილი' %}
- </a>
- </li>
- <li><a href="#change" role="tab" data-toggle="tab">
- <i class="fa fa-key"></i> {% trans 'პროფილის რედაქტირება' %}
- </a>
- </li>
- </ul><!--nav-tabs close-->
- <!-- Tab panes -->
- <div class="tab-content">
- <div class="tab-pane fade active in" id="profile">
- <div class="container">
- <div class="col-sm-11" style="float:left;">
- <div class="hve-pro">
- <p>{{ user.status }}</p>
- </div><!--hve-pro close-->
- </div><!--col-sm-12 close-->
- <br clear="all" />
- <div class="row">
- <div class="col-md-12">
- <h4 class="pro-title">{% trans 'ბიოგრაფია' %}</h4>
- </div><!--col-md-12 close-->
- <div class="col-md-6">
- <div class="table-responsive responsiv-table">
- <table class="table bio-table">
- <tbody>
- <tr>
- <td>{% trans 'სახელი' %}</td>
- <td>: {{ user.first_name }}</td>
- </tr>
- <tr>
- <td>{% trans 'გვარი' %}</td>
- <td>: {{ user.last_name }}</td>
- </tr>
- <tr>
- <td>{% trans 'დაბადების თარიღი' %}</td>
- <td>: {{ user.born }}</td>
- </tr>
- <tr>
- <td>{% trans 'მდებარეობა' %}</td>
- <td>: {{ user.location }}</td>
- </tr>
- <tr>
- <td>{% trans 'პროფესია' %}</td>
- <td>: {{ user.profession }}</td>
- </tr>
- </tbody>
- </table>
- </div><!--table-responsive close-->
- </div><!--col-md-6 close-->
- <div class="col-md-6">
- <div class="table-responsive responsiv-table">
- <table class="table bio-table">
- <tbody>
- <tr>
- <td>{% trans 'ემაილი' %}</td>
- <td>: {{ user.email }}</td>
- </tr>
- <tr>
- <td>{% trans 'მობილური :' %}</td>
- <td>: {{ user.phone }}</td>
- </tr>
- <tr>
- <td>{% trans 'სახ.ტელ' %}</td>
- <td>: {{ user.home_phone }}</td>
- </tr>
- <tr>
- <td>{% trans 'სამუშაო გამოცდილება' %}</td>
- <td>: {{ user.experience }}</td>
- </tr>
- <tr>
- <td>{% trans 'facebook' %}</td>
- <td>: {{ user.facebook }}</td>
- </tr>
- </tbody>
- </table>
- </div><!--table-responsive close-->
- </div><!--col-md-6 close-->
- </div><!--row close-->
- </div><!--container close-->
- </div><!--tab-pane close-->
- <div class="tab-pane fade" id="change">
- <div class="container fom-main">
- <div class="row">
- <div class="col-sm-12">
- <h2 class="register">{% trans 'პროფილის რედაქტირება' %}</h2>
- </div><!--col-sm-12 close-->
- </div><!--row close-->
- <br />
- <div class="row">
- <form class="form-horizontal main_form text-left" action=" " method="post" id="contact_form">{% csrf_token %}
- <fieldset>
- <!-- {% for error in form.errors %}
- {{error}}
- {% endfor %}
- -->
- {% for field in form %}
- {% if field.name == "avatar" %}
- <div class="col-md-12 text-left">
- <div class="uplod-picture">
- <span class="btn btn-default uplod-file">
- {{field.label_tag}} {{field}}
- {% for error in field.errors %}
- {{error}}
- {% endfor %}
- </span>
- </div>
- </div>
- {% else %}
- <div class="form-group col-md-12">
- <label class="col-md-10 control-label">{{field.label_tag}}</label>
- <div class="col-md-12 inputGroupContainer">
- <div class="input-group">
- {{field}}
- {% for error in field.errors %}
- {{error}}
- {% endfor %}
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- <!-- Button -->
- <div class="form-group col-md-10">
- <div class="col-md-6">
- <button type="submit" class="btn btn-warning submit-button" >{% trans 'შენახვა' %}</button>
- <button type="submit" class="btn btn-warning submit-button" >{% trans 'გაუქმება' %}</button>
- </div>
- </div>
- <div class="form-group col-md-12">
- <label class="col-md-10 control-label">{{passform.password.label_tag}}</label>
- <div class="col-md-12 inputGroupContainer">
- <div class="input-group">
- {{passform.password}}
- {% for error in passform.password.errors %}
- {{error}}
- </div>
- </div>
- </div>
- <div class="form-group col-md-12">
- <label class="col-md-10 control-label">{{passform.confpassword.label_tag}}</label>
- <div class="col-md-12 inputGroupContainer">
- <div class="input-group">
- {{passform.confpassword}}
- {% for error in passform.confpassword.errors %}
- {{error}}
- </div>
- </div>
- </div>
- <!-- Button -->
- <div class="form-group col-md-10">
- <div class="col-md-6">
- <button type="submit" class="btn btn-warning submit-button" >{% trans 'შენახვა' %}</button>
- <button type="submit" class="btn btn-warning submit-button" >{% trans 'გაუქმება' %}</button>
- </div>
- </div>
- </fieldset>
- </form>
- </div><!--row close-->
- </div><!--container close -->
- </div><!--tab-pane close-->
- </div><!--tab-content close-->
- </div><!--container close-->
- </section><!--section close-->
- {% endblock content %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement