This commit is contained in:
Daniel Muñoz Garcia
2021-06-08 15:27:37 +02:00
committed by GitHub
parent ff7c9d103d
commit a53006592c
13 changed files with 83 additions and 73 deletions

View File

@ -16,8 +16,6 @@ class formAddPromotion extends Form{
}
protected function generaCamposFormulario($datos, $errores = array()){
// Se generan los mensajes de error si existen.
$htmlErroresGlobales = self::generaListaErroresGlobales($errores);
$errorTittle = self::createMensajeError($errores, 'tittle', 'span', array('class' => 'error'));
@ -27,6 +25,7 @@ class formAddPromotion extends Form{
//$errorImage = self::createMensajeError($errores, 'image', 'span', array('class' => 'error'));
$html = '<div class="row">
<h3>AÑADIR PROMOCIÓN</h3>
<fieldset id="promotion_form"><pre>'.$htmlErroresGlobales.'</pre>
<legend>AÑADIR PROMOCIÓN</legend>
<input type="text" name="tittle" id="tittle" placeholder="Título" required/><pre>'.$errorTittle.'</pre>
@ -41,7 +40,7 @@ class formAddPromotion extends Form{
</div>
</div>
</div>';
return $html;
}