|
@@ -33,24 +33,44 @@ class GetEmail extends FormBase {
|
|
|
$url = Url::fromRoute('materio_expo.qr_controller_getfile', ['ref'=>$ref], ['absolute' => TRUE]);
|
|
|
return new RedirectResponse($url->toString());
|
|
|
}else{
|
|
|
+ $form['heading'] = [
|
|
|
+ '#type' => 'html_tag',
|
|
|
+ '#tag' => 'h3',
|
|
|
+ '#value' => $this->t("Thank you for stopping by at matériO's bOOth."),
|
|
|
+ '#weight' => '0',
|
|
|
+ ];
|
|
|
+
|
|
|
+ $form['welcome'] = [
|
|
|
+ '#type' => 'html_tag',
|
|
|
+ '#tag' => 'p',
|
|
|
+ '#value' => $this->t("In order to visualize the information of the exhibited materials, could you indicate your e-mail address?"),
|
|
|
+ '#weight' => '1',
|
|
|
+ ];
|
|
|
+
|
|
|
$form['email'] = [
|
|
|
'#type' => 'email',
|
|
|
|
|
|
'#attributes' => [
|
|
|
'placeholder' => $this->t('Email')
|
|
|
],
|
|
|
- '#weight' => '0',
|
|
|
+ '#weight' => '2',
|
|
|
];
|
|
|
|
|
|
$form['ref'] = [
|
|
|
'#type' => 'hidden',
|
|
|
'#value' => $ref
|
|
|
];
|
|
|
-
|
|
|
- $form['submit'] = [
|
|
|
+
|
|
|
+ $form['actions'] = [
|
|
|
+ '#type' => 'container',
|
|
|
+ '#weight' => '3',
|
|
|
+ ];
|
|
|
+
|
|
|
+ $form['actions']['submit'] = [
|
|
|
'#type' => 'submit',
|
|
|
- '#value' => $this->t("Submit"),
|
|
|
+ '#value' => $this->t("Go!")
|
|
|
];
|
|
|
+
|
|
|
return $form;
|
|
|
}
|
|
|
}
|