app/views/project_hooks/new.html.erb
<h2><%= @project.name %> » <%= l(:label_hook_new) %></h2>
<%= labelled_form_for(@hook, url: project_hooks_path(@project)) do |f| %>
<%= render partial: 'form', locals: { f: f, hook: @hook } %>
<%= submit_tag l(:button_save) %>
<%= link_to l(:button_cancel), settings_project_path(@project, tab: 'hooks') %>
<% end %>