vendor/elcoag/symfony-process-bundle/src/Resources/views/crud/show.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ title|trans }} - {{ subtitle|trans }}{% endblock %}
  3. {% block page_title %}{{ title|trans }}{% endblock %}
  4. {% block page_subtitle %}{{ subtitle|trans }}{% endblock %}
  5. {% block page_content %}
  6.     <div class="row">
  7.         {% if app.session.flashbag.peekAll|length > 0 %}
  8.             <div class="col-md-12">
  9.                 {% for type, messages in app.session.flashbag.all %}
  10.                     {% for message in messages %}
  11.                         <div class="alert alert-{{ type ? type : 'info' }}">
  12.                             {{ message|trans({}, domain|default('messages')) }}
  13.                         </div>
  14.                     {% endfor %}
  15.                 {% endfor %}
  16.             </div>
  17.         {% endif %}
  18.         <div class="col-md-12">
  19.             <div class="card card-info">
  20.                 <div class="card-body">
  21.                     <div class="row">
  22.                         <div class="col-md-12">
  23.                             <a class="btn btn-default float-left" href="{{ path(app_index) }}">Back to list</a>
  24.                             <div class="float-right ml-1">{{ include('@SymfonyProcess/crud/_delete_form.html.twig') }}</div>
  25.                             <a class="btn btn-primary float-right" href="{{ path(app_edit, {'id': item.id}) }}">edit</a>
  26.                         </div>
  27.                     </div>
  28.                 </div>
  29.             </div>
  30.         </div>
  31.         <div class="col-md-12">
  32.             <div class="card card-info">
  33.                 <div class="card-header">
  34.                     <h3 class="card-title">{{ object_title }}</h3>
  35.                 </div>
  36.                 <div class="card-body">
  37.                     <div class="row">
  38.                         <div class="col-md-12 p-0">
  39.                             <table class="table table-bordered table-hover dataTable m-0">
  40.                                 <tbody>
  41.                                     <tr>
  42.                                         <th>Id</th>
  43.                                         <td>{{ item.id }}</td>
  44.                                     </tr>
  45.                                     <tr>
  46.                                         <th>Name</th>
  47.                                         <td>{{ item.name }}</td>
  48.                                     </tr>
  49.                                     <tr>
  50.                                         <th>Created at</th>
  51.                                         <td>{{ item.createdAt|date('Y-m-d H-i-s') }}</td>
  52.                                     </tr>
  53.                                     <tr>
  54.                                         <th>Updated at</th>
  55.                                         <td>{{ item.updatedAt|date('Y-m-d H-i-s') }}</td>
  56.                                     </tr>
  57.                                 </tbody>
  58.                             </table>
  59.                         </div>
  60.                     </div>
  61.                 </div>
  62.             </div>
  63.         </div>
  64.     </div>
  65. {% endblock %}