From eb5fa8344e573851fa1c84a262de84ab379b0e59 Mon Sep 17 00:00:00 2001 From: Aleksei Kvitinskii Date: Mon, 7 Nov 2011 20:21:42 +0200 Subject: [PATCH] correct padding in issue form and in profile form --- app/assets/stylesheets/style.scss | 11 +++++++++++ app/views/issues/_form.html.haml | 10 +++++----- app/views/profile/show.html.haml | 6 +++--- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/style.scss b/app/assets/stylesheets/style.scss index ec403eba..13f26d97 100755 --- a/app/assets/stylesheets/style.scss +++ b/app/assets/stylesheets/style.scss @@ -87,6 +87,17 @@ h2{margin: 1.5em 0} /* Forms */ input[type="text"]:focus, input[type="password"]:focus { outline: none; } input.text{border: 1px solid #ccc; border-radius: 4px; display: block; padding: 10px} + +.form-row{ + padding: 0px 0px 10px 0px; +} + +.form-row label{ + font-weight:bold; + display: inline-block; + padding: 0px 0px 5px 0px; +} + /* eo Forms */ /* Tables */ diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml index 025dc9bc..ffcdc028 100644 --- a/app/views/issues/_form.html.haml +++ b/app/views/issues/_form.html.haml @@ -5,21 +5,21 @@ - @issue.errors.full_messages.each do |msg| %li= msg - .span-8 + .form-row = f.label :title = f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255 - .span-8 + .form-row = f.label :assignee_id = f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }) - .span-1 + .form-row = f.label :critical, "Critical" %br = f.check_box :critical - unless @issue.new_record? - .span-2.right + .form-row = f.label :closed %br = f.check_box :closed %hr - .span-6 + .form-row = f.submit 'Save', :class => "lbutton vm" diff --git a/app/views/profile/show.html.haml b/app/views/profile/show.html.haml index ef23a169..bf45f440 100644 --- a/app/views/profile/show.html.haml +++ b/app/views/profile/show.html.haml @@ -16,15 +16,15 @@ - @user.errors.full_messages.each do |msg| %li= msg - .div + .form-row = f.label :skype %br = f.text_field :skype - .div + .form-row = f.label :linkedin %br = f.text_field :linkedin - .div + .form-row = f.label :twitter %br = f.text_field :twitter