gitlab-org--gitlab-foss/app/views/projects/variables/_form.html.haml

11 lines
473 B
Text
Raw Normal View History

2016-04-27 04:01:43 -04:00
= form_for [@project.namespace.becomes(Namespace), @project, @variable] do |f|
= form_errors(@variable)
.form-group
= f.label :key, "Key", class: "label-light"
= f.text_field :key, class: "form-control", placeholder: "PROJECT_VARIABLE", required: true
.form-group
= f.label :value, "Value", class: "label-light"
= f.text_area :value, class: "form-control", placeholder: "PROJECT_VARIABLE", required: true
= f.submit btn_text, class: "btn btn-save"