diff options
Diffstat (limited to 'app/views/ci/variables/_form.html.haml')
-rw-r--r-- | app/views/ci/variables/_form.html.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/ci/variables/_form.html.haml b/app/views/ci/variables/_form.html.haml new file mode 100644 index 00000000000..eebd0955c80 --- /dev/null +++ b/app/views/ci/variables/_form.html.haml @@ -0,0 +1,19 @@ += form_for @variable, as: :variable, url: @variable.form_path do |f| + = form_errors(@variable) + + .form-group + = f.label :key, "Key", class: "label-light" + = f.text_field :key, class: "form-control", placeholder: @variable.placeholder, required: true + .form-group + = f.label :value, "Value", class: "label-light" + = f.text_area :value, class: "form-control", placeholder: @variable.placeholder + .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-secret-variables'), target: '_blank' + + = f.submit btn_text, class: "btn btn-save" |