src/templates/Usuario/formulario_new.html.twig line 1

Open in your IDE?
  1. {% extends "@crud\\crud\\formulario_new.html.twig" %}
  2. {% block pre_form %}
  3.     <span id="personaId" class="hide"></span>
  4.         <div id="searchDiv" class="row">
  5.             <form id="searchForm">
  6.                 <div class="col-xs-12">
  7.                     <p class="blue lighter">{{ 'usuario.datos.identificacionTip' | trans({}, 'crud') | upper }}</p>
  8.                 </div>
  9.                 <div class="col-xs-12 col-sm-5">
  10.                     <table class="table table-striped table-bordered table-hover">
  11.                         <tr>
  12.                             <th style="width: 30%;">
  13.                                 <label class=" required ">
  14.                                     {{ 'admin.fields.username' | trans({}, 'crud') | upper }}
  15.                                 </label>
  16.                             </th>
  17.                             <td>
  18.                                 <input id="identificacion" type="text" maxlength="13" style="width: 100%" required="true">
  19.                                 </select>
  20.                             </td>
  21.                         </tr>
  22.                     </table>
  23.                 </div>
  24.                 <div class="col-xs-12 col-sm-2">
  25.                     <button id="searchBtn" class="btn btn-info">
  26.                         <i class="fas fa-search"></i>
  27.                         {{ 'botones.buscar' | trans({}, 'crud') | upper }}
  28.                     </button>
  29.                 </div>
  30.             </form>
  31.         </div>
  32.         <div id="nouser" class="hide">
  33.             <div class="alert alert-danger">
  34.                 <strong>
  35.                     <i class="fas fa-info-circle bigger-150"></i>
  36.                     {{ 'usuario.error.noexist' | trans({}, 'crud') }}
  37.                 </strong>
  38.                 <br>
  39.                 <br>
  40.                 <table>
  41.                     <tr>
  42.                         <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  43.                         <td style="text-align: right">
  44.                             <strong>{{ 'admin.fields.username' | trans({}, 'crud') }}:</strong>
  45.                         </td>
  46.                         <td>&nbsp;&nbsp;</td>
  47.                         <td>
  48.                             <span id='idData'></span>
  49.                         </td>
  50.                     </tr>
  51.                 </table>
  52.                 <br>
  53.             </div>
  54.             <div class="row">
  55.                 <div class="col-xs-6" style="text-align: center">
  56.                     <button id="crear" class="btn btn-success">
  57.                         <i class="fas fa-plus"></i>
  58.                         {{ 'botones.nuevo' | trans({}, 'crud') | upper }}
  59.                     </button>
  60.                 </div>
  61.                 <div class="col-xs-6" style="text-align: center">
  62.                     <button id="searchAgainNoUser" class="btn btn-info">
  63.                         <i class="fas fa-search"></i>
  64.                         {{ 'botones.rebuscar' | trans({}, 'crud') | upper }}
  65.                     </button>
  66.                 </div>
  67.             </div>
  68.         </div>
  69.         <div id="person" class="hide">
  70.             <input id="personBDId" type="hidden">
  71.             <div id="inhabilitado" class="row hide">
  72.                 <div class="col-xs-12">
  73.                     <div class="alert alert-danger">
  74.                         <strong>
  75.                             <i class="fas fa-info-circle bigger-150"></i>
  76.                             <span id="inhabilitadoData"><span>
  77.                         </strong>
  78.                     </div>
  79.                     <div class="hr hr-8 hr-dotted"></div>
  80.                 </div>
  81.             </div>
  82.             <div class="row">
  83.                 <div id="personFoto" class="col-xs-12 col-sm-6 col-md-2" style="text-align: center">
  84.                 </div>
  85.                 <div class="col-xs-12 col-sm-6 col-md-10">
  86.                     <div class="row">
  87.                         <div class="col-xs-12 col-sm-6">
  88.                             <table class="table table-striped table-bordered table-hover">
  89.                                 <tr>
  90.                                     <th style="width: 30%;">
  91.                                         <label>
  92.                                             {{ 'admin.fields.username' | trans({}, 'crud') }}
  93.                                         </label>
  94.                                     </th>
  95.                                     <td>
  96.                                         <span id="personId"></span>
  97.                                     </td>
  98.                                 </tr>
  99.                             </table>
  100.                         </div>
  101.                         <div class="col-xs-12 col-sm-6">
  102.                             <table class="table table-striped table-bordered table-hover">
  103.                                 <tr>
  104.                                     <th style="width: 30%;">
  105.                                         <label>
  106.                                             {{ 'admin.fields.nombreCompleto' | trans({}, 'crud') }}
  107.                                         </label>
  108.                                     </th>
  109.                                     <td>
  110.                                         <span id="personNombre"></span>
  111.                                     </td>
  112.                                 </tr>
  113.                             </table>
  114.                         </div>
  115.                     </div>
  116.                     <div class="row">
  117.                         <div class="col-xs-12 col-sm-6">
  118.                             <table class="table table-striped table-bordered table-hover">
  119.                                 <tr>
  120.                                     <th style="width: 30%;">
  121.                                         <label>
  122.                                             {{ 'admin.fields.telefono' | trans({}, 'crud') }}
  123.                                         </label>
  124.                                     </th>
  125.                                     <td>
  126.                                         <span id="personTelefono"></span>
  127.                                     </td>
  128.                                 </tr>
  129.                             </table>
  130.                         </div>
  131.                         <div class="col-xs-12 col-sm-6">
  132.                             <table class="table table-striped table-bordered table-hover">
  133.                                 <tr>
  134.                                     <th style="width: 30%;">
  135.                                         <label>
  136.                                             {{ 'admin.fields.movil' | trans({}, 'crud') }}
  137.                                         </label>
  138.                                     </th>
  139.                                     <td>
  140.                                         <span id="personMovil"></span>
  141.                                     </td>
  142.                                 </tr>
  143.                             </table>
  144.                         </div>
  145.                     </div>
  146.                     <div class="row">
  147.                         <div class="col-xs-12 col-sm-6">
  148.                             <table class="table table-striped table-bordered table-hover">
  149.                                 <tr>
  150.                                     <th style="width: 30%;">
  151.                                         <label>
  152.                                             {{ 'admin.fields.email' | trans({}, 'crud') }}
  153.                                         </label>
  154.                                     </th>
  155.                                     <td>
  156.                                         <span id="personMail"></span>
  157.                                     </td>
  158.                                 </tr>
  159.                             </table>
  160.                         </div>
  161.                         <div class="col-xs-12 col-sm-6">
  162.                             <table class="table table-striped table-bordered table-hover">
  163.                                 <tr>
  164.                                     <th style="width: 30%;">
  165.                                         <label>
  166.                                             {{ 'admin.fields.direccion' | trans({}, 'crud') }}
  167.                                         </label>
  168.                                     </th>
  169.                                     <td>
  170.                                         <span id="personDireccion"></span>
  171.                                     </td>
  172.                                 </tr>
  173.                             </table>
  174.                         </div>
  175.                     </div>
  176.                 </div>
  177.             </div>
  178.             <div class="hr hr-8 hr-dotted"></div>
  179.             <div class="row">
  180.                 <div class="col-xs-6" style="text-align: center">
  181.                     <button id="confirmar" class="btn btn-success">
  182.                         <i class="fas fa-check"></i>
  183.                         {{ 'botones.confirmar' | trans({}, 'crud') | upper }}
  184.                     </button>
  185.                 </div>
  186.                 <div class="col-xs-6" style="text-align: center">
  187.                     <button id="searchAgainWrongPerson" class="btn btn-info">
  188.                         <i class="fas fa-search"></i>
  189.                         {{ 'botones.rebuscar' | trans({}, 'crud') | upper }}
  190.                     </button>
  191.                 </div>
  192.             </div>
  193.         </div>
  194. {% endblock %}
  195. {% block form_action %}
  196.     {{ form_start(form, {'attr': { 'class': 'hide form form_'~routeClassName, 'id': 'crud_form_'~routeClassName}, 'method': 'POST', 'action': path('crud_plain_create', {'rol': rol, 'routeClassName': routeClassName})}) }}
  197. {% endblock %}
  198. {% block botones_form %}
  199.     <div class="row">
  200.         <div class="col-xs-12">
  201.             <div class="hr hr-8 hr-dotted"></div>
  202.         </div>
  203.     </div>
  204.     <div class="row" id="botones_form">
  205.         <div class="col-xs-3">
  206.             <center>
  207.                 <a id="searchAgainForm" class="btn btn-white btn-inverse btn-bold btn-round" href="">
  208.                     {% trans from 'crud' %}usuario.botones.descartar{% endtrans %}
  209.                 </a>
  210.             </center>
  211.         </div>
  212.         <div class="col-xs-3">
  213.             <center>
  214.                 {% block action_retorno %}
  215.                     <a id="btn_retorno" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_plain_back_to_list', {'rol': rol, 'routeClassName': routeClassName, 'from': 'new'}) }}">
  216.                         {% trans from 'crud' %}botones.regresar{% endtrans %}
  217.                     </a>
  218.                 {% endblock %}
  219.             </center>
  220.         </div>
  221.         <div class="col-xs-3">
  222.             <center>
  223.                 <input id="{{btnSave}}" class="btn btn-white btn-inverse btn-bold btn-round" type="submit" value="{% trans from 'crud' %}botones.grabar{% endtrans %}" name="{{btnSave}}">
  224.             </center>
  225.         </div>
  226.         <div class="col-xs-3">
  227.             <center>
  228.                 <input id="btn_do_and_create" class="btn btn-white btn-inverse btn-bold btn-round" type="submit" value="{% trans from 'crud' %}botones.grabar_y_crear{% endtrans %}" name="btn_do_and_create">
  229.             </center>
  230.         </div>
  231.     </div>
  232. {% endblock %}