<%# GOV.UK Mini Environment Admin Copyright © 2018 Christopher Baines This file is part of the GOV.UK Mini Environment Admin. The GOV.UK Mini Environment Admin is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The GOV.UK Mini Environment Admin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with the GOV.UK Mini Environment Admin. If not, see . %>

Create a new mini environment

Step 2 of 3
Choose name
Select services
Launch
<%= form_with(method: 'put', url: { action: "services" }, html: { class: 'form-horizontal' }) do |f| %>

A default set of services have been selected. Review the list below if you'd like to change the available services.

Note that services can be dependant on other services, so only select the services you want, and all other necessary services will be automatically added.

<%= f.submit "Next: Review and launch", class: 'btn btn-lg btn-success' %>

Data for the services

If you want to use the applications with data, select a data snapshot below.

  • <%= f.label :data_snapshot, class: 'col-sm-2 control-label' %>
    <%= f.collection_select( :data_snapshot, @mini_environment.backend.available_data_snapshots, :id, :description, { include_blank: 'No data snapshot' }, { class: 'form-control', }, ) %> Select the data snapshot you wish to use. If you don't wish to populate the mini environment with data, select 'No data snapshot'.

Services

<% ( @mini_environment.govuk_guix_revision.available_services || [] ).each do |group| %>

<%= group["name"] %>

<%= group["description"] %>

<% group["services"].each do |service| %> <% default = MiniEnvironmentsController::DEFAULT_SERVICES.include? service["name"] %> <% package = service["package"] %> <% end %>
Select? Service Package
-selected" <%= 'data-default' if default %> <%= 'checked' if default %>> <%= service["name"] %>
<%= service["description"] %>
-revision" class="form-control" placeholder="<%= package["version"] %>" value="<%= package["version"] %>"> "> [homepage]
<% end %>
<%= f.submit "Next: Review and launch", class: 'btn btn-lg btn-success' %>
<% end %>