Commit e5538295 authored by Amy Qualls's avatar Amy Qualls Committed by Natalia Tepluhina

Update shared template UI: style, phrasing

parent aff7a452
...@@ -6,17 +6,18 @@ ...@@ -6,17 +6,18 @@
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
= _('Set instance-wide template repository') = _('Select a shared template repository for all projects on this instance.')
.settings-content .settings-content
= form_for @application_setting, url: templates_admin_application_settings_path, html: { class: 'fieldset-form' } do |f| = form_for @application_setting, url: templates_admin_application_settings_path, html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting) = form_errors(@application_setting)
%fieldset %fieldset
.form-group .form-group
= f.label :file_template_project_id, class: 'label-light' do = f.label :file_template_project_id, class: 'label-bold' do
.form-text.text-muted .form-text
Select a = _('Select a template repository')
= link_to 'template repository', help_page_path("user/admin_area/settings/instance_template_repository")
= project_select_tag('application_setting[file_template_project_id]', class: 'project-item-select hidden-filter-value', toggle_class: 'js-project-search js-project-filter js-filter-submit', dropdown_class: 'dropdown-menu-selectable dropdown-menu-project js-filter-submit', = project_select_tag('application_setting[file_template_project_id]', class: 'project-item-select hidden-filter-value', toggle_class: 'js-project-search js-project-filter js-filter-submit', dropdown_class: 'dropdown-menu-selectable dropdown-menu-project js-filter-submit',
placeholder: _('Search projects'), idAttribute: 'id', data: { order_by: 'last_activity_at', idattribute: 'id', all_projects: 'true', simple_filter: true, allow_clear: true }, value: @application_setting.file_template_project_id) placeholder: _('Search projects'), idAttribute: 'id', data: { order_by: 'last_activity_at', idattribute: 'id', all_projects: 'true', simple_filter: true, allow_clear: true }, value: @application_setting.file_template_project_id)
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('user/admin_area/settings/instance_template_repository') }
= s_('TemplateRepository|Select a repository to make its templates available to all projects. %{link_start}What should the repository contain?%{link_end} ').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
= f.submit 'Save changes', class: "gl-button btn btn-confirm" = f.submit 'Save changes', class: "gl-button btn btn-confirm"
...@@ -29319,6 +29319,9 @@ msgstr "" ...@@ -29319,6 +29319,9 @@ msgstr ""
msgid "Select a repository" msgid "Select a repository"
msgstr "" msgstr ""
msgid "Select a shared template repository for all projects on this instance."
msgstr ""
msgid "Select a template repository" msgid "Select a template repository"
msgstr "" msgstr ""
...@@ -29709,9 +29712,6 @@ msgstr "" ...@@ -29709,9 +29712,6 @@ msgstr ""
msgid "Set due date" msgid "Set due date"
msgstr "" msgstr ""
msgid "Set instance-wide template repository"
msgstr ""
msgid "Set iteration" msgid "Set iteration"
msgstr "" msgstr ""
...@@ -31954,6 +31954,9 @@ msgstr "" ...@@ -31954,6 +31954,9 @@ msgstr ""
msgid "Template to append to all Service Desk issues" msgid "Template to append to all Service Desk issues"
msgstr "" msgstr ""
msgid "TemplateRepository|Select a repository to make its templates available to all projects. %{link_start}What should the repository contain?%{link_end} "
msgstr ""
msgid "Templates" msgid "Templates"
msgstr "" msgstr ""
......
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