Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
12424d0f
Commit
12424d0f
authored
Apr 08, 2022
by
PaytonBurdette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate snowplow checkbox
Migrate the checkbox to use gitlab-ui styling. Changelog: changed
parent
2dae593a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
app/views/admin/application_settings/_snowplow.html.haml
app/views/admin/application_settings/_snowplow.html.haml
+2
-4
No files found.
app/views/admin/application_settings/_snowplow.html.haml
View file @
12424d0f
...
...
@@ -9,14 +9,12 @@
-
link_start
=
'<a href="%{url}">'
.
html_safe
%
{
url:
help_page_path
(
'development/snowplow/index'
)
}
=
html_escape
(
_
(
'Configure %{link} to track events. %{link_start}Learn more.%{link_end}'
))
%
{
link:
link_to
(
'Snowplow'
,
'https://snowplowanalytics.com/'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
).
html_safe
,
link_start:
link_start
,
link_end:
'</a>'
.
html_safe
}
.settings-content
=
form_for
@application_setting
,
url:
general_admin_application_settings_path
(
anchor:
'js-snowplow-settings'
),
html:
{
class:
'fieldset-form'
,
id:
'snowplow-settings'
}
do
|
f
|
=
gitlab_ui_
form_for
@application_setting
,
url:
general_admin_application_settings_path
(
anchor:
'js-snowplow-settings'
),
html:
{
class:
'fieldset-form'
,
id:
'snowplow-settings'
}
do
|
f
|
=
form_errors
(
@application_setting
)
if
expanded
%fieldset
.form-group
.form-check
=
f
.
check_box
:snowplow_enabled
,
class:
'form-check-input'
,
data:
{
qa_selector:
'snowplow_enabled_checkbox'
}
=
f
.
label
:snowplow_enabled
,
_
(
'Enable Snowplow tracking'
),
class:
'form-check-label'
=
f
.
gitlab_ui_checkbox_component
:snowplow_enabled
,
_
(
'Enable Snowplow tracking'
),
checkbox_options:
{
data:
{
qa_selector:
'snowplow_enabled_checkbox'
}
}
.form-group
=
f
.
label
:snowplow_collector_hostname
,
_
(
'Collector hostname'
),
class:
'label-light'
=
f
.
text_field
:snowplow_collector_hostname
,
class:
'form-control gl-form-input'
,
placeholder:
'snowplow.example.com'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment