2019-07-25 18:51:32 +00:00
|
|
|
-# Formulario para "alojar" en un zip
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col
|
|
|
|
= deploy.hidden_field :id
|
|
|
|
= deploy.hidden_field :type
|
2020-07-18 19:26:54 +00:00
|
|
|
|
|
|
|
.custom-control.custom-switch
|
2019-07-25 18:51:32 +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-07-25 18:51:32 +00:00
|
|
|
'0', '1'
|
2020-07-18 19:26:54 +00:00
|
|
|
= deploy.label :_destroy, class: 'custom-control-label' do
|
|
|
|
%h3= t('.title')
|
2019-07-25 18:51:32 +00:00
|
|
|
-# TODO: secar la generación de URLs
|
|
|
|
- name = site.name || t('.ejemplo')
|
|
|
|
= sanitize_markdown t('.help',
|
2019-09-24 22:50:20 +00:00
|
|
|
fqdn: deploy.object.site.hostname,
|
2019-07-25 18:51:32 +00:00
|
|
|
file: deploy.object.file || "#{name}.zip"),
|
|
|
|
tags: %w[p strong em a]
|
2020-06-25 18:17:28 +00:00
|
|
|
%hr/
|