diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-21 02:25:44 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-21 02:25:44 +0400 |
commit | 3a47ed979a62e91fdcd7d05ebb309759788a23b6 (patch) | |
tree | 0eb7a694e42db28763c2c7b27d74dccf35c08458 /app/views/shared/_group_form.html.haml | |
parent | 72abe9f679043a1ac566f60109b21cadace204d7 (diff) |
Factor group forms
Diffstat (limited to 'app/views/shared/_group_form.html.haml')
-rw-r--r-- | app/views/shared/_group_form.html.haml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/shared/_group_form.html.haml b/app/views/shared/_group_form.html.haml new file mode 100644 index 00000000000..93294e42505 --- /dev/null +++ b/app/views/shared/_group_form.html.haml @@ -0,0 +1,12 @@ +.form-group + = f.label :name, class: 'control-label' do + Group name + .col-sm-10 + = f.text_field :name, placeholder: 'Example Group', class: 'form-control', + autofocus: local_assigns[:autofocus] || false + +.form-group.group-description-holder + = f.label :description, 'Details', class: 'control-label' + .col-sm-10 + = f.text_area :description, maxlength: 250, + class: 'form-control js-gfm-input', rows: 4 |