From cb1a3fa801cb999c8e3d8ef01aee82304c89a41c Mon Sep 17 00:00:00 2001 From: Jeremy Guiselin <jeremy.guiselin@student.ecp.fr> Date: Thu, 9 Feb 2017 19:36:29 -0500 Subject: [PATCH] scroll table container + add id to row to ajax delete --- src/BackendBundle/Resources/views/league/list.html.twig | 2 +- src/BackendBundle/Resources/views/notification/list.html.twig | 2 +- src/BackendBundle/Resources/views/prediction/list.html.twig | 4 ++-- src/BackendBundle/Resources/views/team/list.html.twig | 4 ++-- web/css/style.css | 4 ++++ 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/BackendBundle/Resources/views/league/list.html.twig b/src/BackendBundle/Resources/views/league/list.html.twig index b5a64b1..989a353 100644 --- a/src/BackendBundle/Resources/views/league/list.html.twig +++ b/src/BackendBundle/Resources/views/league/list.html.twig @@ -4,7 +4,7 @@ {% block subcontent %} <div class="row"> - <div class="col-sm-8 col-sm-offset-2"> + <div class="col-sm-12 table-container"> {% include '@Backend/entity-browser/buttons.html.twig' %} <table class="table table-striped" cellspacing="0" width="50%"> <thead> diff --git a/src/BackendBundle/Resources/views/notification/list.html.twig b/src/BackendBundle/Resources/views/notification/list.html.twig index 37a2dfc..3006af0 100644 --- a/src/BackendBundle/Resources/views/notification/list.html.twig +++ b/src/BackendBundle/Resources/views/notification/list.html.twig @@ -4,7 +4,7 @@ {% block subcontent %} <div class="row"> - <div class="col-sm-12"> + <div class="col-sm-12 table-container"> {% include '@Backend/entity-browser/buttons.html.twig' %} <table class="table table-striped" cellspacing="0" width="50%"> <thead> diff --git a/src/BackendBundle/Resources/views/prediction/list.html.twig b/src/BackendBundle/Resources/views/prediction/list.html.twig index 47a94ad..5dec475 100644 --- a/src/BackendBundle/Resources/views/prediction/list.html.twig +++ b/src/BackendBundle/Resources/views/prediction/list.html.twig @@ -4,7 +4,7 @@ {% block subcontent %} <div class="row"> - <div class="col-sm-12"> + <div class="col-sm-12 table-container"> {% include '@Backend/entity-browser/buttons.html.twig' %} <table class="table table-striped" cellspacing="0" width="50%"> <thead> @@ -25,7 +25,7 @@ </thead> <tbody> {% for element in elements %} - <tr> + <tr id="{{ element.id }}"> <td>{{ element.id }}</td> <td>{{ element.firstTeam.name }}</td> <td>{{ element.secondTeam.name }}</td> diff --git a/src/BackendBundle/Resources/views/team/list.html.twig b/src/BackendBundle/Resources/views/team/list.html.twig index 29ed91b..a4f8e7c 100644 --- a/src/BackendBundle/Resources/views/team/list.html.twig +++ b/src/BackendBundle/Resources/views/team/list.html.twig @@ -4,7 +4,7 @@ {% block subcontent %} <div class="row"> - <div class="col-sm-12"> + <div class="col-sm-12 table-container"> {% include '@Backend/entity-browser/buttons.html.twig' %} <table class="table table-striped" cellspacing="0" width="50%"> <thead> @@ -17,7 +17,7 @@ </thead> <tbody> {% for element in elements %} - <tr> + <tr id="{{ element.id }}"> <td>{{ element.id }}</td> <td>{{ element.name }}</td> <td><img class="thumb" src="{{ asset('/img/application/team/' ~ element.picture) }}" alt="" /></td> diff --git a/web/css/style.css b/web/css/style.css index e596755..5c7ce06 100644 --- a/web/css/style.css +++ b/web/css/style.css @@ -114,4 +114,8 @@ body { img.thumb { max-height: 80px; +} + +.table-container { + overflow: scroll; } \ No newline at end of file -- GitLab