Commit 598f6b93 authored by peterhegman's avatar peterhegman

Make organization field `readonly` for GitLab employees

The organization field will be prepopulated with `GitLab` and readonly
for users with a `@gitlab.com` email
parent e6996251
......@@ -101,7 +101,10 @@
- else
= f.text_field :location, label: s_('Profiles|Location'), class: 'input-lg', placeholder: s_("Profiles|City, country")
= f.text_field :job_title, class: 'input-md'
= f.text_field :organization, label: s_('Profiles|Organization'), class: 'input-md', help: s_("Profiles|Who you represent or work for")
- if Feature.enabled?(:gitlab_employee_badge) && @user.gitlab_employee?
= f.text_field :organization, readonly: true, value: 'GitLab', label: s_('Profiles|Organization'), class: 'input-md', help: s_("Profiles|Who you represent or work for")
- else
= f.text_field :organization, label: s_('Profiles|Organization'), class: 'input-md', help: s_("Profiles|Who you represent or work for")
= f.text_area :bio, label: s_('Profiles|Bio'), rows: 4, maxlength: 250, help: s_("Profiles|Tell us about yourself in fewer than 250 characters")
%hr
%h5= s_("Private profile")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment