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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/settings/_general.html.haml')
-rw-r--r--app/views/projects/settings/_general.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/settings/_general.html.haml b/app/views/projects/settings/_general.html.haml
index b185f45d129..0f4d5869cea 100644
--- a/app/views/projects/settings/_general.html.haml
+++ b/app/views/projects/settings/_general.html.haml
@@ -1,3 +1,4 @@
+- hidden_topics_field_id = 'project_topic_list_field'
= form_for [@project], html: { multipart: true, class: "edit-project js-general-settings-form" }, authenticity_token: true do |f|
%input{ name: 'update_section', type: 'hidden', value: 'js-general-settings' }
@@ -15,9 +16,9 @@
.row
.form-group.col-md-9
- = f.label :topics, _('Topics (optional)'), class: 'label-bold'
- = f.text_field :topics, value: @project.topic_list.join(', '), maxlength: 2000, class: "form-control gl-form-input"
- %p.form-text.text-muted= _('Separate topics with commas.')
+ = f.label :topics, _('Topics'), class: 'label-bold'
+ .js-topics-selector{ data: { hidden_input_id: hidden_topics_field_id } }
+ = f.hidden_field :topics, value: @project.topic_list.join(', '), id: hidden_topics_field_id
.row
.form-group.col-md-9