form improvement
using theme clone
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
{% if entries.count > 0 %}
|
||||
{{ tables.data_table_header({
|
||||
'label.id': '',
|
||||
'label.alias': 'bookmark-o',
|
||||
'label.username': 'user',
|
||||
'label.alias': 'comment-o',
|
||||
'label.email': 'envelope-o',
|
||||
'label.title': 'graduation-cap',
|
||||
'label.active': 'lock',
|
||||
@@ -22,8 +22,8 @@
|
||||
{% for entry in entries %}
|
||||
<tr>
|
||||
<td>{{ entry.id }}</td>
|
||||
<td><a href="{{ path('user_profile', {'username' : entry.username}) }}">{{ entry.username }}</a></td>
|
||||
<td>{{ entry.alias }}</td>
|
||||
<td>{{ entry.username }}</td>
|
||||
<td>{{ entry.email }}</td>
|
||||
<td>{{ entry.title }}</td>
|
||||
<td>{{ widgets.label_visible(entry.active) }}</td>
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
{#
|
||||
This is a template fragment designed to be included in other templates
|
||||
See http://symfony.com/doc/current/book/templating.html#including-other-templates
|
||||
|
||||
A common practice to better distinguish between templates and fragments is to
|
||||
prefix fragments with an underscore. That's why this template is called
|
||||
'_flash_messages.html.twig' instead of 'flash_messages.html.twig'
|
||||
#}
|
||||
|
||||
{% if app.session.started and app.session.flashBag.peekAll is not empty %}
|
||||
<div class="messages">
|
||||
{% for type, messages in app.session.flashBag.all %}
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
|
||||
{% macro data_table_header(entries) %}
|
||||
<div class="box">
|
||||
{# <div class="box-header">
|
||||
<h3 class="box-title">Hover Data Table</h3>
|
||||
</div> #}
|
||||
{#
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><a href="#" class="btn btn-primary">jkbkj</a></h3>
|
||||
<div class="box-tools">
|
||||
<ul class="pagination pagination-sm no-margin pull-right">
|
||||
<li><a href="#">«</a></li>
|
||||
<li><a href="#">1</a></li>
|
||||
<li><a href="#">2</a></li>
|
||||
<li><a href="#">3</a></li>
|
||||
<li><a href="#">»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
#}
|
||||
<div class="box-body no-padding">
|
||||
<div class="dataTables_wrapper form-inline dt-bootstrap">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user