src/Crud/templates/crud/show.html.twig line 29

Open in your IDE?
  1. {% extends "@crud\\crud.html.twig" %}
  2. {% block jquery %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         $(function()
  6.         {
  7.             $("#ul_breadcrumb").append('<li class="active"><a>{{ 'subtitles.show' | trans({}, 'crud') | capitalize }}</a></li>');      
  8.             $(".show_del_item").click(function(e){
  9.                 if (!confirm("Está seguro de querer eliminar el elemento seleccionado?"))
  10.                 {
  11.                     e.preventDefault();
  12.                 }
  13.             });
  14.             $('.ace-switch').click(function(e){
  15.                 e.preventDefault();
  16.             });
  17.         });
  18.         
  19.     </script>    
  20. {% endblock %}
  21. {% block crud %}
  22.     {% block show %}
  23.         <div class="widget-box transparent">
  24.             {#% block principal_heading %}
  25.                 <div class="widget-header widget-header-flat">
  26.                     <h4 class="widget-title lighter">
  27.                         <i class="fas fa-search orange"></i>
  28.                         {% set texto = routeClassName~'.plural' %}     
  29.                         {{ texto | trans({}, 'crud') }}
  30.                     </h4>
  31.                 <!--div class="widget-toolbar">
  32.                     <a href="#" data-action="collapse">
  33.                         <i class="fas fa-chevron-up"></i>
  34.                     </a>
  35.                 </div-->
  36.                 </div>
  37.             {% endblock %#}
  38.             <div class="widget-body" style="display: block;">
  39.                 <div class="widget-main no-padding">
  40.                     {% block showdata %}
  41.                         {% include '@crud\\crud\\show_data.html.twig' %}
  42.                     {% endblock %} 
  43.                     <div class="row">
  44.                         <div class="col-xs-12">
  45.                             <div class="hr hr-8 hr-dotted"></div>
  46.                         </div>
  47.                     </div>
  48.                     {% block actions %}
  49.                         <div id="botones" class="row">
  50.                             {% if editInIndex and deleteInIndex%}
  51.                                 {% set clase = 'col-xs-4' %}
  52.                             {% else %}
  53.                                 {% if editInIndex or deleteInIndex %}
  54.                                     {% set clase = 'col-xs-6' %}
  55.                                 {% else %}
  56.                                     {% set clase = 'col-xs-12' %}
  57.                                 {% endif %}
  58.                             {% endif %}
  59.                             <div class="{{ clase }}">
  60.                                 <center>
  61.                                     {% block action_retorno %}
  62.                                         {#<a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_index', {'routeClassName': routeClassName}) }}">#}
  63.                                         <a class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_plain_back_to_list', {'rol': rol, 'routeClassName': routeClassName, 'id': entity.id, 'from': 'show'}) }}">
  64.                                             {% trans from 'crud' %}botones.regresar{% endtrans %}
  65.                                         </a>
  66.                                     {% endblock %} 
  67.                                 </center>
  68.                             </div>    
  69.                             {% if editInIndex %}
  70.                                 <div class="{{ clase }} forChanges">
  71.                                     <center>
  72.                                         <a id="btnShowUpdate" class="btn btn-white btn-inverse btn-bold btn-round" href="{{ path('crud_plain_edit', {'rol': rol, 'id':entity.id, 'routeClassName': routeClassName}) }}">{% trans from 'crud' %}botones.modificar{% endtrans %}</a>
  73.                                     </center>
  74.                                 </div>    
  75.                             {% endif %}
  76.                             {% if deleteInIndex %}
  77.                                 <div class="{{ clase }} forChanges">
  78.                                     <center>
  79.                                         {% block action_delete %}
  80.                                             <a id="btn_delete_{{ routeClassName }}" class="btn btn-white btn-inverse btn-bold btn-round show_del_item" href="{{ path('crud_plain_delete', { 'rol': rol, 'id' : entity.id, 'routeClassName': routeClassName }) }}">{% trans from 'crud' %}botones.eliminar{% endtrans %}</a>
  81.                                         {% endblock %}
  82.                                     </center>
  83.                                 </div>
  84.                             {% endif %}
  85.                         </div>
  86.                     {% endblock %}
  87.                     {% block show_details %}
  88.                     <div class="row">
  89.                         <div class="col-xs-12">
  90.                             <div class="hr hr-8 hr-dotted"></div>
  91.                         </div>
  92.                     </div>
  93.                     {% endblock %}
  94.                     
  95.                 </div>                   
  96.             </div>                   
  97.         </div>
  98.     {% endblock %}
  99.    
  100. {% endblock %}
  101.