BigW Consortium Gitlab

_form.html.haml 457 Bytes
Newer Older
Phil Hughes committed
1 2 3 4 5 6 7 8
= 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"
9
    = f.text_area :value, class: "form-control", placeholder: "PROJECT_VARIABLE"
Phil Hughes committed
10
  = f.submit btn_text, class: "btn btn-save"