2017-06-19 11:59:10 -04:00
|
|
|
- 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?}" } }
|
2017-07-06 12:33:18 -04:00
|
|
|
.pipeline-variable-row-body
|
|
|
|
%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: s_('PipelineSchedules|Input variable key') }
|
|
|
|
%textarea.js-user-input.pipeline-variable-value-input.form-control{ rows: 1,
|
|
|
|
name: "schedule[variables_attributes][][value]",
|
|
|
|
placeholder: s_('PipelineSchedules|Input variable value') }
|
|
|
|
= value
|
2017-07-04 20:13:33 -04:00
|
|
|
%button.js-row-remove-button.pipeline-variable-row-remove-button{ 'aria-label': s_('PipelineSchedules|Remove variable row') }
|
2017-06-19 11:59:10 -04:00
|
|
|
%i.fa.fa-minus-circle{ 'aria-hidden': "true" }
|