summaryrefslogtreecommitdiff
path: root/app/views/projects/pipeline_schedules/_variable_row.html.haml
blob: 85813b2ffd4c1960a7282f017e8b149992ea45a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- id = local_assigns.fetch(:id, nil)
- key = local_assigns.fetch(:key, "")
- value = local_assigns.fetch(:value, "")
%li.js-row.pipeline-variable-row{ data: { is_persisted: "#{!id.nil?}" } }
  %input{ type: "hidden", name: "schedule[variables_attributes][][id]", value: id }
  %input.js-destroy-input{ type: "hidden", name: "schedule[variables_attributes][][_destroy]" }
  %input.js-user-input.pipeline-variable-key-input.form-control{ type: "text",
    name: "schedule[variables_attributes][][key]",
    value: key,
    placeholder: _('Input variable key') }
  %textarea.js-user-input.pipeline-variable-value-input.form-control{ rows: 1,
    name: "schedule[variables_attributes][][value]",
    placeholder: _('Input variable value') }
    = value
  %button.js-row-remove-button.pipeline-variable-row-remove-button{ 'aria-label': _('Remove variable row') }
    %i.fa.fa-minus-circle{ 'aria-hidden': "true" }