PHP Classes

File: vendor/sensio/generator-bundle/Resources/skeleton/crud/views/show.html.twig.twig

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/sensio/generator-bundle/Resources/skeleton/crud/views/show.html.twig.twig   Download  
File: vendor/sensio/generator-bundle/Resources/skeleton/crud/views/show.html.twig.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 1,864 bytes
 

Contents

Class file image Download
{% block extends %} {{ "{% extends 'base.html.twig' %}" }} {% endblock extends %} {% block body %} {{ "{% block body %}" }} <h1>{{ entity }}</h1> <table> <tbody> {%- for field, metadata in fields %} <tr> <th>{{ field|capitalize }}</th> {%- if metadata.type in ['datetime'] %} <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}{% endif %}' }}</td> {%- elseif metadata.type in ['date'] %} <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d\') }}{% endif %}' }}</td> {%- elseif metadata.type in ['time'] %} <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'H:i:s\') }}{% endif %}' }}</td> {%- elseif metadata.type in ['array'] %} <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|join(\', \') }}{% endif %}' }}</td> {%- elseif metadata.type in ['boolean'] %} <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}Yes{% else %}No{% endif %}' }}</td> {%- else %} <td>{{ '{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' }}' }}</td> {%- endif %} </tr> {%- endfor %} </tbody> </table> {% set hide_edit, hide_delete = false, false %} {{ include('crud/views/others/record_actions.html.twig.twig') -}} {{ "{% endblock %}" }} {% endblock body %}