1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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 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 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>
|