From cbf8fc756931d2b22f52fd19670c78af19b0ab63 Mon Sep 17 00:00:00 2001
From: Bachurin Sergey
Date: Tue, 3 Mar 2015 18:28:26 +0200
Subject: [PATCH] css
---
project/docs/models/aktrabot.py | 4 +-
project/myauth/views.py | 2 +-
project/settings.py | 6 +-
project/static/css/style.css | 83 ++++++++++++------
project/static/img/icon-add.png | Bin 0 -> 540 bytes
project/static/img/icon-calendar.png | Bin 0 -> 730 bytes
project/static/js/client.commons.js | 2 +-
project/static/js/lib/jquery.formset.js | 4 +-
.../customer/bank_accounts/delete.html | 2 -
.../customer/bank_accounts/edit.html | 2 -
.../customer/bank_accounts/form.html | 3 +-
.../customer/bank_accounts/list.html | 3 +-
.../templates/customer/clients/delete.html | 2 -
project/templates/customer/clients/edit.html | 2 -
project/templates/customer/clients/list.html | 2 +-
project/templates/customer/index.html | 12 +--
project/templates/customer/profile/edit.html | 30 +++----
.../templates/customer/profile/end_order.html | 4 +-
.../customer/profile/license_list.html | 4 +-
.../templates/customer/profile/paid_list.html | 6 +-
project/templates/docs/_base/base_delete.html | 2 -
project/templates/docs/_base/base_edit.html | 4 +-
project/templates/docs/_base/base_list.html | 2 +-
project/templates/docs/aktrabot/form.html | 1 -
project/templates/docs/aktrabot/list.html | 4 +-
project/templates/docs/aktsverki/form.html | 1 -
.../docs/aktsverki/form_tbl_items.html | 10 +--
project/templates/docs/docs.html | 14 ---
project/templates/docs/dover/form.html | 2 -
project/templates/docs/faktura/form.html | 9 +-
project/templates/docs/invoice/form.html | 9 +-
project/templates/docs/nakladn/form.html | 1 -
.../docs/parts/faktura_form_tbl_items.html | 22 ++---
.../templates/docs/parts/form_buttons.html | 2 +-
.../docs/parts/form_client_choices.html | 4 +-
project/templates/docs/parts/form_field.html | 9 +-
.../docs/parts/form_field_client.html | 13 +--
.../templates/docs/parts/form_tbl_items.html | 20 +++--
project/templates/docs/platejka/list.html | 3 +-
project/templates/menu/menu.html | 14 +++
project/templates/pages/index.html | 2 +-
41 files changed, 166 insertions(+), 155 deletions(-)
create mode 100644 project/static/img/icon-add.png
create mode 100644 project/static/img/icon-calendar.png
diff --git a/project/docs/models/aktrabot.py b/project/docs/models/aktrabot.py
index b524382..cf4dcda 100644
--- a/project/docs/models/aktrabot.py
+++ b/project/docs/models/aktrabot.py
@@ -8,8 +8,8 @@ from .mixins import SignedStatusFieldMixin, InvoiceFieldMixin
class AktRabot(BaseInvoiceModel, SignedStatusFieldMixin, InvoiceFieldMixin):
"""Акт выполн. работ."""
class Meta(BaseInvoiceModel.Meta):
- verbose_name = u'Акт выполн. работ'
- verbose_name_plural = u'Акты выполн. работ'
+ verbose_name = u'Акт выполненных работ'
+ verbose_name_plural = u'Акты выполненных работ'
class AktRabotItem(BaseItemInvoiceModel):
diff --git a/project/myauth/views.py b/project/myauth/views.py
index 3e94e7b..e72581e 100644
--- a/project/myauth/views.py
+++ b/project/myauth/views.py
@@ -219,7 +219,7 @@ def login(request):
#form_prefix = 'login'
form_prefix = ''
template_name = 'myauth/login.html'
- success_url = 'customer_index'
+ success_url = 'customer_profile_view'
if request.method == 'POST':
form = form_class(data=request.POST, prefix=form_prefix)
if form.is_valid():
diff --git a/project/settings.py b/project/settings.py
index 7a6bd17..c29f337 100644
--- a/project/settings.py
+++ b/project/settings.py
@@ -51,7 +51,11 @@ USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
-USE_L10N = True
+USE_L10N = False
+
+DECIMAL_SEPARATOR = '.'
+DATE_FORMAT = 'd.m.Y'
+DATE_INPUT_FORMATS = ('%d.%m.%Y', '%d.%m.%Y', '%Y-%m-%d')
# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True
diff --git a/project/static/css/style.css b/project/static/css/style.css
index 5a49a8d..7ef7a38 100644
--- a/project/static/css/style.css
+++ b/project/static/css/style.css
@@ -283,7 +283,7 @@ ul.messagelist li.error { background-image: url(../img/icon-error.gif); }
.errorlist { font-size: 8pt; overflow: hidden; }
.errorlist li { color: red; }
-.help-text { font-size: 8pt; color: #666666; }
+.help-text { font-size: 8pt; color: #666666; display:block;padding:10px;}
form { font-size: small; padding: 0; margin: 0; }
form label {font-style:italic;font-size:16px;}
@@ -300,12 +300,13 @@ fieldset {
}
textarea { width: 99%; }
-input[type=text], input[type=email], input[type=password], select, textarea { border: 1px inset #8c8c8c; }
-input[type=text], input[type=email], input[type=password], textarea, option { padding-left: 2px; margin-left: 2px; }
+input[type=text], input[type=number], input[type=email], input[type=password], select, textarea { border: 2px inset #d8d8d8; }
+input[type=text], input[type=number], input[type=email], input[type=password], textarea, option { padding-left: 2px; margin-left: 2px; }
.long-input input { width: 350px; }
-.block { margin: 10px 0; }
+.block {margin: 10px 0;overflow:hidden;}
+.bt {border-top:#313942 1px solid; padding-top:15px;}
.client-form .col1 { float: left; width: 350px; }
.client-form .col2 { float: left; width: 370px; }
@@ -347,9 +348,9 @@ input[type=text], input[type=email], input[type=password], textarea, option { pa
ul { clear: both; list-style: none; margin: 0; padding: 0; }
.nav {display:block;margin:20px;}
-.has-datepicker { background: url(../img/icon-calendar.gif) no-repeat scroll right center transparent; }
+.has-datepicker { background: url(../img/icon-calendar.png) no-repeat scroll right 5px center #f8f8f8; }
-.profile-form input#id_ip_reg_date { background: url(../img/icon-calendar.gif) no-repeat scroll right center transparent; }
+.profile-form input#id_ip_reg_date { background: url(../img/icon-calendar.png) no-repeat scroll right center transparent; }
#id_phone_code, #id_fax_code { width: 60px; }
#accounts .account-delete a { text-decoration: none; }
@@ -357,7 +358,9 @@ ul { clear: both; list-style: none; margin: 0; padding: 0; }
#accounts .account-add img { vertical-align: middle; margin-right: 6px; }
#accounts .main { color: green; font-size: 11px; text-align: center; padding-left: 10px; vertical-align: top; }
-.add-link img { vertical-align: middle; margin-right: 6px; }
+.add-link, .add-row {background:url(../img/icon-add.png) no-repeat left;padding:5px 0 5px 26px;line-height:22px;display:inline-block;}
+.add-link {margin-left:10px;}
+.add-row {margin-top:4px;}
.edit-link a, .delete-link a { text-decoration: none; }
.doc-panel {background:#fff;}
@@ -382,13 +385,16 @@ a.delete { vertical-align: top; }
.profile-filters-form .accounts ul li span.name { margin-left: 25px; }
.div-doc-form {background:#fff;padding:15px;box-shadow: 0 0 5px #ddd;}
-.doc-form input[type=text], input[type=email], input[type=password], textarea, option { padding-left: 2px; margin-left: 0; }
+.doc-form input[type=text], .doc-form input[type=email], .doc-form input[type=number], .doc-form input[type=password], .doc-form textarea, .doc-form option {padding-left:2px;margin-left:0;height:36px;font-size:25px;}
+#id_client_text {width:406px;}
+#id_client-wrapper {display:inline;}
.doc-form #doc_date,
.doc-form #doc_mesto, .doc-form #end_date,
- .doc-form #doc_expire_date, .doc-form #dover_doc_date, .doc-form #dover_passport_num
+ .doc-form #doc_expire_date, .doc-form #dover_doc_date, .doc-form #dover_passport_num, .doc-form #plat_doc_date
{ margin-left: 10px; }
+.doc-form #client .hilight {font-size:25px;}
.doc-form #saldo_debit input { margin-left: 12px; }
.doc-form #saldo_credit input { margin-left: 5px; }
.doc-form #saldo_debit .errorlist, .doc-form #saldo_credit .errorlist { margin-left: 83px; }
@@ -423,28 +429,49 @@ a.delete { vertical-align: top; }
.doc-form #nds_type { padding-top: 16px; }
.doc-form #nds_type ul li { float: left; }
-.doc-form table.list td.name input[type=text] { width: 284px; }
-.doc-form table.list td.qty input[type=text] { width: 68px; }
-.doc-form table.list td.units input[type=text] { width: 50px; }
-.doc-form table.list td.units_kod input[type=text] { width: 20px; }
-.doc-form table.list td.price input[type=text] { width: 72px; }
-.doc-form table.list td.total_price input[type=text] { width: 84px; }
-.doc-form table.list td.country_code input[type=text] { width: 24px; }
-.doc-form table.list td.country_name input[type=text] { width: 84px; }
-.doc-form table.list td.ntd input[type=text] { width: 84px; }
-
-.doc-form table.list.aktsverki td.name input[type=text] { width: 432px; }
-.doc-form table.list.aktsverki td.debit input[type=text] { width: 96px; }
-.doc-form table.list.aktsverki td.credit input[type=text] { width: 96px; }
-
-.doc-form table.list.dover td.name input[type=text] { width: 432px; }
-.doc-form table.list.dover td.qty input[type=text] { width: 96px; }
-.doc-form table.list.dover td.units input[type=text] { width: 96px; }
+.doc-form table.doc-list {border-collapse:collapse;position:relative;}
+.doc-form table.doc-list td {border:4px solid #fff;}
+.doc-form table.doc-list .itogo-td {background:#313942;height:30px;font-size:20px;color:#fff;padding:5px 10px;border-bottom:2px solid #313942;border-top:2px solid #313942;}
+.doc-form table.doc-list .itogo-td1 {border-right:2px solid #313942;}
+.doc-form table.doc-list .itogo-td2 {border-left:2px solid #313942;}
+.doc-form table.doc-list .add-row {position:absolute;bottom:5px;}
+
+.doc-form table.doc-list th {font-weight:normal;text-align:left;font-size:14px;}
+
+.doc-form table.doc-list td.name { width: 590px; }
+.doc-form table.doc-list td.name input[type=text] { width: 584px; }
+.doc-form table.factura-doc-list td.name { width: 260px; }
+.doc-form table.factura-doc-list td.name input[type=text] { width: 250px; }
+.doc-form table.doc-list td.qty { width: 140px; }
+.doc-form table.doc-list td.qty input { width: 135px; }
+.doc-form table.doc-list td.units { width: 90px; }
+.doc-form table.doc-list td.units input { width: 86px; }
+.doc-form table.doc-list td.units_kod input { width: 80px; }
+.doc-form table.doc-list td.price { width: 128px;}
+.doc-form table.doc-list td.price input { width: 132px; }
+.doc-form table.doc-list td.total_price { width: 128px; }
+.doc-form table.doc-list td.total_price input { width: 132px; }
+.doc-form table.doc-list td.country_code input { width: 48px; }
+.doc-form table.doc-list td.country_name input { width: 84px; }
+.doc-form table.doc-list td.ntd input { width: 84px; }
+.doc-form table.doc-list td.DELETE {width: 48px;}
+
+.doc-form table.doc-list.aktsverki td.name input[type=text] { width: 432px; }
+.doc-form table.doc-list.aktsverki td.debit input[type=text] { width: 96px; }
+.doc-form table.doc-list.aktsverki td.credit input[type=text] { width: 96px; }
+
+.doc-form table.doc-list.dover td.name input[type=text] { width: 432px; }
+.doc-form table.doc-list.dover td.qty input[type=text] { width: 96px; }
+.doc-form table.doc-list.dover td.units input[type=text] { width: 96px; }
+
+.doc-form .buttons input[name=submit] {padding:10px 40px 10px 75px;background:url(../img/save.png) no-repeat left 30px center #fed13e;color:#4e5661;font-weight:normal;font-family:"Arial Narrow", Arial, sans-serif;}
.doc-email-form input#id_to { width: 99% }
.doc-email-form textarea { width: 99%; margin-left: 2px; }
.doc-email-form #doc_format ul li { display: inline; }
+.delete-row {display:inline-block;width:21px;height:21px;background:url(../img/close.png) no-repeat center center;}
+
.filters #id_client, .filters #id_invoice { width: 99%; }
#dialogs { display: none; }
@@ -512,11 +539,13 @@ div.blockMsg { width: 100%; height: 100%; top: 0; left: 0; text-align: center; }
#menu ul li {display:table-cell;height:50px;background:#313942;font-family:"Arial Narrow", Arial, sans-serif;font-size:16px;vertical-align:middle;border-right:solid 1px #272b31;border-left: solid 1px #434a52}
#menu ul li.yellow {background:#fed13e;}
#menu ul li.yellow a, #menu ul li.yellow span {color:#313942;}
-#menu ul li.yellow.selected{background:url('../img/menu-selected2.png') #fed13e no-repeat bottom center;}
+#menu ul li.yellow.selected {background:url('../img/menu-selected2.png') #fed13e no-repeat bottom center;}
+#menu ul li.yellow.selected a {color:#313942;}
#menu ul li a, #menu ul li span {text-decoration:none;padding:0 25px;}
#menu ul li a {color:#fff;}
#menu ul li span{color:#fed13e;}
#menu ul li.selected{background:url('../img/menu-selected.png') #313942 no-repeat bottom center; }
+#menu ul li.selected a{color:#fed13e;}
#menu .other_docs_menu {position:absolute;top:50px;z-index:50;}
#menu .other_docs_menu li {display:block;}
diff --git a/project/static/img/icon-add.png b/project/static/img/icon-add.png
new file mode 100644
index 0000000000000000000000000000000000000000..0766184d7bc76569dd7215deefba37d5b996962d
GIT binary patch
literal 540
zcmV+%0^|LOP)(copwmP
zr?M`iL@6<1l%h*S6B}JR#O~WE(YZ^rTTF?ijE&KyDY7XdjTjLTG2T
z@?(;J3bq5>pi65wb}f2A7Imkm=!=GpQod%7FQXj-IUJ6Nj(~41D8jWdnaLN?-oHdo
zM7v;A6Lt+%(66Li?Ok-bK{aGeRHic1lPITVfxg8)YwD;vmFBQEq>WmUQx#BU075}%c0)FU(6MtSw#oLX-s`UXg7Gz7#2#=*NwZnvQI7I{`d}HB
eyzZ!90R{l)JZQ3n(MJ0K0000X1^@s6FWx?20000PbVXQnQ*UN;
zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU!d`Uz>RCwCFmd{I6Q547TeZ46wYhkr1
ziZ*3G1d|y93xYs|AkbZ{+SNZGEn5~r+ZLj@h#;^aszni`R0}Bt%_iLhQJ|ZUN*zZh
zwb%E+_tD{SU(J+u;lq1#-o5vndw$*VNs_oiq2SEe2rh$HV9BR>h+!3|Kh
z8^$g?60i?^2z=WEwglumz-|zQHuU*?-s9N`^57Hr0dk-Pd7AX4F=4H
z-Bfnf$j^cfa2FMDnmY#AzvWD5xM^~vQ8wy?qXqzYafAcpq1$@V*-pYak{vd#Pvbw
zWLb(NUZ>UXAu2io+End`qRrrxn)|dCMPk_)JHRSfq+AMmr+OECNE}~e&3q4J<8Kwo
z#ytV~bMmVtByQe&ck^Fjbe>PCjeFoLtGt218aM0Y&
zRcD>l!xJtNU(C@ZMOeH(I2*b`-_xa_gpB{2D1qn2|DOW2UJ518QIwPS!|~XK9Rzj-LVy0OMMwJp}mDtN;K2
M07*qoM6N<$f(olooB#j-
literal 0
HcmV?d00001
diff --git a/project/static/js/client.commons.js b/project/static/js/client.commons.js
index 0449417..5298d0e 100644
--- a/project/static/js/client.commons.js
+++ b/project/static/js/client.commons.js
@@ -86,7 +86,7 @@ function setup_client_delete_links(form, reload_on_success) {
}
function setup_client_add_link(form, reload_on_success) {
- $('a.client.add-link').each(function() {
+ $('a.client.add-client-link').each(function() {
$(this).click(function() {
var link = $(this);
diff --git a/project/static/js/lib/jquery.formset.js b/project/static/js/lib/jquery.formset.js
index d4aaeeb..463bc44 100644
--- a/project/static/js/lib/jquery.formset.js
+++ b/project/static/js/lib/jquery.formset.js
@@ -195,8 +195,8 @@
prefix: 'form', // The form prefix for your django formset
min_num: 0, // Minimum count rows
formTemplate: null, // The jQuery selection cloned to generate new form instances
- addText: '+ Добавить строку', // Text for the add link
- deleteText: 'Удалить', // Text for the delete link
+ addText: 'Добавить строку', // Text for the add link
+ deleteText: '', // Text for the delete link
addCssClass: 'add-row', // CSS class applied to the add link
deleteCssClass: 'delete-row', // CSS class applied to the delete link
formCssClass: 'dynamic-form', // CSS class applied to each form in a formset
diff --git a/project/templates/customer/bank_accounts/delete.html b/project/templates/customer/bank_accounts/delete.html
index 7c7ee2a..e76e25b 100644
--- a/project/templates/customer/bank_accounts/delete.html
+++ b/project/templates/customer/bank_accounts/delete.html
@@ -9,8 +9,6 @@
№ {{ account.account }}
-
-