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:
authorLukas Eipert <leipert@gitlab.com>2018-08-03 18:36:53 +0300
committerLukas Eipert <leipert@gitlab.com>2018-08-03 20:27:07 +0300
commit273515b8a15cc9f920d6bf868f6a546ad832214e (patch)
treed4584191d3700744bfe2df2593ce9ee477582cd4 /app/views/projects/project_templates
parent8a9421429d15a805ef07b8200bcba551fe7314ff (diff)
backport changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6740
Diffstat (limited to 'app/views/projects/project_templates')
-rw-r--r--app/views/projects/project_templates/_built_in_templates.html.haml17
-rw-r--r--app/views/projects/project_templates/_project_fields_form.html.haml12
2 files changed, 29 insertions, 0 deletions
diff --git a/app/views/projects/project_templates/_built_in_templates.html.haml b/app/views/projects/project_templates/_built_in_templates.html.haml
new file mode 100644
index 00000000000..e7636099be6
--- /dev/null
+++ b/app/views/projects/project_templates/_built_in_templates.html.haml
@@ -0,0 +1,17 @@
+- Gitlab::ProjectTemplate.all.each do |template|
+ .template-option.d-flex.align-items-center
+ .logo.append-right-10
+ = custom_icon(template.logo, size: 40)
+ .description
+ %strong
+ = template.title
+ %br
+ .text-muted
+ = template.description
+ .controls.d-flex.align-items-center
+ %label.btn.btn-success.template-button.choose-template.append-right-10.append-bottom-0{ for: template.name }
+ %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name }
+ %span
+ = _("Use template")
+ %a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank' }
+ = _("Preview")
diff --git a/app/views/projects/project_templates/_project_fields_form.html.haml b/app/views/projects/project_templates/_project_fields_form.html.haml
new file mode 100644
index 00000000000..c96010550d8
--- /dev/null
+++ b/app/views/projects/project_templates/_project_fields_form.html.haml
@@ -0,0 +1,12 @@
+.row
+ .form-group.col-sm-12
+ %label.label-bold
+ = _('Template')
+ .input-group.template-input-group
+ .input-group-prepend
+ .input-group-text
+ .selected-icon.append-right-10
+ .selected-template
+ .input-group-append
+ %button.btn.btn-default.change-template{ type: "button" }
+ = _('Change template')