-
Notifications
You must be signed in to change notification settings - Fork 434
/
index.html.haml
70 lines (66 loc) · 2.92 KB
/
index.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
:ruby
@pagetitle = 'Configuration'
.card.mb-3
= render partial: 'tabs'
.card-body
%h3 Configure your Open Build Service instance
= form_for(@configuration, url: { action: :update }) do |f|
.h5.mt-4 Frontpage Greeting
%p Change the text that is displayed as greeting on the frontpage.
.mb-3
= f.label(:title) do
Title
%abbr.text-danger{ title: 'required' } *
= f.text_field :title, required: true, autofocus: true, class: 'form-control'
.mb-3
= f.label(:description) do
Description
%abbr.text-danger{ title: 'required' } *
~ f.text_area :description, rows: 7, required: true, class: 'form-control'
.mb-3
= f.label(:logo) do
Logo
%small.form-text The image displayed on the left side of the top navigation bar.
~ f.file_field :logo, class: 'form-control'
.mb-3
= f.label(:tos_url) do
Terms Of Service URL
~ f.text_field :tos_url, class: 'form-control', type: :url
.mb-3
= f.label(:code_of_conduct) do
Code of Conduct
%small.form-text Leave this field blank to prevent from showing the "Code of Conduct" link at the footer of the page.
~ f.text_area :code_of_conduct, rows: 7, class: 'form-control'
.h5.mt-4 Contact Information
%p
Allows you to provide a link to a contact form, ticketing system or an email (prefixed with mailto:)
that will allow users to contact you about creating Projects and creating Staging Manager Groups.
.mb-3
.row.g-3.align-items-center
.col
= f.label :contact_name, 'Contact Name'
~ f.text_field :contact_name, class: 'form-control'
.col
= f.label :contact_name, 'Contact URL'
~ f.text_field :contact_url, class: 'form-control'
.h5.mt-4 Base Configuration
%p
%i.fas.fa-exclamation-triangle.text-warning
Backend restart is needed after a change here.
.mb-3
= f.label(:name) do
Name
%abbr.text-danger{ title: 'required' } *
%small.form-text The instance name which gets generated into each package. Short string only, no white spaces recommended.
= f.text_field :name, required: true, class: 'form-control'
.mb-3
= f.label(:unlisted_projects_filter_description) do
Unlisted projects filter description
%small.form-text The description that will appear in projects list for explaining the exclusion filter.
= f.text_field :unlisted_projects_filter_description, class: 'form-control'
.mb-3
= f.label(:unlisted_projects_filter) do
Unlisted projects filter
%small.form-text The exclusion filter itself. It is a Regular Expression (eg: ^home:.*).
= f.text_field :unlisted_projects_filter, class: 'form-control'
= f.submit 'Update', class: 'btn btn-primary'