Commit e2f19befbcc2c0b347507171ef94047426aba5b0
1 parent
4b2e151f
Exists in
master
and in
4 other branches
fix inline forms
Showing
6 changed files
with
6 additions
and
5 deletions
Show diff stats
app/assets/stylesheets/sections/projects.scss
app/views/admin/hooks/index.html.haml
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | Read more about system hooks |
| 6 | 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 | 9 | -if @hook.errors.any? |
| 10 | 10 | .alert-message.block-message.error |
| 11 | 11 | - @hook.errors.full_messages.each do |msg| | ... | ... |
app/views/admin/projects/index.html.haml
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | Projects |
| 3 | 3 | = link_to 'New Project', new_admin_project_path, class: "btn small right" |
| 4 | 4 | %br |
| 5 | -= form_tag admin_projects_path, method: :get do | |
| 5 | += form_tag admin_projects_path, method: :get, class: 'form-inline' do | |
| 6 | 6 | = text_field_tag :name, params[:name], class: "xlarge" |
| 7 | 7 | = submit_tag "Search", class: "btn submit primary" |
| 8 | 8 | ... | ... |
app/views/admin/users/index.html.haml
| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 | = link_to 'New User', new_admin_user_path, class: "btn small right" |
| 4 | 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 | 7 | = text_field_tag :name, params[:name], class: "xlarge" |
| 8 | 8 | = submit_tag "Search", class: "btn submit primary" |
| 9 | 9 | %ul.nav.nav-pills | ... | ... |
app/views/hooks/index.html.haml
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | Read more about web hooks |
| 9 | 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 | 12 | -if @hook.errors.any? |
| 13 | 13 | .alert-message.block-message.error |
| 14 | 14 | - @hook.errors.full_messages.each do |msg| | ... | ... |
app/views/search/show.html.haml