summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-07 16:13:52 +0000
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-02-16 09:19:28 +0100
commitc3a1c47a460342ff670bbf4a83e27174dd45f0d2 (patch)
tree6dbe0812543deac252041ec9693887f8795d9601
parent8ddbc43576c1cebd652d6f3541574f0176794510 (diff)
downloadgitlab-ce-c3a1c47a460342ff670bbf4a83e27174dd45f0d2.tar.gz
Fix form fields to bing to correct model
-rw-r--r--app/views/groups/_create_chat_team.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/groups/_create_chat_team.html.haml b/app/views/groups/_create_chat_team.html.haml
index b2b5a2090f9..c06a7a23346 100644
--- a/app/views/groups/_create_chat_team.html.haml
+++ b/app/views/groups/_create_chat_team.html.haml
@@ -1,18 +1,18 @@
.form-group
- = f.label :name, class: 'control-label' do
+ = f.label :create_chat_team, class: 'control-label' do
%span.mattermost-icon
= custom_icon('icon_mattermost')
Mattermost
.col-sm-10
.checkbox
- = f.label :name do
- = f.check_box :create_chat_team, checked: true
+ = f.label :create_chat_team do
+ = f.check_box :create_chat_team, checked: @group.chat_team
Link the group to a new Mattermost team
.form-group
= f.label :chat_team, class: 'control-label' do
Chat Team name
.col-sm-10
- = f.text_field :chat_team, placeholder: @group.name, class: 'form-control mattermost-team-name'
- Leave blank to match your group name
-
+ = f.text_field :chat_team, placeholder: @group.chat_team, class: 'form-control mattermost-team-name'
+ %small
+ Leave blank to match your group name