From 1bb4f3e07a5fb550aeca93e70bdb020eefa2cc36 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Mar 2018 20:20:10 +0100 Subject: [PATCH] Dolibarrize module ticket --- htdocs/langs/en_US/ticketsup.lang | 2 +- htdocs/theme/eldy/style.css.php | 7 +++++-- htdocs/ticketsup/class/actions_ticketsup.class.php | 2 +- htdocs/ticketsup/index.php | 3 +++ htdocs/ticketsup/list.php | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/htdocs/langs/en_US/ticketsup.lang b/htdocs/langs/en_US/ticketsup.lang index 2ef8e473e0a..60f98a8e543 100644 --- a/htdocs/langs/en_US/ticketsup.lang +++ b/htdocs/langs/en_US/ticketsup.lang @@ -180,7 +180,7 @@ TicketMessageSuccessfullyAdded=Message successfully added TicketMessagesList=Message list NoMsgForThisTicket=No message for this ticket Properties=Classification -LatestNewTickets=Last %s tickets newest (not read) +LatestNewTickets=Latest %s newest tickets (not read) TicketSeverity=Severity ShowTicket=See ticket RelatedTickets=Related tickets diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index c3ed6e76ab5..157fa85e77d 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -830,6 +830,9 @@ div.fiche>form>div.div-table-responsive { div.fiche>div.tabBar>form>div.div-table-responsive { min-height: 392px; } +div.fiche { + text-align: justify; +} .flexcontainer { browser->name, array('chrome','firefox'))) echo 'display: inline-flex;'."\n"; ?> @@ -3117,8 +3120,8 @@ ul.noborder li:nth-child(even):not(.liste_titre) { { .boxstats, .boxstats130 { margin: 3px; - border: 1px solid #ccc; - box-shadow: none; + /*border: 1px solid #ccc; + box-shadow: none; */ } .boxstats130 { text-align: diff --git a/htdocs/ticketsup/class/actions_ticketsup.class.php b/htdocs/ticketsup/class/actions_ticketsup.class.php index 4d0acda3e35..08c28ad3085 100644 --- a/htdocs/ticketsup/class/actions_ticketsup.class.php +++ b/htdocs/ticketsup/class/actions_ticketsup.class.php @@ -464,7 +464,7 @@ class ActionsTicketsup if ($this->fetch(GETPOST('id', 'int'), GETPOST('track_id', 'alpha')) >= 0) { if ($object->delete($user) > 0) { setEventMessages('
' . $langs->trans('TicketDeletedSuccess') . '
', null, 'mesgs'); - Header("Location: index.php"); + Header("Location: ".DOL_URL_ROOT."/ticketsup/list.php"); exit; } else { $langs->load("errors"); diff --git a/htdocs/ticketsup/index.php b/htdocs/ticketsup/index.php index 2274ae0b889..cef4faa80ba 100644 --- a/htdocs/ticketsup/index.php +++ b/htdocs/ticketsup/index.php @@ -300,6 +300,8 @@ if ($result) { $i = 0; $transRecordedType = $langs->trans("LatestNewTickets", $max); + + print '
'; print ''; print ''; print ''; @@ -355,6 +357,7 @@ if ($result) { } print "
' . $transRecordedType . '' . $langs->trans('Ref') . '
"; + print '
'; } else { dol_print_error($db); } diff --git a/htdocs/ticketsup/list.php b/htdocs/ticketsup/list.php index a54394522f8..934a528763e 100644 --- a/htdocs/ticketsup/list.php +++ b/htdocs/ticketsup/list.php @@ -17,7 +17,7 @@ */ /** - * Tickets List + * Tickets List * * @package ticketsup */