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

Multiples archivos

parent 9a5e899f
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,8 @@ lb10: 'Nombre del archivo: '
lb11: 'Hash del archivo: '
lb12: 'Sellar'
lb13: 'Verificar'
lb14: 'Seleccionar otro archivo'
\ No newline at end of file
lb14: ' Agregar archivos'
lb15: ' Copiar'
lb16: 'Enlace de verificación'
lb17: 'Remover archivo'
lb18: 'Seleccionar otros archivos'
\ No newline at end of file
......@@ -55,4 +55,16 @@ tsa2.settings:
label: 'Label 13 TSA2 app'
lb14:
type: string
label: 'Label 14 TSA2 app'
\ No newline at end of file
label: 'Label 14 TSA2 app'
lb15:
type: string
label: 'Label 15 TSA2 app'
lb16:
type: string
label: 'Label 16 TSA2 app'
lb17:
type: string
label: 'Label 17 TSA2 app'
lb18:
type: string
label: 'Label 18 TSA2 app'
\ No newline at end of file
......@@ -11,6 +11,21 @@
/* transition: 0.3s; */
position: relative;
}
.tsa2 .dropArea ul>li{
border-bottom: 1px solid #ccc;;
list-style: none;
padding: 10px 0;
position: relative;
}
.tsa2 .dropArea ul>li .remover{
position: absolute;
top: 10px;
right: 0;
}
.tsa2 .dropArea ul>li:last-child{
/* border-bottom: none; */
}
.tsa2 .btn-primary:active, .tsa2 .btn-primary:active:hover, .tsa2 .btn-primary:focus, .tsa2 .btn-primary:hover {
background-color: #fff;
color: #0094d4;
......@@ -37,7 +52,9 @@
.tsa2 .dropArea p {
margin-bottom: 5px;
}
.tsa2 .dropArea ul>li p{
margin-right: 40px;
}
.tsa2 .dropArea:hover {
border-style: solid;
background: rgba(0, 148, 212, 0.05);
......@@ -81,6 +98,7 @@
border-radius: 5px;
}
@keyframes pulse {
0% {
opacity: 1.0;
......@@ -107,10 +125,14 @@
display: none !important;
}
.tsa2 .btn-lg {
.tsa2 .btn-cta {
min-width: 150px;
margin: 0 5px;
margin-top: 20px;
margin-top: 10px;
}
.tsa2 .cta{
margin-top: 30px;
}
.tsa2 .alert {
margin-top: 15px;
......@@ -128,6 +150,11 @@
}
.tsa2 .alert-success .copiar {
margin-top: 10px;
}
.tsa2 .center-v {
position: relative;
top: 50%;
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -36,6 +36,10 @@ class tsa2Controller extends ControllerBase {
$lb12 = $config->get('lb12');
$lb13 = $config->get('lb13');
$lb14 = $config->get('lb14');
$lb15 = $config->get('lb15');
$lb16 = $config->get('lb16');
$lb17 = $config->get('lb17');
$lb18 = $config->get('lb18');
$element['#tsa2_api'] = Html::escape($tsa2_api);
$element['#lb00'] = Html::escape($lb00);
$element['#lb01'] = Html::escape($lb01);
......@@ -52,6 +56,10 @@ class tsa2Controller extends ControllerBase {
$element['#lb12'] = Html::escape($lb12);
$element['#lb13'] = Html::escape($lb13);
$element['#lb14'] = Html::escape($lb14);
$element['#lb15'] = Html::escape($lb15);
$element['#lb16'] = Html::escape($lb16);
$element['#lb17'] = Html::escape($lb17);
$element['#lb18'] = Html::escape($lb18);
$element['#mainBody'] = $config->get('mainBody');
$element['#errorJS'] = $config->get('errorJS');
$element['#theme'] = 'tsa2_theme';
......
......@@ -113,6 +113,26 @@ class tsa2Form extends ConfigFormBase {
'#title' => $this->t('Label 14 TSA2 app'),
'#default_value' => $config->get('lb14'),
);
$form['lb15'] = array(
'#type' => 'textarea',
'#title' => $this->t('Label 15 TSA2 app'),
'#default_value' => $config->get('lb15'),
);
$form['lb16'] = array(
'#type' => 'textarea',
'#title' => $this->t('Label 16 TSA2 app'),
'#default_value' => $config->get('lb16'),
);
$form['lb17'] = array(
'#type' => 'textarea',
'#title' => $this->t('Label 17 TSA2 app'),
'#default_value' => $config->get('lb17'),
);
$form['lb18'] = array(
'#type' => 'textarea',
'#title' => $this->t('Label 18 TSA2 app'),
'#default_value' => $config->get('lb18'),
);
return $form;
}
......@@ -147,6 +167,10 @@ class tsa2Form extends ConfigFormBase {
$config->set('lb12', $form_state->getValue('lb12'));
$config->set('lb13', $form_state->getValue('lb13'));
$config->set('lb14', $form_state->getValue('lb14'));
$config->set('lb15', $form_state->getValue('lb15'));
$config->set('lb16', $form_state->getValue('lb16'));
$config->set('lb17', $form_state->getValue('lb17'));
$config->set('lb18', $form_state->getValue('lb18'));
$config->save();
return parent::submitForm($form, $form_state);
}
......
......@@ -19,6 +19,10 @@
lb_12="{{lb12}}"
lb_13="{{lb13}}"
lb_14="{{lb14}}"
lb_15="{{lb15}}"
lb_16="{{lb16}}"
lb_17="{{lb17}}"
lb_18="{{lb18}}"
></div>
</div>
{% endautoescape %}
\ No newline at end of file
......@@ -32,6 +32,10 @@ function tsa2_theme($existing, $type, $theme, $path) {
'lb12' => NULL,
'lb13' => NULL,
'lb14' => NULL,
'lb15' => NULL,
'lb16' => NULL,
'lb17' => NULL,
'lb18' => NULL,
),
'template' => 'tsa2-template',
),
......@@ -62,6 +66,10 @@ function tsa2_preprocess_html(&$variables) {
$lb12 = $config->get('lb12');
$lb13 = $config->get('lb13');
$lb14 = $config->get('lb14');
$lb15 = $config->get('lb15');
$lb16 = $config->get('lb16');
$lb17 = $config->get('lb17');
$lb18 = $config->get('lb18');
$variables['#attached']['drupalSettings']['tsa2']['tsa2_api'] = $tsa2_api;
$variables['#attached']['drupalSettings']['tsa2']['lb00'] = $lb00;
$variables['#attached']['drupalSettings']['tsa2']['lb01'] = $lb01;
......@@ -78,5 +86,9 @@ function tsa2_preprocess_html(&$variables) {
$variables['#attached']['drupalSettings']['tsa2']['lb12'] = $lb12;
$variables['#attached']['drupalSettings']['tsa2']['lb13'] = $lb13;
$variables['#attached']['drupalSettings']['tsa2']['lb14'] = $lb14;
$variables['#attached']['drupalSettings']['tsa2']['lb15'] = $lb15;
$variables['#attached']['drupalSettings']['tsa2']['lb16'] = $lb16;
$variables['#attached']['drupalSettings']['tsa2']['lb17'] = $lb17;
$variables['#attached']['drupalSettings']['tsa2']['lb18'] = $lb18;
}
}
\ No newline at end of file
......@@ -2,7 +2,7 @@ tsa2.content:
path: '/tsa2'
defaults:
_controller: '\Drupal\tsa2\Controller\tsa2Controller::content'
_title: 'Sello de Tiempo'
_title: 'Sello de Tiempo 2.0'
requirements:
_permission: 'access content'
......
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