Show More
@@ -99,12 +99,14 b' class NeboardForm(forms.Form):' | |||||
99 |
|
99 | |||
100 | return self._html_output( |
|
100 | return self._html_output( | |
101 | # TODO Do not show hidden rows in the list here |
|
101 | # TODO Do not show hidden rows in the list here | |
102 |
normal_row='<div class="form-row" |
|
102 | normal_row='<div class="form-row">' | |
|
103 | '<div class="form-label">' | |||
103 | '%(label)s' |
|
104 | '%(label)s' | |
104 |
'</div> |
|
105 | '</div>' | |
105 |
'<div class= |
|
106 | '<div class="form-input">' | |
106 | '%(field)s' |
|
107 | '%(field)s' | |
107 |
'</div> |
|
108 | '</div>' | |
|
109 | '</div>' | |||
108 | '<div class="form-row">' |
|
110 | '<div class="form-row">' | |
109 | '%(help_text)s' |
|
111 | '%(help_text)s' | |
110 | '</div>', |
|
112 | '</div>', |
@@ -146,20 +146,25 b' p, .br {' | |||||
146 |
|
146 | |||
147 | .form-row { |
|
147 | .form-row { | |
148 | width: 100%; |
|
148 | width: 100%; | |
|
149 | display: table-row; | |||
149 | } |
|
150 | } | |
150 |
|
151 | |||
151 | .form-label { |
|
152 | .form-label { | |
152 | padding: .25em 1ex .25em 0; |
|
153 | padding: .25em 1ex .25em 0; | |
153 | vertical-align: top; |
|
154 | vertical-align: top; | |
|
155 | display: table-cell; | |||
154 | } |
|
156 | } | |
155 |
|
157 | |||
156 | .form-input { |
|
158 | .form-input { | |
157 | padding: .25em 0; |
|
159 | padding: .25em 0; | |
|
160 | width: 100%; | |||
|
161 | display: table-cell; | |||
158 | } |
|
162 | } | |
159 |
|
163 | |||
160 | .form-errors { |
|
164 | .form-errors { | |
161 | font-weight: bolder; |
|
165 | font-weight: bolder; | |
162 | vertical-align: middle; |
|
166 | vertical-align: middle; | |
|
167 | display: table-cell; | |||
163 | } |
|
168 | } | |
164 |
|
169 | |||
165 | .post-form input:not([name="image"]), .post-form textarea, .post-form select { |
|
170 | .post-form input:not([name="image"]), .post-form textarea, .post-form select { |
General Comments 0
You need to be logged in to leave comments.
Login now