hooks scaffold
This commit is contained in:
parent
495deea7eb
commit
2d3b6375f3
8 changed files with 40 additions and 7 deletions
13
app/views/hooks/new.html.haml
Normal file
13
app/views/hooks/new.html.haml
Normal file
|
@ -0,0 +1,13 @@
|
|||
= render "repositories/head"
|
||||
= form_for [@project, @hook], :as => :hook, :url => project_hooks_path(@project) do |f|
|
||||
-if @hook.errors.any?
|
||||
%ul
|
||||
- @hook.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
= f.label :url, "URL:"
|
||||
= f.text_field :url, :class => "text_field"
|
||||
.clear
|
||||
%br
|
||||
.merge-tabs
|
||||
= f.submit "Save", :class => "grey-button"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue