diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 12:07:06 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 12:07:06 +0200 |
commit | 00526440092bb82beb86b87376dd1ea6178bf05f (patch) | |
tree | 1b82343b9ca6d3f8cdad184fab98953b8006d1dd /app/views/projects/environments/_form.html.haml | |
parent | 2541e50d7ce64bb402d06dc9d75567b78282c7b7 (diff) | |
download | gitlab-ce-00526440092bb82beb86b87376dd1ea6178bf05f.tar.gz |
Improve forms and specs
Diffstat (limited to 'app/views/projects/environments/_form.html.haml')
-rw-r--r-- | app/views/projects/environments/_form.html.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/environments/_form.html.haml b/app/views/projects/environments/_form.html.haml new file mode 100644 index 00000000000..c07f4bd510c --- /dev/null +++ b/app/views/projects/environments/_form.html.haml @@ -0,0 +1,7 @@ += form_for @environment, url: namespace_project_environments_path(@project.namespace, @project), html: { class: 'col-lg-9' } do |f| + = form_errors(@environment) + .form-group + = f.label :name, 'Name', class: 'label-light' + = f.text_field :name, required: true, class: 'form-control' + = f.submit 'Create environment', class: 'btn btn-create' + = link_to 'Cancel', namespace_project_environments_path(@project.namespace, @project), class: 'btn btn-cancel' |