/view/admin/users/add.html.php

https://github.com/alugo/Goteo · PHP · 48 lines · 26 code · 4 blank · 18 comment · 0 complexity · 0e93b5cca75c1edc514b835a156a3052 MD5 · raw file

  1. <?php
  2. /*
  3. * Copyright (C) 2012 Platoniq y Fundación Fuentes Abiertas (see README for details)
  4. * This file is part of Goteo.
  5. *
  6. * Goteo is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Goteo is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with Goteo. If not, see <http://www.gnu.org/licenses/agpl.txt>.
  18. *
  19. */
  20. use Goteo\Library\Text;
  21. $data = $this['data'];
  22. ?>
  23. <div class="widget">
  24. <form action="/admin/users/add" method="post">
  25. <p>
  26. <label for="user-user">Login:</label><span style="font-style:italic;">Solo letras, números y guion '-'. Sin espacios ni tildes ni 'ñ' ni 'ç' ni otros caracteres que no sean letra, número o guión.</span><br />
  27. <input type="text" id="user-user" name="userid" value="<?php echo $data['user'] ?>" style="width:250px" maxlength="50"/>
  28. </p>
  29. <p>
  30. <label for="user-name">Nombre público:</label><br />
  31. <input type="text" id="user-name" name="name" value=<?php echo $data['name'] ?>"" style="width:500px" maxlength="255"/>
  32. </p>
  33. <p>
  34. <label for="user-email">Email:</label><span style="font-style:italic;">Que sea válido.</span><br />
  35. <input type="text" id="user-email" name="email" value="<?php echo $data['email'] ?>" style="width:500px" maxlength="255"/>
  36. </p>
  37. <p>
  38. <label for="user-password">Contraseña:</label><span style="font-style:italic;">Mínimo 6 caracteres. Se va a encriptar y no se puede consultar</span><br />
  39. <input type="text" id="user-password" name="password" value="<?php echo $data['password'] ?>" style="width:500px" maxlength="255"/>
  40. </p>
  41. <input type="submit" name="add" value="Crear este usuario" /><br />
  42. <span style="font-style:italic;font-weight:bold;">Atención! Le llegará email de verificación al usuario como si se hubiera registrado.</span>
  43. </form>
  44. </div>