Commit eb5fa8344e573851fa1c84a262de84ab379b0e59
1 parent
06e91674
Exists in
master
and in
4 other branches
correct padding in issue form and in profile form
Showing
3 changed files
with
19 additions
and
8 deletions
Show diff stats
app/assets/stylesheets/style.scss
@@ -87,6 +87,17 @@ h2{margin: 1.5em 0} | @@ -87,6 +87,17 @@ h2{margin: 1.5em 0} | ||
87 | /* Forms */ | 87 | /* Forms */ |
88 | input[type="text"]:focus, input[type="password"]:focus { outline: none; } | 88 | input[type="text"]:focus, input[type="password"]:focus { outline: none; } |
89 | input.text{border: 1px solid #ccc; border-radius: 4px; display: block; padding: 10px} | 89 | input.text{border: 1px solid #ccc; border-radius: 4px; display: block; padding: 10px} |
90 | + | ||
91 | +.form-row{ | ||
92 | + padding: 0px 0px 10px 0px; | ||
93 | +} | ||
94 | + | ||
95 | +.form-row label{ | ||
96 | + font-weight:bold; | ||
97 | + display: inline-block; | ||
98 | + padding: 0px 0px 5px 0px; | ||
99 | +} | ||
100 | + | ||
90 | /* eo Forms */ | 101 | /* eo Forms */ |
91 | 102 | ||
92 | /* Tables */ | 103 | /* Tables */ |
app/views/issues/_form.html.haml
@@ -5,21 +5,21 @@ | @@ -5,21 +5,21 @@ | ||
5 | - @issue.errors.full_messages.each do |msg| | 5 | - @issue.errors.full_messages.each do |msg| |
6 | %li= msg | 6 | %li= msg |
7 | 7 | ||
8 | - .span-8 | 8 | + .form-row |
9 | = f.label :title | 9 | = f.label :title |
10 | = f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255 | 10 | = f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255 |
11 | - .span-8 | 11 | + .form-row |
12 | = f.label :assignee_id | 12 | = f.label :assignee_id |
13 | = f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }) | 13 | = f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }) |
14 | - .span-1 | 14 | + .form-row |
15 | = f.label :critical, "Critical" | 15 | = f.label :critical, "Critical" |
16 | %br | 16 | %br |
17 | = f.check_box :critical | 17 | = f.check_box :critical |
18 | - unless @issue.new_record? | 18 | - unless @issue.new_record? |
19 | - .span-2.right | 19 | + .form-row |
20 | = f.label :closed | 20 | = f.label :closed |
21 | %br | 21 | %br |
22 | = f.check_box :closed | 22 | = f.check_box :closed |
23 | %hr | 23 | %hr |
24 | - .span-6 | 24 | + .form-row |
25 | = f.submit 'Save', :class => "lbutton vm" | 25 | = f.submit 'Save', :class => "lbutton vm" |
app/views/profile/show.html.haml
@@ -16,15 +16,15 @@ | @@ -16,15 +16,15 @@ | ||
16 | - @user.errors.full_messages.each do |msg| | 16 | - @user.errors.full_messages.each do |msg| |
17 | %li= msg | 17 | %li= msg |
18 | 18 | ||
19 | - .div | 19 | + .form-row |
20 | = f.label :skype | 20 | = f.label :skype |
21 | %br | 21 | %br |
22 | = f.text_field :skype | 22 | = f.text_field :skype |
23 | - .div | 23 | + .form-row |
24 | = f.label :linkedin | 24 | = f.label :linkedin |
25 | %br | 25 | %br |
26 | = f.text_field :linkedin | 26 | = f.text_field :linkedin |
27 | - .div | 27 | + .form-row |
28 | = f.label :twitter | 28 | = f.label :twitter |
29 | %br | 29 | %br |
30 | = f.text_field :twitter | 30 | = f.text_field :twitter |