aboutsummaryrefslogtreecommitdiff
path: root/app/views/mini_environments/new.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/mini_environments/new.html.erb')
-rw-r--r--app/views/mini_environments/new.html.erb13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/views/mini_environments/new.html.erb b/app/views/mini_environments/new.html.erb
index 84d2316..7d3f2f2 100644
--- a/app/views/mini_environments/new.html.erb
+++ b/app/views/mini_environments/new.html.erb
@@ -1,8 +1,8 @@
<div class="row">
<div class="col-md-8">
- <%= form_for @mini_environment,
- url: { action: "create" },
- html: { class: 'form-horizontal' } do |f| %>
+ <%= form_with(model: @mini_environment,
+ url: { action: "create" },
+ html: { class: 'form-horizontal' }) do |f| %>
<div class="form-group">
<%= f.label :name, class: 'col-sm-2 control-label' %>
@@ -10,6 +10,13 @@
<%= f.text_field :name, class: 'form-control' %>
</div>
</div>
+
+ <div class="form-group">
+ <%= f.label :govuk_guix_revision_id, class: 'col-sm-2 control-label' %>
+ <div class="col-sm-10">
+ <%= f.collection_select :govuk_guix_revision_id, GovukGuix::Revision.all, :commit_hash, :commit_hash %>
+ </div>
+ </div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">