From fbf9336f8a848d4f4adfc89d979e0858a2553477 Mon Sep 17 00:00:00 2001 From: pavel Date: Tue, 21 Apr 2015 10:22:57 +0000 Subject: [PATCH] EXPO-25 includes/company/company_edit.html --- .../includes/accounts/current_user.html | 873 ++++++++---------- .../client/includes/company/company_edit.html | 182 +--- 2 files changed, 434 insertions(+), 621 deletions(-) diff --git a/templates/client/includes/accounts/current_user.html b/templates/client/includes/accounts/current_user.html index bb0147c4..1d0931a6 100644 --- a/templates/client/includes/accounts/current_user.html +++ b/templates/client/includes/accounts/current_user.html @@ -2,14 +2,11 @@ {% load i18n %} {% load template_filters %} {% load thumbnail %} - -
-
- - {# avatar #} - + {# END avatar #} +
+
+ {# country and city #} +
+ +
{{ home_form.instance.country }}, {{ home_form.instance.city }} - - - -
- {% trans 'редактировать' %} -
-
{% csrf_token %} -
- -
- -
- {{ home_form.country }} - -
-
- -
- -
- {{ home_form.city }} -
-
- -
- -
- -
-
- {% trans 'закрыть' %} -
-
-
-
- {# END country and city #} - - {# name #} -
- -
+
+ {% trans 'редактировать' %} +
+
{% csrf_token %} +
+
+ +
+ {{ home_form.country }} +
+
+
+ +
+ {{ home_form.city }} +
+
+
+
+ +
+
+ {% trans 'закрыть' %} +
+
+
+
+ {# END country and city #} + {# name #} +
+ +
{{ name_form.get_full_name }} -
- {% trans 'редактировать' %} -
-
{% csrf_token %} - -
- -
- -
- {{ name_form.first_name }} -
-
-
- -
- {{ name_form.last_name }} -
-
- -
- -
- -
-
- - {% trans 'закрыть' %} -
-
-
-
- - {# END name #} -
- - {# position #} -
- - -
-

- {{ work_form.position.value }} - {% if work_form.work.value %} - {% trans 'в' %} {{ work_form.work.value }} - {% endif %} -

- -
- {% trans 'редактировать' %} -
-
{% csrf_token %} - -
- -
- -
- {{ work_form.position }} -
-
- -
- -
- {{ work_form.company }} -
-
- -
- -
- -
-
- - {% trans 'закрыть' %} -
-
-
-
- {# END position #} -
- -
-
+
+ {% trans 'редактировать' %} +
+
{% csrf_token %} +
+
+ +
+ {{ name_form.first_name }} +
+
+
+ +
+ {{ name_form.last_name }} +
+
+
+
+ +
+
+ {% trans 'закрыть' %} +
+
+
+
+ {# END name #} + + {# position #} +
+ +
+

+ {{ work_form.position.value }} + {% if work_form.work.value %} + {% trans 'в' %} {{ work_form.work.value }} + {% endif %} +

+
+ {% trans 'редактировать' %} +
+
{% csrf_token %} +
+
+ +
+ {{ work_form.position }} +
+
+ +
+ +
+ {{ work_form.company }} +
+
+ +
+
+ +
+
+ {% trans 'закрыть' %} +
+
+
+
+ {# END position #} +
+
+
{% trans 'Профили в соц.сетях:' %}
- - {# contacts #} - +
+ {# contacts #} + +
+
+ {% comment %} +
+ {% if email_form.email.value %} + {{ email_form.email.value }} + {% endif %} +
+ {% trans 'редактировать' %} +
+
{% csrf_token %} +
+
+ +
+ {{ email_form.email }} +
+
+
+
+ +
+
+ + {% trans 'закрыть' %} +
+
+
+ {% endcomment %} +
+ +
+ + {% if web_page_form.web_page.value %} + {{ web_page_form.web_page.value }} + {% endif %} + +
+ {% trans 'редактировать' %} +
+
{% csrf_token %} +
+
+ +
+ {{ web_page_form.web_page }} +
+
+
+
+ +
+
+ + {% trans 'закрыть' %} +
+
+
+
+ {# END contacts #} +
+
+
+ {# about #} +
+
{% trans 'О себе:' %}
+
+ +
+
{{ about_form.about.value|linebreaks }}
+
+ {% trans 'редактировать' %} +
+
{% csrf_token %} +
+
+ +
+ {{ about_form.about }} +
+
+
+
+ +
+
+ {% trans 'закрыть' %} +
+
+
+
+
+ {# END about #} + {# companies #} +
+
{% trans 'Мои компании:' %}
{% if request.user.created_company.all %} {% else %}
@@ -486,95 +413,79 @@ {% trans 'Пока не добавлено ни одной компании' %}
{% endif %} - - {% with companies=request.user.created_company.all %} - {% for company in companies %} - - - - {# END companies #} - - -
-
+ {{ company.name }} + + + + {% endfor %} + {% endwith %} + +
+ {% trans 'Добавить компанию' %} +
+ {# END companies #} + + - - {% block scripts %} - - - - +{% if request.GET.debug == '1' %} +{% else %} + +{% endif %} {% endblock %} \ No newline at end of file diff --git a/templates/client/includes/company/company_edit.html b/templates/client/includes/company/company_edit.html index 3efdb9a8..4c72783a 100644 --- a/templates/client/includes/company/company_edit.html +++ b/templates/client/includes/company/company_edit.html @@ -2,12 +2,9 @@ {% load i18n %} {% load template_filters %} {% load thumbnail %} -
-
- - - -
-
+
{{ company.rating }}
+ +
+
- +
-
{{ name_form.name.value }} -
редактировать
@@ -150,8 +126,7 @@
-
- +