2019-07-25 18:51:32 +00:00
|
|
|
-# Formulario para "alojar" en un zip
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col
|
|
|
|
= deploy.hidden_field :id
|
|
|
|
= deploy.hidden_field :type
|
|
|
|
%h3
|
|
|
|
-#
|
|
|
|
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,
|
|
|
|
{ checked: deploy.object.persisted? },
|
|
|
|
'0', '1'
|
|
|
|
= deploy.label :_destroy, t('.title')
|
|
|
|
-# 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/
|