Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_form.html.haml « projects « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ea42ed22311b4b9c335ee9e3f6e7e517fce068c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
= form_for [:admin, @admin_project] do |f|
  -if @admin_project.errors.any?
    #error_explanation
      %h2= "#{pluralize(@admin_project.errors.count, "error")} prohibited this admin_project from being saved:"
      %ul
        - @admin_project.errors.full_messages.each do |msg|
          %li= msg

  .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
  .clear
  %br
  .actions
    = f.submit 'Save', :class => "grey-button"

:javascript
  $(function(){
    taggifyForm();
  })