aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-01-27 23:23:05 +0000
committerChristopher Baines <mail@cbaines.net>2018-03-29 07:28:05 +0100
commiteb3177b0d8de10f316ac595dff3b8165cf828796 (patch)
tree501b338a14a3cedc71c9a33a17d5810848374572 /app/views
downloadgovuk-mini-environment-admin-eb3177b0d8de10f316ac595dff3b8165cf828796.tar
govuk-mini-environment-admin-eb3177b0d8de10f316ac595dff3b8165cf828796.tar.gz
Initial commit
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.erb8
-rw-r--r--app/views/mini_environments/index.html.erb8
-rw-r--r--app/views/mini_environments/new.html.erb5
-rw-r--r--app/views/mini_environments/show.html.erb6
4 files changed, 27 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
new file mode 100644
index 0000000..5b90ace
--- /dev/null
+++ b/app/views/layouts/application.html.erb
@@ -0,0 +1,8 @@
+<% content_for :head do %>
+ <%= stylesheet_link_tag "application", :media => "all" %>
+ <%= javascript_include_tag "application" %>
+ <%= csrf_meta_tag %>
+ <%= yield :extra_headers %>
+<% end %>
+
+<%= render template: 'layouts/govuk_admin_template' %>
diff --git a/app/views/mini_environments/index.html.erb b/app/views/mini_environments/index.html.erb
new file mode 100644
index 0000000..11d5a79
--- /dev/null
+++ b/app/views/mini_environments/index.html.erb
@@ -0,0 +1,8 @@
+
+<a href="<%= new_mini_environment_path %>">Create new mini environment</a>
+
+<% MiniEnvironment.all.each do |mini_environment| %>
+ <a href="<%= mini_environment_path mini_environment %>">
+ <h2><%= mini_environment.name %></h2>
+ </a>
+<% end %>
diff --git a/app/views/mini_environments/new.html.erb b/app/views/mini_environments/new.html.erb
new file mode 100644
index 0000000..4a4712e
--- /dev/null
+++ b/app/views/mini_environments/new.html.erb
@@ -0,0 +1,5 @@
+
+<%= form_for @mini_environment, url: {action: "create"} do |f| %>
+ <%= f.text_field :name %>
+ <%= f.submit "Create" %>
+<% end %>
diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb
new file mode 100644
index 0000000..2d8988c
--- /dev/null
+++ b/app/views/mini_environments/show.html.erb
@@ -0,0 +1,6 @@
+<h1>Name: <%= @mini_environment.name %></h1>
+
+<% @mini_environment.finished_terraform_jobs.each do |job| %>
+ <%= job.job_class %>
+ <%= job.created_at %>
+<% end %>