Browse Source

More forms updated. #114

Rafał Pitoń 12 years ago
parent
commit
6947bb4a44

+ 1 - 1
static/cranefly/css/cranefly.css

@@ -929,7 +929,7 @@ footer .breadcrumb li.active{color:#555}
 .form-container .form-header{border-bottom:1px solid #e7e7e7;margin-top:-20px;margin-bottom:20px;padding:10px 0}.form-container .form-header h1{margin:0;padding:0;font-size:17.5px}.form-container .form-header h1 small{font-size:13.125px;font-weight:bold}
 .form-container .form-header{border-bottom:1px solid #e7e7e7;margin-top:-20px;margin-bottom:20px;padding:10px 0}.form-container .form-header h1{margin:0;padding:0;font-size:17.5px}.form-container .form-header h1 small{font-size:13.125px;font-weight:bold}
 .form-container .form-header .btn{margin-left:14px;position:relative;bottom:30px}
 .form-container .form-header .btn{margin-left:14px;position:relative;bottom:30px}
 .form-container .form-preview{background-color:#fbfbfb;border:1px solid #e7e7e7;border-radius:3px;margin-bottom:20px;padding:20px}
 .form-container .form-preview{background-color:#fbfbfb;border:1px solid #e7e7e7;border-radius:3px;margin-bottom:20px;padding:20px}
-.form-container form{margin:0}.form-container form fieldset{border-top:1px solid #e7e7e7;padding-top:10px}.form-container form fieldset legend{margin-bottom:-10px;color:#999;font-size:14px;font-weight:bold}.form-container form fieldset legend div{margin-bottom:-10px}
+.form-container form{margin:0}.form-container form fieldset{padding-top:0}.form-container form fieldset legend{border:none;padding:0;color:#999;font-size:19.599999999999998px;font-weight:bold}
 .form-container form fieldset.first{border-top:none;padding-top:0}
 .form-container form fieldset.first{border-top:none;padding-top:0}
 .form-container form .control-label{font-weight:bold}
 .form-container form .control-label{font-weight:bold}
 .form-container form.form-horizontal fieldset.last .control-group:last-child{margin-bottom:0;padding-bottom:0}
 .form-container form.form-horizontal fieldset.last .control-group:last-child{margin-bottom:0;padding-bottom:0}

+ 4 - 8
static/cranefly/css/cranefly/forms.less

@@ -54,19 +54,15 @@
   	margin: 0px;
   	margin: 0px;
 
 
   	fieldset {
   	fieldset {
-  	  border-top: 1px solid darken(@bodyBackground, 8%);
-  	  padding-top: @baseLineHeight * 0.5;
+  	  padding-top: 0px;
 
 
       legend {
       legend {
-        margin-bottom: @baseLineHeight * -0.5;
+        border: none;
+        padding: 0px;
 
 
         color: @grayLight;
         color: @grayLight;
-        font-size: @baseFontSize;
+        font-size: @baseFontSize * 1.4;
         font-weight: bold;
         font-weight: bold;
-
-        div {
-          margin-bottom: @baseLineHeight * -0.5;
-        }
       }
       }
 
 
   	  &.first {
   	  &.first {

+ 1 - 1
templates/cranefly/usercp/options.html

@@ -28,7 +28,7 @@
       <fieldset>
       <fieldset>
         <legend>{% trans %}Forum Options{% endtrans %}</legend>
         <legend>{% trans %}Forum Options{% endtrans %}</legend>
         {{ form_theme.row(form.timezone, attrs={'class': 'span9'}) }}
         {{ form_theme.row(form.timezone, attrs={'class': 'span9'}) }}
-        {{ form_theme.row(form.newsletters, attrs={'class': 'span9', 'inline': _("Yes, I want to subscribe forum newsletter.")}) }}
+        {{ form_theme.row(form.newsletters, attrs={'inline': _("Yes, I want to subscribe forum newsletter.")}) }}
       </fieldset>
       </fieldset>
       <fieldset>
       <fieldset>
         <legend>{% trans %}Watching Threads{% endtrans %}</legend>
         <legend>{% trans %}Watching Threads{% endtrans %}</legend>

+ 1 - 1
templates/forms.html

@@ -109,7 +109,7 @@
 {%- endmacro %}
 {%- endmacro %}
 
 
 {% macro _input(_field, context) -%}
 {% macro _input(_field, context) -%}
-<input type="{{ context.type }}" id="id_{{ context.name }}" name="{{ context.name }}" {{ attributes(context.attrs)|trim }}{% if context.type != 'password' and 'value' in context and context.value|length > 0 %} value="{{ context.value }}"{% endif %}>
+<input type="{{ context.type }}" id="id_{{ context.name }}" name="{{ context.name }}" {{ attributes(context.attrs)|trim }}{% if context.type != 'password' and 'value' in context and context.value is not none %} value="{{ context.value }}"{% endif %}>
 {%- endmacro %}
 {%- endmacro %}
 
 
 {% macro _textarea(_field, context) -%}
 {% macro _textarea(_field, context) -%}