gitlabhq/app/views/admin/projects/_form.html.haml

40 lines
850 B
Text
Raw Normal View History

2011-10-08 23:36:38 +02:00
= form_for [:admin, @admin_project] do |f|
-if @admin_project.errors.any?
#error_explanation
2011-11-15 09:34:30 +01:00
%h2= "#{pluralize(@admin_project.errors.count, "error")} prohibited this admin_project from being saved:"
2011-10-08 23:36:38 +02:00
%ul
- @admin_project.errors.full_messages.each do |msg|
%li= msg
2011-11-07 19:38:54 +01:00
.form-row
= f.label :name
%br
= f.text_field :name
.form-row
= f.label :code
%br
= f.text_field :code
.form-row
= f.label :path
%br
= f.text_field :path
.form-row
= f.label :tag_list
%br
= f.text_area :tag_list, :placeholder => "project tags", :style => "height:50px", :id => :tag_field
.form-row
= f.label :description
%br
= f.text_area :description
2011-10-08 23:36:38 +02:00
.clear
%br
2011-10-08 23:36:38 +02:00
.actions
= f.submit 'Save', :class => "grey-button"
2011-11-07 19:38:54 +01:00
:javascript
$(function(){
taggifyForm();
2011-11-15 09:34:30 +01:00
})