BigW Consortium Gitlab

_form.html.haml 820 Bytes
Newer Older
Shinya Maeda committed
1
= form_for @variable, as: :variable, url: @variable.form_path do |f|
Phil Hughes committed
2 3 4 5
  = form_errors(@variable)

  .form-group
    = f.label :key, "Key", class: "label-light"
Shinya Maeda committed
6
    = f.text_field :key, class: "form-control", placeholder: @variable.placeholder, required: true
Phil Hughes committed
7 8
  .form-group
    = f.label :value, "Value", class: "label-light"
Shinya Maeda committed
9
    = f.text_area :value, class: "form-control", placeholder: @variable.placeholder
10 11 12 13 14 15 16
  .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
17
        = link_to icon('question-circle'), help_page_path('ci/variables/README', anchor: 'protected-secret-variables'), target: '_blank'
18

Phil Hughes committed
19
  = f.submit btn_text, class: "btn btn-save"