From 9e86f77a0bd0b03a0ba1c38821e2556f3c640034 Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Thu, 26 Feb 2015 13:50:01 +0200 Subject: [PATCH] clients dialog --- project/static/css/style.css | 44 +++++++- project/static/img/save.png | Bin 0 -> 591 bytes project/static/js/client.commons.js | 4 +- project/templates/customer/clients/form.html | 101 +++++++++---------- 4 files changed, 91 insertions(+), 58 deletions(-) create mode 100644 project/static/img/save.png diff --git a/project/static/css/style.css b/project/static/css/style.css index ce21555..977c7a3 100644 --- a/project/static/css/style.css +++ b/project/static/css/style.css @@ -225,6 +225,24 @@ h1, h2, h3 { line-height: normal; } h1 {font-family:"Arial Narrow", Arial, sans-serif;font-size:30px;font-weight:normal;font-stretch:condensed;} h2 {font-weight: normal;font-size:24px;} + +.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { + border-radius:none!important; +} +.ui-widget-content { + background:#fff; +} +.ui-dialog .ui-dialog-content { + background:#fff; +} +.ui-dialog .ui-dialog-buttonpane { + border:0; + position:absolute; + bottom:0; + right:100px; + padding:15px 0; +} + ul.messagelist { padding: 0 0 5px 0; margin: 0; } ul.messagelist li { font-size: 12px; @@ -238,6 +256,13 @@ ul.messagelist li { ul.messagelist li.warning { background-image: url(../img/icon-alert.gif); } ul.messagelist li.error { background-image: url(../img/icon-error.gif); } +.ui-dialog .save_btn {display:inline;font-family:"Arial Narrow", Arial, sans-serif;font-size:22px;text-transform:uppercase;font-weight:bold;border:none;width:215px;height:72px;background:#fed13e;border-radius:0;} +.ui-dialog .save_btn span {width:215px;display:table-cell;vertical-align:middle;text-align:right;text-transform:uppercase;text-decoration:none;font-size:22px;color:#4e5661;background:url(../img/save.png) no-repeat 20px top;} +.ui-dialog .cancel_btn {display:inline;font-family:"Arial Narrow", Arial, sans-serif;font-weight:bold;border:none;width:120px;height:72px;background:none;border-radius:0;} +.ui-dialog .cancel_btn span {width:215px;display:table-cell;vertical-align:middle;text-align:center;text-decoration:underline;font-size:14px;color:#498dd0;font-weight:normal;} + +.reqs_btns .yellow-btn {color:#4e5661;} + .hidden {display:none; } .errorlist { font-size: 8pt; overflow: hidden; } @@ -247,6 +272,8 @@ ul.messagelist li.error { background-image: url(../img/icon-error.gif); } form { font-size: small; padding: 0; margin: 0; } form label {font-style:italic;font-size:16px;} +.label {width:120px;text-align:right;font-size:14px;color:#646669;line-height:30px;} +.form-field: {width:210px;} input, select, textarea { font-family: Arial,Helvetica,sans-serif; font-size: 46px;line-height:46px; background:#f8f8f8;background:#f8f8f8;} @@ -258,21 +285,28 @@ fieldset { } textarea { width: 99%; } -input[type=text], input[type=password], select, textarea { border: 1px solid #777; } -input[type=text], input[type=password], textarea, option { padding-left: 2px; margin-left: 2px; } +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; } .long-input input { width: 350px; } .block { margin: 10px 0; } .client-form .col1 { float: left; width: 350px; } -.client-form .col2 { float: left; width: 290px; } -.client-form input[type=text], .client-form input[type=password], .client-form textarea, .client-form option { +.client-form .col2 { float: left; width: 370px; } +.client-form .field {margin-top: 5px;} +.client-form input[type=text], .client-form input[type=password], .client-form input[type=email] { + height:28px; +} +.client-form input[type=text], .client-form input[type=password], .client-form input[type=email], .client-form textarea, .client-form option { padding-left: 2px; + padding-right: 2px; margin-left: 2px; width: 200px; + font-size: 20px; + line-height:20px; } - +.client-form .bank-header {color:#646669;font-weight:bold;text-align:center;margin:15px 0;} /*.client-form .buttons { padding: 10px 0 6px 33px; }*/ .profile-table {width:100%;overflow:hidden;border-collapse: separate; display:table;border-spacing:15px;background:url(../img/darker-bg.png);padding-bottom:85px;} diff --git a/project/static/img/save.png b/project/static/img/save.png new file mode 100644 index 0000000000000000000000000000000000000000..6929725ba5a65791ba202cd3bd97e5d81844d773 GIT binary patch literal 591 zcmV-V0K@i68%i0Egzy>Ms&Sw*&2wFgx&v#(mqv!xggC=kcHi2hII1jeK zEXaUCp(%_X{?S0!I6A^Gs+v-u&2R4a0w(o>F%UB3 zYT@1mzNF^*Lb%G%tEmJY>(24OaI5HgL z5uF&jRS2o8lSrRc5H6}>EXvzBNP?_Ry;dZb5NrgawEd&7C?G3_cbq47IboZwu7#*tVxW=DIr%%U0?|vb51xIUN?4;}iGFTIUbLqfjyJFfp1>+- z2Nz&Zx^=N4W@PuNgi{oq18ZFQD>&uUTrMH2UMtHzbsOgj#r{% endif %}
-
 
-
- Наименование:{% if form.name.field.required %} *{% endif %} +
+ Наименование{% if form.name.field.required %}*{% endif %}:
-
+
{{ form.name }} {% if not is_ajax %}{{ form.name.errors }}{% endif %}
@@ -29,10 +28,10 @@
-
- ИНН:{% if form.inn.field.required %} *{% endif %} +
+ ИНН{% if form.inn.field.required %}*{% endif %}:
-
+
{{ form.inn }} {% if not is_ajax %}{{ form.inn.errors }}{% endif %}
@@ -40,10 +39,10 @@
-
- КПП:{% if form.kpp.field.required %} *{% endif %} +
+ КПП{% if form.kpp.field.required %}*{% endif %}:
-
+
{{ form.kpp }} {% if not is_ajax %}{{ form.kpp.errors }}{% endif %}
@@ -51,10 +50,10 @@
-
- ОКПО:{% if form.okpo.field.required %} *{% endif %} +
+ ОКПО{% if form.okpo.field.required %}*{% endif %}:
-
+
{{ form.okpo }} {% if not is_ajax %}{{ form.okpo.errors }}{% endif %}
@@ -62,23 +61,23 @@
-
- Юр. адрес:{% if form.address.field.required %} *{% endif %} +
+ Юр. адрес{% if form.address.field.required %}*{% endif %}:
-
+
{{ form.address }} {% if not is_ajax %}{{ form.address.errors }}{% endif %}
-
Банковские реквизиты
+
Банковские реквизиты
-
- БИК:{% if form.bank_bik.field.required %} *{% endif %} +
+ БИК{% if form.bank_bik.field.required %}*{% endif %}:
-
+
{{ form.bank_bik }} {% if not is_ajax %}{{ form.bank_bik.errors }}{% endif %}
@@ -86,10 +85,10 @@
-
- Наименование банка:{% if form.bank_name.field.required %} *{% endif %} +
+ Наименование банка{% if form.bank_name.field.required %}*{% endif %}:
-
+
{{ form.bank_name }} {% if not is_ajax %}{{ form.bank_name.errors }}{% endif %}
@@ -97,10 +96,10 @@
-
- Местонахождение:{% if form.bank_address.field.required %} *{% endif %} +
+ Местонахождение{% if form.bank_address.field.required %}*{% endif %}:
-
+
{{ form.bank_address }} {% if not is_ajax %}{{ form.bank_address.errors }}{% endif %}
@@ -108,10 +107,10 @@
-
- К/сч.:{% if form.bank_korr_account.field.required %} *{% endif %} +
+ К/сч.{% if form.bank_korr_account.field.required %}*{% endif %}:
-
+
{{ form.bank_korr_account }} {% if not is_ajax %}{{ form.bank_korr_account.errors }}{% endif %}
@@ -119,10 +118,10 @@
-
- Р/сч.:{% if form.bank_account.field.required %} *{% endif %} +
+ Р/сч.{% if form.bank_account.field.required %}*{% endif %}:
-
+
{{ form.bank_account }} {% if not is_ajax %}{{ form.bank_account.errors }}{% endif %}
@@ -131,13 +130,11 @@
-
Контакты
-
-
- Имя:{% if form.contact_name.field.required %} *{% endif %} +
+ Имя{% if form.contact_name.field.required %}*{% endif %}:
-
+
{{ form.contact_name }} {% if not is_ajax %}{{ form.contact_name.errors }}{% endif %}
@@ -145,10 +142,10 @@
-
- E-mail:{% if form.contact_email.field.required %} *{% endif %} +
+ E-mail{% if form.contact_email.field.required %}*{% endif %}:
-
+
{{ form.contact_email }} {% if not is_ajax %}{{ form.contact_email.errors }}{% endif %}
@@ -156,10 +153,10 @@
-
- Телефон:{% if form.contact_phone.field.required %} *{% endif %} +
+ Телефон{% if form.contact_phone.field.required %}*{% endif %}:
-
+
{{ form.contact_phone }} {% if not is_ajax %}{{ form.contact_phone.errors }}{% endif %}
@@ -167,10 +164,10 @@
-
- ICQ:{% if form.contact_icq.field.required %} *{% endif %} +
+ ICQ{% if form.contact_icq.field.required %}*{% endif %}:
-
+
{{ form.contact_icq }} {% if not is_ajax %}{{ form.contact_icq.errors }}{% endif %}
@@ -178,10 +175,10 @@
-
- Skype:{% if form.contact_skype.field.required %} *{% endif %} +
+ Skype{% if form.contact_skype.field.required %}*{% endif %}:
-
+
{{ form.contact_skype }} {% if not is_ajax %}{{ form.contact_skype.errors }}{% endif %}
@@ -189,10 +186,10 @@
-
- Другое:{% if form.contact_other.field.required %} *{% endif %} +
+ Другое{% if form.contact_other.field.required %}*{% endif %}:
-
+
{{ form.contact_other }} {% if not is_ajax %}{{ form.contact_other.errors }}{% endif %}