diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 18:16:50 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-31 18:16:50 +0400 |
commit | b563312c2f59c04d535aa798e5cdfa8596f22dee (patch) | |
tree | 6eb47942998aec0ab1fcd9a4a60a0414d17c49f9 /app/views/projects/hooks | |
parent | 1b5510a85e9dc59b6a8f1ad8e19539c563cfcb0a (diff) |
Style project edit section
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/hooks')
-rw-r--r-- | app/views/projects/hooks/index.html.haml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/app/views/projects/hooks/index.html.haml b/app/views/projects/hooks/index.html.haml index 9cfcb20ea8d..5c9705b9427 100644 --- a/app/views/projects/hooks/index.html.haml +++ b/app/views/projects/hooks/index.html.haml @@ -7,19 +7,17 @@ %hr.clearfix -= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-inline' } do |f| += form_for [@project, @hook], as: :hook, url: project_hooks_path(@project), html: { class: 'form-horizontal' } do |f| -if @hook.errors.any? .alert.alert-error - @hook.errors.full_messages.each do |msg| %p= msg .form-group - = f.label :url, "URL" + = f.label :url, "URL", class: 'control-label' .col-sm-10 - = f.text_field :url, class: "text_field input-lg input-xpadding", placeholder: 'http://example.com/trigger-ci.json' - - = f.submit "Add Web Hook", class: "btn btn-create" + = f.text_field :url, class: "form-control", placeholder: 'http://example.com/trigger-ci.json' .form-group - = f.label :url, "Trigger" + = f.label :url, "Trigger", class: 'control-label' .col-sm-10 %div = f.check_box :push_events, class: 'pull-left' @@ -42,7 +40,8 @@ %strong Merge Request events %p.light This url will be triggered for created merge requests -%hr + .form-actions + = f.submit "Add Web Hook", class: "btn btn-create" -if @hooks.any? .ui-box |