5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 21:26:21 +00:00
panel/app/views/deploys/_deploy_www.haml

21 lines
636 B
Text
Raw Normal View History

2019-10-01 19:41:33 +00:00
-# Formulario para alojar una copia a www
.row
.col
= deploy.hidden_field :id
= deploy.hidden_field :type
2020-07-18 19:26:54 +00:00
.custom-control.custom-switch
2019-10-01 19:41:33 +00:00
-#
El checkbox invierte la lógica de destrucción porque queremos
crear el deploy si está activado y destruirlo si está
desactivado.
= deploy.check_box :_destroy,
2020-07-18 19:26:54 +00:00
{ checked: deploy.object.persisted?, class: 'custom-control-input' },
2019-10-01 19:41:33 +00:00
'0', '1'
2020-07-18 19:26:54 +00:00
= deploy.label :_destroy, class: 'custom-control-label' do
%h3= t('.title')
2019-10-01 19:41:33 +00:00
= sanitize_markdown t('.help', fqdn: deploy.object.fqdn),
tags: %w[p strong em a]
2020-06-25 18:17:28 +00:00
%hr/