diff options
Diffstat (limited to 'app/views/mini_environments/new.html.erb')
-rw-r--r-- | app/views/mini_environments/new.html.erb | 71 |
1 files changed, 62 insertions, 9 deletions
diff --git a/app/views/mini_environments/new.html.erb b/app/views/mini_environments/new.html.erb index 7d3f2f2..33cb354 100644 --- a/app/views/mini_environments/new.html.erb +++ b/app/views/mini_environments/new.html.erb @@ -1,28 +1,81 @@ +<a href="<%= mini_environments_path %>" class="btn btn-lg btn-primary pull-right"> + Back to list +</a> + +<h1>Create a new mini environment</h1> + <div class="row"> <div class="col-md-8"> <%= form_with(model: @mini_environment, url: { action: "create" }, html: { class: 'form-horizontal' }) do |f| %> - <div class="form-group"> + <div class="form-group form-group-lg"> <%= f.label :name, class: 'col-sm-2 control-label' %> <div class="col-sm-10"> <%= f.text_field :name, class: 'form-control' %> + <span id="helpBlock" class="help-block"> + Choose a name for your mini environment. This will form + part of the URL used to access it. + </span> </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="form-group form-group-lg"> <div class="col-sm-offset-2 col-sm-10"> <%= f.submit "Create", class: 'btn btn-lg btn-success' %> </div> </div> + + <div class="panel panel-default"> + <div class="panel-heading"> + <h3 style="margin-top: 10px;">Advanced options</h3> + </div> + <div class="panel-body"> + <div class="form-group form-group-lg"> + <%= f.label :govuk_guix_revision_id, 'Revision', 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, + {}, + { + class: 'form-control' + }, + ) %> + <span id="helpBlock" class="help-block"> + By default the latest set of software is used. If you + want to use specific versions of services, select a + different revision here. + </span> + </div> + </div> + + <div class="form-group form-group-lg"> + <%= f.label :backend, class: 'col-sm-2 control-label' %> + <div class="col-sm-10"> + <%= f.grouped_collection_select( + :backend, + Backends.classes_with_backends, + :all, + :label, + :type_and_id, + :label, + {}, + { + class: 'form-control' + }, + ) %> + <span id="helpBlock" class="help-block"> + Choose the backend to use. This controls the resources + used to run the mini environment. + </span> + </div> + </div> + </div> + </div> <% end %> </div> </div> |