Skip to content
Snippets Groups Projects
Commit 98deab38 authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Agregando textos por default para nuevas instalaciones

parent bc8a9371
No related branches found
No related tags found
No related merge requests found
...@@ -23,108 +23,109 @@ class tsaForm extends ConfigFormBase { ...@@ -23,108 +23,109 @@ class tsaForm extends ConfigFormBase {
// Default settings. // Default settings.
$config = $this->config('tsa.settings'); $config = $this->config('tsa.settings');
// API // API
$form['tsa_api'] = array( $form['tsa_api'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => $this->t('URL de API'), '#title' => $this->t('URLs de APIs'),
'#default_value' => $config->get('tsa_api'), '#description' => $this->t('Separados por coma'),
); '#default_value' => $config->get('tsa_api'),
);
$form['ext_rdt'] = array(
'#type' => 'textfield', $form['ext_rdt'] = array(
'#title' => $this->t('Extensión Recibo Temporario'), '#type' => 'textfield',
'#default_value' => $config->get('ext_rdt'), '#title' => $this->t('Extensión Recibo Temporario'),
); '#default_value' => ($config->get('ext_rdt')) ? $config->get('ext_rdt') : '.rd.temp'
);
$form['ext_rdd'] = array(
'#type' => 'textfield', $form['ext_rdd'] = array(
'#title' => $this->t('Extensión Recibo Definitivo'), '#type' => 'textfield',
'#default_value' => $config->get('ext_rdd'), '#title' => $this->t('Extensión Recibo Definitivo'),
); '#default_value' => ($config->get('ext_rdd')) ? $config->get('ext_rdd') : '.rd'
);
$form['mainBody'] = array(
'#type' => 'textarea', $form['mainBody'] = array(
'#title' => $this->t('Texto Principal'), '#type' => 'textarea',
'#default_value' => $config->get('mainBody'), '#title' => $this->t('Texto Principal'),
); '#default_value' => ($config->get('mainBody')) ? $config->get('mainBody') : 'El servicio de Sello de Tiempo de BFA permite demostrar digitalmente que el contenido de cualquier documento existió en un momento y que desde entonces, no ha cambiado.'
);
$form['tab01'] = array(
'#type' => 'textfield', $form['tab01'] = array(
'#title' => $this->t('Tab 1: Label'), '#type' => 'textfield',
'#default_value' => $config->get('tab01'), '#title' => $this->t('Tab 1: Label'),
); '#default_value' => ($config->get('tab01')) ? $config->get('tab01') : '1. Sellar'
);
$form['tab01Title'] = array(
'#type' => 'textfield', $form['tab01Title'] = array(
'#title' => $this->t('Tab 1: Título'), '#type' => 'textfield',
'#default_value' => $config->get('tab01Title'), '#title' => $this->t('Tab 1: Título'),
); '#default_value' => ($config->get('tab01Title')) ? $config->get('tab01Title') : 'Paso 1: Iniciar sellado'
);
$form['tab01Body'] = array(
'#type' => 'textarea', $form['tab01Body'] = array(
'#title' => $this->t('Tab 1: Texto'), '#type' => 'textarea',
'#default_value' => $config->get('tab01Body'), '#title' => $this->t('Tab 1: Texto'),
); '#default_value' => ($config->get('tab01Body')) ? $config->get('tab01Body') : 'Seleccioná un archivo para generar un Sello de Tiempo. El servicio generará un <i>hash</i> (un código criptográfico asociado a dicho documento) y lo enviará a la blockchain. A continuación, se descargará automáticamente un recibo digital <b>temporario</b> (.rd.temp) que luego podrás usar para obtener el recibo digital <b>definitivo</b> (.rd) en la pestaña <i>Obtener recibo</i>.<br>Importante: El documento seleccionado nunca se sube a la red, garantizando su privacidad.'
);
$form['tab02'] = array(
'#type' => 'textfield', $form['tab02'] = array(
'#title' => $this->t('Tab 2: Label'), '#type' => 'textfield',
'#default_value' => $config->get('tab02'), '#title' => $this->t('Tab 2: Label'),
); '#default_value' => ($config->get('tab02')) ? $config->get('tab02') : '2. Obtener recibo'
);
$form['tab02Title'] = array(
'#type' => 'textfield', $form['tab02Title'] = array(
'#title' => $this->t('Tab 2: Título'), '#type' => 'textfield',
'#default_value' => $config->get('tab02Title'), '#title' => $this->t('Tab 2: Título'),
); '#default_value' => ($config->get('tab02Title')) ? $config->get('tab02Title') : 'Paso 2: Obtener recibo digital definitivo'
);
$form['tab02Body'] = array(
'#type' => 'textarea', $form['tab02Body'] = array(
'#title' => $this->t('Tab 2: Texto'), '#type' => 'textarea',
'#default_value' => $config->get('tab02Body'), '#title' => $this->t('Tab 2: Texto'),
); '#default_value' => ($config->get('tab02Body')) ? $config->get('tab02Body') : 'Para obtener el recibo definitivo (.rd) de un Sello de Tiempo se debe tener el documento original y el recibo digital temporario (.rd.temp). Al seleccionar ambos archivos, el recibo se descargará automáticamente y podrás visualizar en este sitio el día y la hora en que el hash del documento original fue sellado en la Blockchain Federal Argentina.'
);
$form['tab02Box01'] = array(
'#type' => 'textfield', $form['tab02Box01'] = array(
'#title' => $this->t('Tab 2: Subtítulo Drop 1'), '#type' => 'textfield',
'#default_value' => $config->get('tab02Box01'), '#title' => $this->t('Tab 2: Subtítulo Drop 1'),
); '#default_value' => ($config->get('tab02Box01')) ? $config->get('tab02Box01') : 'Seleccioná el archivo original'
);
$form['tab02Box02'] = array(
'#type' => 'textfield', $form['tab02Box02'] = array(
'#title' => $this->t('Tab 2: Subtítulo Drop 2'), '#type' => 'textfield',
'#default_value' => $config->get('tab02Box02'), '#title' => $this->t('Tab 2: Subtítulo Drop 2'),
); '#default_value' => ($config->get('tab02Box02')) ? $config->get('tab02Box02') : 'Seleccioná el recibo digital temporario'
);
$form['tab03'] = array(
'#type' => 'textfield', $form['tab03'] = array(
'#title' => $this->t('Tab 3: Label'), '#type' => 'textfield',
'#default_value' => $config->get('tab03'), '#title' => $this->t('Tab 3: Label'),
); '#default_value' => ($config->get('tab03')) ? $config->get('tab03') : 'Verificar'
);
$form['tab03Title'] = array(
'#type' => 'textfield', $form['tab03Title'] = array(
'#title' => $this->t('Tab 3: Título'), '#type' => 'textfield',
'#default_value' => $config->get('tab03Title'), '#title' => $this->t('Tab 3: Título'),
); '#default_value' => ($config->get('tab03Title')) ? $config->get('tab03Title') : 'Verificar un sello de tiempo'
);
$form['tab03Body'] = array(
'#type' => 'textarea', $form['tab03Body'] = array(
'#title' => $this->t('Tab 3: Texto'), '#type' => 'textarea',
'#default_value' => $config->get('tab03Body'), '#title' => $this->t('Tab 3: Texto'),
); '#default_value' => ($config->get('tab03Body')) ? $config->get('tab03Body') : 'Para verificar un Sello de Tiempo se debe tener el documento original y el recibo digital definitivo (.rd). Podrá verificar el día y la hora en que el hash del documento original fue sellado en la Blockchain Federal Argentina.'
);
$form['tab03Box01'] = array(
'#type' => 'textfield', $form['tab03Box01'] = array(
'#title' => $this->t('Tab 3: Subtítulo Drop 1'), '#type' => 'textfield',
'#default_value' => $config->get('tab03Box01'), '#title' => $this->t('Tab 3: Subtítulo Drop 1'),
); '#default_value' => ($config->get('tab03Box01')) ? $config->get('tab03Box01') : 'Seleccioná el archivo original'
);
$form['tab03Box02'] = array(
'#type' => 'textfield', $form['tab03Box02'] = array(
'#title' => $this->t('Tab 3: Subtítulo Drop 2'), '#type' => 'textfield',
'#default_value' => $config->get('tab03Box02'), '#title' => $this->t('Tab 3: Subtítulo Drop 2'),
); '#default_value' => ($config->get('tab03Box02')) ? $config->get('tab03Box02') : 'Seleccioná el recibo digital definitivo'
);
return $form; return $form;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment