diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-25 19:31:21 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-25 19:31:21 +0800 |
commit | efebdba21db9e11b876ecb54db48358e13b08ad3 (patch) | |
tree | 44c63974c56c24af642c5b6b358dbb137b307595 /app/views/projects/variables/_form.html.haml | |
parent | 9f6dc8b2b5fe3d4790d67f13660eb8bfabd4dbca (diff) | |
download | gitlab-ce-efebdba21db9e11b876ecb54db48358e13b08ad3.tar.gz |
Frontend implementation, tests, and changelog
Diffstat (limited to 'app/views/projects/variables/_form.html.haml')
-rw-r--r-- | app/views/projects/variables/_form.html.haml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/variables/_form.html.haml b/app/views/projects/variables/_form.html.haml index 1ae86d258af..809628bc491 100644 --- a/app/views/projects/variables/_form.html.haml +++ b/app/views/projects/variables/_form.html.haml @@ -7,4 +7,13 @@ .form-group = f.label :value, "Value", class: "label-light" = f.text_area :value, class: "form-control", placeholder: "PROJECT_VARIABLE" + .form-group + .checkbox + = f.label :protected do + = f.check_box :protected + %strong Protected + .help-block + This variable will be passed only to pipelines running on protected branches and tags + = link_to icon('question-circle'), help_page_path('ci/variables/README', anchor: 'protected-variables'), target: '_blank' + = f.submit btn_text, class: "btn btn-save" |