summaryrefslogtreecommitdiff
path: root/app/views/projects/environments/new.html.haml
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-11 00:15:53 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-11 00:15:53 +0200
commit4f00b93ddd07d8a31a04b37dbe150340e84ccfd8 (patch)
treed54658fa105b1bfa311016b28cfb7591689eacba /app/views/projects/environments/new.html.haml
parent907c0e6796b69f9577c147dd489cf55748c749ac (diff)
downloadgitlab-ce-4f00b93ddd07d8a31a04b37dbe150340e84ccfd8.tar.gz
Add deployment views
Diffstat (limited to 'app/views/projects/environments/new.html.haml')
-rw-r--r--app/views/projects/environments/new.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/projects/environments/new.html.haml b/app/views/projects/environments/new.html.haml
new file mode 100644
index 00000000000..5e8bc596f1e
--- /dev/null
+++ b/app/views/projects/environments/new.html.haml
@@ -0,0 +1,15 @@
+- page_title "New Environment"
+
+%h3.page-title
+ New Environment
+%hr
+
+= form_for @environment, url: namespace_project_environments_path(@project.namespace, @project), html: { id: "new-environment-form", class: "form-horizontal js-new-environment-form js-requires-input" } do |f|
+ = form_errors(@environment)
+ .form-group
+ = f.label :ref, 'Name', class: 'control-label'
+ .col-sm-10
+ = f.text_field :name, required: true, tabindex: 2, class: 'form-control'
+ .form-actions
+ = f.submit 'Create', class: 'btn btn-create', tabindex: 3
+ = link_to 'Cancel', namespace_project_environments_path(@project.namespace, @project), class: 'btn btn-cancel'