debian-mirror-gitlab/app/views/projects/settings/_general.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
2.1 KiB
Text
Raw Normal View History

2021-12-11 22:18:48 +05:30
- hidden_topics_field_id = 'project_topic_list_field'
2021-04-17 20:07:23 +05:30
= form_for [@project], html: { multipart: true, class: "edit-project js-general-settings-form" }, authenticity_token: true do |f|
2019-07-31 22:56:46 +05:30
%input{ name: 'update_section', type: 'hidden', value: 'js-general-settings' }
%fieldset
.row
.form-group.col-md-5
= f.label :name, class: 'label-bold', for: 'project_name_edit' do
= _('Project name')
2021-04-17 20:07:23 +05:30
= f.text_field :name, class: 'form-control gl-form-input', id: "project_name_edit", data: { qa_selector: 'project_name_field' }
2019-07-31 22:56:46 +05:30
.form-group.col-md-7
= f.label :id, class: 'label-bold' do
= _('Project ID')
2021-03-11 19:13:27 +05:30
= f.text_field :id, class: 'form-control gl-form-input w-auto', readonly: true
2019-07-31 22:56:46 +05:30
.row
.form-group.col-md-9
2021-12-11 22:18:48 +05:30
= 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
2019-07-31 22:56:46 +05:30
.row
.form-group.col-md-9
= f.label :description, _('Project description (optional)'), class: 'label-bold'
2022-05-07 20:08:51 +05:30
= f.text_area :description, class: 'form-control gl-form-input', rows: 3
2019-07-31 22:56:46 +05:30
.row= render_if_exists 'projects/classification_policy_settings', f: f
2022-04-04 11:22:00 +05:30
= render 'shared/repository_size_limit_setting_registration_features_cta', form: f
2019-09-04 21:01:54 +05:30
= render_if_exists 'shared/repository_size_limit_setting', form: f, type: :project
2019-07-31 22:56:46 +05:30
2020-10-24 23:57:45 +05:30
.form-group.gl-mt-3.gl-mb-3
2021-03-11 19:13:27 +05:30
.avatar-container.rect-avatar.s90
2019-07-31 22:56:46 +05:30
= project_icon(@project, alt: _('Project avatar'), class: 'avatar project-avatar s90')
= f.label :avatar, _('Project avatar'), class: 'label-bold d-block'
= render 'shared/choose_avatar_button', f: f
- if @project.avatar?
%hr
2022-04-04 11:22:00 +05:30
= link_to _('Remove avatar'), project_avatar_path(@project), aria: { label: _('Remove avatar') }, data: { confirm: _('Avatar will be removed. Are you sure?'), 'confirm-btn-variant': 'danger' }, method: :delete, class: 'gl-button btn btn-danger-secondary'
2019-07-31 22:56:46 +05:30
2021-04-29 21:17:54 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm gl-mt-6", data: { qa_selector: 'save_naming_topics_avatar_button' }