summaryrefslogtreecommitdiff
path: root/app/views/projects/_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/_form.html.haml')
-rw-r--r--app/views/projects/_form.html.haml16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/projects/_form.html.haml b/app/views/projects/_form.html.haml
index 6bc48df9183..ce66b2cf930 100644
--- a/app/views/projects/_form.html.haml
+++ b/app/views/projects/_form.html.haml
@@ -1,4 +1,4 @@
-= form_for(@project, :remote => true) do |f|
+= form_for(@project, remote: true) do |f|
- if @project.errors.any?
.alert-message.block-message.error
%ul
@@ -8,7 +8,7 @@
= f.label :name do
Project name is
.input
- = f.text_field :name, :placeholder => "Example Project", :class => "xxlarge"
+ = f.text_field :name, placeholder: "Example Project", class: "xxlarge"
%h5.page_title
.alert.alert-info
@@ -19,19 +19,19 @@
.input
.input-prepend
%strong
- = text_field_tag :ppath, @project.path_to_repo, :class => "xlarge", :disabled => true
+ = text_field_tag :ppath, @project.path_to_repo, class: "xlarge", disabled: true
.clearfix
= f.label :code do
URL
.input
.input-prepend
%span.add-on= web_app_url
- = f.text_field :code, :placeholder => "example"
+ = f.text_field :code, placeholder: "example"
- unless @project.new_record? || @project.heads.empty?
.clearfix
= f.label :default_branch, "Default Branch"
- .input= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:210px;")
+ .input= f.select(:default_branch, @project.heads.map(&:name), {}, style: "width:210px;")
- unless @project.new_record?
.alert.alert-info
@@ -56,8 +56,8 @@
%br
.actions
- = f.submit 'Save', :class => "btn primary"
- = link_to 'Cancel', @project, :class => "btn"
+ = f.submit 'Save', class: "btn primary"
+ = link_to 'Cancel', @project, class: "btn"
- unless @project.new_record?
.right
- = link_to 'Remove', @project, :confirm => 'Are you sure?', :method => :delete, :class => "btn danger"
+ = link_to 'Remove', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger"