Commit e2f19befbcc2c0b347507171ef94047426aba5b0

Authored by Cyril
1 parent 4b2e151f

fix inline forms

app/assets/stylesheets/sections/projects.scss
@@ -35,6 +35,7 @@ @@ -35,6 +35,7 @@
35 .btn { 35 .btn {
36 padding:6px; 36 padding:6px;
37 margin-left:10px; 37 margin-left:10px;
  38 + margin-bottom:8px;
38 } 39 }
39 } 40 }
40 } 41 }
app/views/admin/hooks/index.html.haml
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 Read more about system hooks 5 Read more about system hooks
6 %strong #{link_to "here", help_system_hooks_path, class: "vlink"} 6 %strong #{link_to "here", help_system_hooks_path, class: "vlink"}
7 7
8 -= form_for @hook, as: :hook, url: admin_hooks_path do |f| 8 += form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
9 -if @hook.errors.any? 9 -if @hook.errors.any?
10 .alert-message.block-message.error 10 .alert-message.block-message.error
11 - @hook.errors.full_messages.each do |msg| 11 - @hook.errors.full_messages.each do |msg|
app/views/admin/projects/index.html.haml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 Projects 2 Projects
3 = link_to 'New Project', new_admin_project_path, class: "btn small right" 3 = link_to 'New Project', new_admin_project_path, class: "btn small right"
4 %br 4 %br
5 -= form_tag admin_projects_path, method: :get do 5 += form_tag admin_projects_path, method: :get, class: 'form-inline' do
6 = text_field_tag :name, params[:name], class: "xlarge" 6 = text_field_tag :name, params[:name], class: "xlarge"
7 = submit_tag "Search", class: "btn submit primary" 7 = submit_tag "Search", class: "btn submit primary"
8 8
app/views/admin/users/index.html.haml
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 = link_to 'New User', new_admin_user_path, class: "btn small right" 3 = link_to 'New User', new_admin_user_path, class: "btn small right"
4 %br 4 %br
5 5
6 -= form_tag admin_users_path, method: :get do 6 += form_tag admin_users_path, method: :get, class: 'form-inline' do
7 = text_field_tag :name, params[:name], class: "xlarge" 7 = text_field_tag :name, params[:name], class: "xlarge"
8 = submit_tag "Search", class: "btn submit primary" 8 = submit_tag "Search", class: "btn submit primary"
9 %ul.nav.nav-pills 9 %ul.nav.nav-pills
app/views/hooks/index.html.haml
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 Read more about web hooks 8 Read more about web hooks
9 %strong #{link_to "here", help_web_hooks_path, class: "vlink"} 9 %strong #{link_to "here", help_web_hooks_path, class: "vlink"}
10 10
11 -= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project) do |f| 11 += form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-inline' } do |f|
12 -if @hook.errors.any? 12 -if @hook.errors.any?
13 .alert-message.block-message.error 13 .alert-message.block-message.error
14 - @hook.errors.full_messages.each do |msg| 14 - @hook.errors.full_messages.each do |msg|
app/views/search/show.html.haml
1 -= form_tag search_path, method: :get do |f| 1 += form_tag search_path, method: :get, class: 'form-inline' do |f|
2 .padded 2 .padded
3 = label_tag :search do 3 = label_tag :search do
4 %strong Looking for 4 %strong Looking for