remotes/origin/yandex
Bachurin Sergey 11 years ago
parent 65577c28d2
commit b5f1ee63b7
  1. 7
      project/myauth/views.py
  2. 33
      project/static/css/style.css
  3. 14
      project/static/js/commons.js
  4. 2
      project/static/js/docs/list.panels.js
  5. 8
      project/static/js/license.js
  6. 30
      project/templates/base.html
  7. 8
      project/templates/customer/bank_accounts/list.html
  8. 48
      project/templates/customer/profile/license_list.html
  9. 44
      project/templates/customer/profile/paid_list.html
  10. 2
      project/templates/myauth/change_email.html
  11. 4
      project/templates/myauth/change_email_form.html
  12. 2
      project/templates/myauth/change_password.html
  13. 6
      project/templates/myauth/change_password_form.html
  14. 2
      project/templates/myauth/login.html
  15. 2
      project/templates/myauth/login_form.html

@ -251,3 +251,10 @@ def logout(request):
response = redirect('/')
response.delete_cookie('close_message_license')
return response
def rm_profile(request):
request.user.delete()
response = redirect('/')
response.delete_cookie('close_message_license')
return response

@ -115,22 +115,22 @@ body {
#index-yellow-banner .btn {width:400px;height:75px;margin-top:57px;}
#index-yellow-banner .btn a {width:400px;height:75px;background:#313942;display:table-cell;vertical-align:middle;text-align:center;text-transform:uppercase;text-decoration:none;color:#fff;font-size:22px;}
.login-page {margin:64px auto;width:514px;padding:20px;background:#fff;box-shadow: 0 0 5px #ddd;}
.center-form-page {margin:64px auto;width:514px;padding:20px;background:#fff;box-shadow: 0 0 5px #ddd;}
.register-arrow {width:300px;height:100px;background:url(../img/black_arrow.png) no-repeat center center;position:absolute;left:50%;top:340px;margin-left:300px;color:#fff;padding: 20px 0 0 0;font-style:italic;text-align:center;font-size:16px;}
.register-arrow p {margin:5px;}
.auth-form .field input[type="text"], .auth-form .field input[type="email"], .auth-form .field input[type="password"]{width:300px;vertical-align:bottom;height:50px;margin-top:32px;font-size: 46px;line-height:46px;}
.auth-form .field input[type="checkbox"] {height:20px;width:20px;vertical-align:middle;height:50px;}
.auth-form .field#captcha input[type="text"] {width:130px;height:50px;}
.auth-form .field label {display:inline-block;width:190px;text-align:right;line-height:50px;padding-right:5px;vertical-align:middle;}
.auth-form .field#profile_type label {width:200px;vertical-align:middle;height:50px;}
.auth-form #profile_type.field ul {float:right;margin-top:15px;}
.auth-form #profile_type.field ul li label {width:300px;font-size:13px;line-height:20px;vertical-align:bottom;height:30px;text-align:left;}
.auth-form .field img {vertical-align:middle;}
.center-form .field input[type="text"], .center-form .field input[type="email"], .center-form .field input[type="password"]{width:300px;vertical-align:bottom;height:50px;margin-top:32px;font-size: 46px;line-height:46px;}
.center-form .field input[type="checkbox"] {height:20px;width:20px;vertical-align:middle;height:50px;}
.center-form .field#captcha input[type="text"] {width:130px;height:50px;}
.center-form .field label {display:inline-block;width:190px;text-align:right;line-height:50px;padding-right:5px;vertical-align:middle;}
.center-form .field#profile_type label {width:200px;vertical-align:middle;height:50px;}
.center-form #profile_type.field ul {float:right;margin-top:15px;}
.center-form #profile_type.field ul li label {width:300px;font-size:13px;line-height:20px;vertical-align:bottom;height:30px;text-align:left;}
.center-form .field img {vertical-align:middle;}
.auth-form .buttons {text-align:center;margin-top:45px;}
.auth-form .buttons input[type="submit"]{background:#fed13e;border:none;font-size:22px;padding:15px 40px;color:#4e5661;font-family:"Arial Narrow", Arial, sans-serif;font-weight:bold;text-transform:uppercase;}
.auth-form .captcha_refresh {display:inline-block;margin: 0 10px;width:24px;}
.center-form .buttons {text-align:center;margin-top:45px;}
.center-form .buttons input[type="submit"]{background:#fed13e;border:none;font-size:22px;padding:15px 40px;color:#4e5661;font-family:"Arial Narrow", Arial, sans-serif;font-weight:bold;text-transform:uppercase;}
.center-form .captcha_refresh {display:inline-block;margin: 0 10px;width:24px;}
.register-form {margin:0 46px 64px 0;width:514px;padding:20px;background:#fff;box-shadow: 0 0 5px #ddd;float:left;}
@ -362,7 +362,7 @@ ul { clear: both; list-style: none; margin: 0; padding: 0; }
.add-row {margin-top:4px;}
.edit-link a, .delete-link a { text-decoration: none; }
.doc-panel {background:#fff;}
.doc-panel {background:#fff;min-height:470px;overflow-y:scroll;}
.doc-panel a.doc {display:block;margin: 13px 0 13px 20px;height:40px;padding-left:43px;line-height:40px;:}
.doc-panel a.pdf-link {background:url(../img/sign-pdf.png)left center no-repeat;}
.doc-panel a.excel-link {background:url(../img/sign-xls.png)left center no-repeat;}
@ -506,6 +506,7 @@ a.delete { vertical-align: top; }
table.list {border-collapse: collapse;border:#dedede 1px solid;border-bottom:none;width: 100%;}
.docs-content-wrapper table.list tr.doc-row {height:50px;}
table.list tr:nth-child(odd) {background: #f7f7f7;}
table.list tr:nth-child(even) {background: #fff;}
table.list tr th {text-align: left;font-size:12px;color:#646669;padding:7px 10px 7px 10px;border-right:#dedede 1px solid;border-bottom:#dedede 1px solid;border-top:none;background: #f7f7f7;}
table.list tr th:last-child {border-right:none;}
table.list tr th a {font-size:12px;color:#646669;text-decoration:none;}
@ -514,11 +515,13 @@ table.list tr td {font-size:14px;color:#313942;padding:7px;word-break: break-all
.filters-header {background: #f7f7f7;overflow:hidden;margin:0;}
.filters-header span {color: #646669;padding: 7px 0 7px 20px;font-size:12px;font-weight:bold;display:block;width:100%;box-sizing:border-box;border-bottom:#dedede 1px solid;}
.filters {min-height:470px;}
.filters p { margin: 15px 0 0; font-weight: bold; }
.filters ul { padding: 10px 0 10px 20px;}
.filters ul li a.selected { color:#646669;text-decoration:none;}
.filters select {font-size:13px;margin-left:20px;}
#filters_form {padding:10px 25px;}
#filters_form {padding:10px 25px;overflow:hidden;}
.pagination {margin-top: 5px; padding-top: 1ex; width: 99%; color:#646669;font-size:13px;}
.pagination select {font-size:13px;}
@ -610,7 +613,7 @@ tr.doc-row:hover {cursor:pointer;}
.license-ways .col {width:200px;}
.license-ways .mr-5 {margin-right:5px;}
.license-ways .col-last {width:185px;}
#cabinet-popup {display:none;position:absolute;top:0;right:0;z-index:99999;margin-top:60px;box-sizing:border-box;padding:20px 25px 25px 25px;width:300px;height:380px;background:url(../img/popup-cabinet.png) center center no-repeat;}
#cabinet-popup {display:none;position:absolute;top:0;left:50%;z-index:99999;margin-top:30px;margin-left:250px;box-sizing:border-box;padding:40px 25px 25px 25px;width:300px;height:410px;background:url(../img/popup-cabinet.png) center center no-repeat;}
#cabinet-popup h2 {font-size:16px;border-bottom:1px solid #fed13e;padding:0;margin:10px 0;}
.yellow_round {width:80px;height:80px;border-radius:40px;background:#fed13e;text-align:center;font-size:48px;font-weight:bold;line-height:80px;display:inline-block;}
.grey {color:#7d8084;}

@ -45,12 +45,20 @@ $(document).ready(function() {
var close_action = $(this).data('close');
$.cookie(close_action, true, {path: '/'});
});
function show_overlay() {
if ($('.ui-widget-overlay.ui-front').length == 0 ) {
$('#cabinet-show').css({'z-index':'101'});
$('body').append('<div class="ui-widget-overlay ui-front"></div>');
}
}
function hide_overlay() {
$('.ui-widget-overlay.ui-front').remove();
}
function hide_popup() {
setTimeout(function(){
console.debug('popup', $('#cabinet-popup').data('hover'));
console.debug('link', $('#cabinet-show').data('hover'));
if ($('#cabinet-popup').data('hover') + $('#cabinet-show').data('hover') == 0) {
$('#cabinet-popup').hide();
hide_overlay();
} else {
$('#cabinet-popup').show();
}
@ -59,10 +67,12 @@ $(document).ready(function() {
$('#cabinet-show').click(function(e){
e.preventDefault();
$('#cabinet-popup').show();
show_overlay();
});
$('#cabinet-show').mouseover(function(e){
$(this).data('hover',1);
$('#cabinet-popup').show();
show_overlay();
});
$('#cabinet-popup').mouseover(function(e){
$(this).data('hover',1);

@ -37,6 +37,8 @@ $(document).ready(function() {
row_pointer.show();
var panel = get_panel(row);
var table_height = $('.docs-content-wrapper').height();
panel.css({height:table_height, 'overflow-y':'auto'});
$('.filters').hide();
panels.not(panel).hide();
panel.show();

@ -11,10 +11,10 @@ $(document).ready(function() {
}
}
show_month();
$('[name="payform"]').change(function(){
show_month()
});
// show_month();
// $('[name="payform"]').change(function(){
// show_month()
// });
$('.delete_license').click(function(e){
e.preventDefault();

@ -71,21 +71,6 @@
{% endblock %}
{% block content %}{% endblock %}
<div id="cabinet-popup">
<h2>Платежные данные</h2>
<div><span class='grey'>Тариф:</span><span class='italic'>{% if cur_license.term > 0 %}{{ cur_license.term|get_plural:"месяц,месяца, месяцев" }}{% else %}пробный{% endif %}</span></div>
<div class='grey center'>Осталось</div>
<div class='center'>
<span class='yellow_round'>{{ license_days }}</span>
</div>
<a href='{% url "customer_order_license" %}' class='popup-link popup-buy-license'>Купить лицензию</a>
<a href='{% url "customer_bank_accounts_list" %}' class='popup-link popup-my-accs'>Мои счета</a>
<a href='{% url "customer_paid_list" %}' class='popup-link popup-history'>История расчетов</a>
<h2>Настройки</h2>
<a href='{% url "myauth_change_password" %}' class='popup-link popup-password'>Сменить пароль</a>
<a href='{% url "myauth_change_email" %}' class='popup-link popup-email'>Сменить e-mail</a>
<a href='#' class='popup-link popup-unreg'>Удалить учётную запись</a>
</div>
</div>
{% block bottom_wide %}{% endblock %}
{% block footer %}
@ -101,6 +86,21 @@
{% endblock %}
</div>
<div id="cabinet-popup">
<h2>Платежные данные</h2>
<div><span class='grey'>Тариф:</span><span class='italic'>{% if cur_license.term > 0 %}{{ cur_license.term|get_plural:"месяц,месяца, месяцев" }}{% else %}пробный{% endif %}</span></div>
<div class='grey center'>Осталось</div>
<div class='center'>
<span class='yellow_round'>{{ license_days }}</span>
</div>
<a href='{% url "customer_order_license" %}' class='popup-link popup-buy-license'>Купить лицензию</a>
<a href='{% url "customer_bank_accounts_list" %}' class='popup-link popup-my-accs'>Мои счета</a>
<a href='{% url "customer_paid_list" %}' class='popup-link popup-history'>История расчетов</a>
<h2>Настройки</h2>
<a href='{% url "myauth_change_password" %}' class='popup-link popup-password'>Сменить пароль</a>
<a href='{% url "myauth_change_email" %}' class='popup-link popup-email'>Сменить e-mail</a>
<a href='#' class='popup-link popup-unreg'>Удалить учётную запись</a>
</div>
<div id="dialogs">
{% block dialogs %}{% endblock %}
{% include "callback/callback_form.html" %}

@ -5,8 +5,8 @@
{% block content %}
<h2>Расчётные счета</h2>
<div>
<a id="account_add_link" class="account add-link" href="{% url 'customer_bank_accounts_add' %}">
<div class="btn yellow-btn docs-btn">
<a id="account_add_link" class="account" href="{% url 'customer_bank_accounts_add' %}">
Добавить расчётный счёт
</a>
</div>
@ -34,12 +34,12 @@
<td>{{ obj.bik }}</td>
<td class="center">
<a class="account edit-link" href="{% url 'customer_bank_accounts_edit' obj.pk %}">
<img src="{{ STATIC_URL }}img/icon-edit.gif" alt="Редактировать" title="Редактировать счёт" />
<img src="{{ STATIC_URL }}img/sign-edit.png" alt="Редактировать" title="Редактировать счёт" />
</a>
</td>
<td class="center">
<a id="account_delete_link" class="account delete-link" href="{% url 'customer_bank_accounts_delete' obj.pk %}">
<img src="{{ STATIC_URL }}img/icon-delete.gif" alt="[X]" title="Удалить счёт" />
<img src="{{ STATIC_URL }}img/icon-delete.png" alt="[X]" title="Удалить счёт" />
</a>
</td>
</tr>

@ -3,33 +3,33 @@
{% block title %}Мои счета{% endblock %}
{% block content %}
<p><a href="{% url 'customer_order_license' %}">Купить лицензию</a></p>
<p><a href="{% url 'customer_paid_list' %}">Оплаченные лицензии</a></p>
<h1>Выписанные счета</h1>
<div class='header'>
<div class='w100 left'>Номер</div>
<div class='w100 left'>Дата счёта</div>
<div class='w100 left'>Срок лицензии</div>
<div class='w100 left'>Сумма</div>
<div class='w100 left'>Вид платежа</div>
<div class='w100 left'>Статус</div>
<div class='w100 left'>Действия</div>
<div class='w100 left'>Отменить заявку</div>
<div class='clear'></div>
</div>
<div class="btn yellow-btn docs-btn"><a href="{% url 'customer_order_license' %}">Купить лицензию</a></div>
<div class="btn yellow-btn docs-btn"><a href="{% url 'customer_paid_list' %}">Оплаченные лицензии</a></div>
<table id="history" class="list">
<tr>
<th>Номер</th>
<th>Дата счёта</th>
<th>Срок лицензии</th>
<th>Сумма</th>
<th>Вид платежа</th>
<th>Статус</th>
<th>Действия</th>
<th>Отменить заявку</th>
</tr>
{% for license in licenses %}
<div class='license_{{ license.id }}'>
<div class='w100 left'>{% if license.pay_sum > 0 %}{{ license.id }}{% else %}--{% endif %}</div>
<div class='w100 left'>{{ license.order_date }}</div>
<div class='w100 left'>{{ license.get_term }}</div>
<div class='w100 left'>{% if license.pay_sum > 0 %}{{ license.pay_sum|get_plural:"рубль,рубля,рублей" }}{% else %}Бесплатно{% endif %}</div>
<div class='w100 left'>{{ license.get_payform_display }}</div>
<div class='w100 left'>{{ license.get_status_display }}</div>
<div class='w100 left'>{{ license.get_action_link|safe }}</div>
<div class='w100 left'>{% if license.status == 0 %}<a href='#' class='delete_license' data-id='{{ license.pk }}'>Удалить</a>{% endif %}</div>
<div class='clear'></div>
</div>
<tr class='license_{{ license.id }}'>
<td>{% if license.pay_sum > 0 %}{{ license.id }}{% else %}--{% endif %}</td>
<td>{{ license.order_date }}</td>
<td>{{ license.get_term }}</td>
<td>{% if license.pay_sum > 0 %}{{ license.pay_sum|get_plural:"рубль,рубля,рублей" }}{% else %}Бесплатно{% endif %}</td>
<td>{{ license.get_payform_display }}</td>
<td>{{ license.get_status_display }}</td>
<td>{{ license.get_action_link|safe }}</td>
<td>{% if license.status == 0 %}<a href='#' class='delete_license' data-id='{{ license.pk }}'>Удалить</a>{% endif %}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
{% block js %}

@ -3,29 +3,29 @@
{% block title %}История расчётов{% endblock %}
{% block content %}
<p><a href="{% url 'customer_order_license' %}">Купить лицензию</a></p>
<p><a href="{% url 'customer_license_list' %}">Все счета</a></p>
<h1>История оплат</h1>
<div class='header'>
<div class='w100 left'>Дата оплаты</div>
<div class='w100 left'>По счёту</div>
<div class='w100 left'>Сумма</div>
<div class='w100 left'>Срок лицензии</div>
<div class='w200 left'>Период действия лицензии</div>
<div class='w100 left'>Статус лицензии</div>
<div class='w100 left'>Закрывающие документы</div>
<div class='clear'></div>
</div>
<div class="btn yellow-btn docs-btn"><a href="{% url 'customer_order_license' %}">Купить лицензию</a></div>
<div class="btn yellow-btn docs-btn"><a href="{% url 'customer_license_list' %}">Все счета</a></div>
<table id="history" class="list">
<tr>
<th>Дата оплаты</th>
<th>По счёту</th>
<th>Сумма</th>
<th>Срок лицензии</th>
<th>Период действия лицензии</th>
<th>Статус лицензии</th>
<th>Закрывающие документы</th>
</tr>
{% for license in licenses %}
<div>
<div class='w100 left'>{{ license.paid_date|default:'-' }}</div>
<div class='w100 left'>{% if license.pay_sum %}{{ license.id }}{% else %}-{% endif %}</div>
<div class='w100 left'>{% if license.pay_sum %}{{ license.pay_sum }}{% else %}-{% endif %}</div>
<div class='w100 left'>{{ license.get_term }}</div>
<div class='w200 left'>{% if license.date_from %}{{ license.date_from }} - {{ license.date_to }}{% else %}-{% endif %}</div>
<div class='w100 left'>{{ license.get_status_display }}<p>{{ license.get_paid_status|default:'' }}</p></div>
<div class='w100 left'>Разные документы</div>
<div class='clear'></div>
</div>
<tr>
<td>{{ license.paid_date|default:'-' }}</td>
<td>{% if license.pay_sum %}{{ license.id }}{% else %}-{% endif %}</td>
<td>{% if license.pay_sum %}{{ license.pay_sum }}{% else %}-{% endif %}</td>
<td>{{ license.get_term }}</td>
<td>{% if license.date_from %}{{ license.date_from }} - {{ license.date_to }}{% else %}-{% endif %}</td>
<td>{{ license.get_status_display }}<p>{{ license.get_paid_status|default:'' }}</p></td>
<td>Разные документы</td>
</tr>
{% endfor %}
</table>
{% endblock %}

@ -3,7 +3,9 @@
{% block title %}Сменить e-mail{% endblock %}
{% block content %}
<div class="center-form-page">
<h2>Сменить e-mail</h2>
{% include 'myauth/change_email_form.html' %}
</div>
{% endblock %}

@ -1,4 +1,4 @@
<div class="change-email-form">
<div class="change-email-form center-form">
{% if form.non_field_errors %}
<p class="error">{{ form.non_field_errors }}</p>
{% endif %}
@ -14,7 +14,6 @@
<div id="{{ field.name }}" class="field">
{% if field.label %}
{{ field.label_tag }}
<div class="clear"></div>
{% endif %}
{{ field }}
@ -22,6 +21,7 @@
{% if field.help_text %}
<span class="help-text">{{ field.help_text }}</span>
<div class="clear"></div>
{% endif %}
{% if field.errors %}

@ -3,7 +3,9 @@
{% block title %}Сменить пароль{% endblock %}
{% block content %}
<div class="center-form-page">
<h2>Сменить пароль</h2>
{% include 'myauth/change_password_form.html' %}
</div>
{% endblock %}

@ -3,7 +3,7 @@
<p class="error">{{ form.non_field_errors }}</p>
{% endif %}
<form id="change-password-form" action="{% url 'myauth_change_password' %}" method="post">
<form id="change-password-form" action="{% url 'myauth_change_password' %}" class='center-form' method="post">
{% csrf_token %}
{% for hidden in form.hidden_fields %}
@ -14,14 +14,14 @@
<div id="{{ field.name }}" class="field">
{% if field.label %}
{{ field.label_tag }}
<div class="clear"></div>
{% endif %}
{{ field }}
<div class="clear"></div>
{% if field.help_text %}
<span class="help-text">{{ field.help_text }}</span>
<span class="help-text right">{{ field.help_text }}</span>
<div class="clear"></div>
{% endif %}
{% if field.errors %}

@ -3,7 +3,7 @@
{% block title %}Вход в систему{% endblock %}
{% block content %}
<div class="login-page">
<div class="center-form-page">
<h2>ВХОД В СИСТЕМУ ДОКУМЕНТОРА</h2>
{% if user.is_authenticated %}

@ -1,4 +1,4 @@
<div class="login-form auth-form">
<div class="login-form center-form">
{% if form.non_field_errors %}
<p class="error">{{ form.non_field_errors }}</p>
{% endif %}

Loading…
Cancel
Save