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 0000000..0766184 Binary files /dev/null and b/project/static/img/icon-add.png differ diff --git a/project/static/img/icon-calendar.png b/project/static/img/icon-calendar.png new file mode 100644 index 0000000..c5e9b59 Binary files /dev/null and b/project/static/img/icon-calendar.png differ 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 }}
-