vendor/elcoag/symfony-process-bundle/src/Resources/views/crud/index.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}{{ title|trans }} - {{ subtitle|trans }}{% endblock %}
{% block page_title %}{{ title|trans }}{% endblock %}
{% block page_subtitle %}{{ subtitle|trans }}{% endblock %}
{% block page_content %}
<div class="row">
{% if app.session.flashbag.peekAll|length > 0 %}
<div class="col-md-12">
{% for type, messages in app.session.flashbag.all %}
{% for message in messages %}
<div class="alert alert-{{ type ? type : 'info' }}">
{{ message|trans({}, domain|default('messages')) }}
</div>
{% endfor %}
{% endfor %}
</div>
{% endif %}
<div class="col-md-12">
<div class="card card-info">
<div class="card-body">
<div class="row">
<div class="col-md-12">
<a href="{{ path(app_new) }}" class="btn btn-primary">Create new</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="card card-info">
<div class="card-header">
<h3 class="card-title">{{ object_title }} List</h3>
</div>
<div class="card-body p-1">
<div class="row">
<div class="col-md-12">
<table class="table table-bordered table-hover dataTable m-0">
<thead>
{% set temp = items|first %}
<tr>
{% for property_title in temp.attributes %}
<th>{{ property_title }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
{% for field in temp.attributes %}
<td class="p-1">
{% if field is same as('actions') %}
<a class="btn btn-xs btn-default float-right ml-1" href="{{ path(app_show, {'id': item.id}) }}">Show</a>
<a class="btn btn-xs btn-primary float-right" href="{{ path(app_edit, {'id': item.id}) }}">Edit</a>
{% elseif attribute(item, field).timestamp is defined %}
<a class="" href="{{ path(app_show, {'id': item.id}) }}">{{ attribute(item, field)|date('m/d/Y') }}</a>
{% else %}
<a class="" href="{{ path(app_show, {'id': item.id}) }}">{{ attribute(item, field) }}</a>
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}