master
fefa4ka 11 years ago
parent b333bbf534
commit c09fdf8b29
  1. 5
      djangocms_forms/templates/djangocms_forms/form_template/default.html
  2. 3
      djangocms_forms/templatetags/djangocms_forms_tags.py
  3. 5
      zsite/static/less/about.less
  4. 83
      zsite/static/less/service.less

@ -20,10 +20,13 @@
<label for="{{ field.id_for_label }}">
{{ field.label }}
</label>
{% if field|is_textarea %}
<div id="help-text-{{ field.auto_id }}" class="help-text">{{ field.help_text|safe }}</div>
{% endif %}
{% if not field|is_checkbox %}
<p>{{ field }}</p>
{% endif %}
{% if field.help_text %}
{% if not field|is_textarea and field.help_text %}
<div id="help-text-{{ field.auto_id }}" class="help-text">{{ field.help_text|safe }}</div>
{% endif %}
</div>

@ -11,6 +11,9 @@ register = template.Library()
def is_checkbox(field):
return isinstance(field.field.widget, forms.CheckboxInput)
@register.filter
def is_textarea(field):
return isinstance(field.field.widget, forms.Textarea)
@register.filter
def is_password(field):

@ -90,3 +90,8 @@
}
}
.contacts-address-description {
font-size: 12px;
margin-top: -12px;
}

@ -1,28 +1,85 @@
.service-timeline {
h4 {
margin: 0
.service-timeline h4 {
margin: 0;
}
.service-timeline p {
opacity: .8;
}
.service-timeline .arrow {
font-size: 33px;
vertical-align: text-bottom;
}
.service-finish p {
font-size: 16px;
}
.service-finish .contacts {
margin-top: 60px;
}
.service-finish .address {
margin-top: 20px;
}
.bill {
font-size: 12px;
background: url('/static/imgs/bill.png');
width: 299px;
height: 240px;
padding-left: 43px;
margin-left: -71px;
padding-right: 13px;
padding-top: 15px;
h5 {
font-weight: 700;
}
p {
opacity: .8;
table {
width: 100%;
.price {
font-weight: 700;
}
td {
vertical-align: top;
padding-bottom: 5px;
}
.total td {
font-size: 14px;
padding-top: 50px;
font-weight: 700;
}
}
}
.arrow {
font-size: 33px;
vertical-align: text-bottom;
.textinput,
.emailinput,
.telephoneinput,
.textarea {
input, textarea {
width: 60%;
font-size: 16px;
}
textarea {
height: 71px;
}
}
.field-wrapper {
margin: 10px 0;
ul {
list-style: none;
margin: 0;
padding: 0;
label {
font-weight: 100;
}
}
}
label {
margin: 0;
}
}

Loading…
Cancel
Save