-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy path_settings_form.erb
More file actions
61 lines (53 loc) · 1.78 KB
/
Copy path_settings_form.erb
File metadata and controls
61 lines (53 loc) · 1.78 KB
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
<div class="setting-section">
<%= form_with scope: :stack, url: stack_path(stack), method: :patch do |f| %>
<div class="field-wrapper">
<%= f.label :environment %>
<%= f.text_field :environment, placeholder: 'production' %>
</div>
<div class="field-wrapper">
<span>Branch: <%= stack.branch %></span>
</div>
<% if stack.path.present? %>
<div class="field-wrapper">
<span>Path: <%= stack.path %></span>
</div>
<% end %>
<div class="field-wrapper">
<%= f.label :deploy_url, 'Deploy URL (Where is this stack deployed to?)' %>
<%= f.text_field :deploy_url, placeholder: 'https://' %>
</div>
<div class="field-wrapper">
<%= f.check_box :continuous_deployment %>
<%= f.label :continuous_deployment, 'Enable continuous deployment' %>
</div>
<div class="field-wrapper">
<%= f.check_box :merge_queue_enabled %>
<%= f.label :merge_queue_enabled, 'Enable merge queue' %>
</div>
<div class="field-wrapper">
<%= f.check_box :ignore_ci %>
<%= f.label :ignore_ci, "Don't require CI to deploy" %>
</div>
<%= f.submit class: "btn", value: "Save" %>
<% end %>
</div>
<div class="setting-section">
<h5>Lock deploys</h5>
<%= form_with scope: :stack, url: stack_path(@stack), method: :patch do |f| %>
<div class="field-wrapper">
<%= f.label :lock_reason, 'Reason for lock' %>
<%= f.text_area :lock_reason %>
</div>
<% if @stack.locked? %>
<%= f.submit class: "btn", value: "Update Reason" %>
<% else %>
<%= f.submit class: "btn", value: "Lock" %>
<% end %>
<% end %>
<% if @stack.locked? %>
<%= form_with scope: :stack, url: stack_path(@stack), method: :patch do |f| %>
<%= f.hidden_field :lock_reason, value: nil %>
<%= f.submit class: "btn btn--primary", value: "Unlock" %>
<%- end -%>
<% end %>
</div>