TheMac Posted March 8, 2012 Share Posted March 8, 2012 Hola, se puede hacer que en vez de ser obligatorio el teléfono del domicilio sea obligatorio el móvil (para mensjaría, avisos SMS...)? Gracias Link to comment Share on other sites More sharing options...
vive Posted March 8, 2012 Share Posted March 8, 2012 una vez leí en este foro este post de javICO: Yo tengo la 1.3.6 y no tengo apenas idea de código y estas cosas Pero he modificado el “Authentication.tpl” en las dos opciones, la del DNI y el telefono, me han aparecido los asteriscos a la primera y sin hacer nada más que añadir después de cada campo esto: <sup>*</sup> y añadiendo la palabra “REQUIRED” Pego exactamente el código como lo tengo yo ahora: <p class="required text"> <label for="phone">{l s='Home phone'}</label> <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" /> <sup>*</sup> </p> <p class="required text"> <label for="dni">{l s='Identication number'}</label> <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> <sup>*</sup> </p> Haz la prueba, suerte! Link to comment Share on other sites More sharing options...
kamisetafutbol Posted January 2, 2013 Share Posted January 2, 2013 una vez leí en este foro este post de javICO: Yo tengo la 1.3.6 y no tengo apenas idea de código y estas cosas Pero he modificado el “Authentication.tpl” en las dos opciones, la del DNI y el telefono, me han aparecido los asteriscos a la primera y sin hacer nada más que añadir después de cada campo esto: <sup>*</sup> y añadiendo la palabra “REQUIRED” Pego exactamente el código como lo tengo yo ahora: <p class="required text"> <label for="phone">{l s='Home phone'}</label> <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" /> <sup>*</sup> </p> <p class="required text"> <label for="dni">{l s='Identication number'}</label> <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> <sup>*</sup> </p> Haz la prueba, suerte! Tengo el telefono así: {elseif $field_name eq "phone"} <p class="required text"> <label for="phone">{l s='Phone'} <sup>*</sup></label> <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}"> </p> pero me sigue sin aparecer el * en el registro... Link to comment Share on other sites More sharing options...
Recommended Posts