From ce9c4dd436e25e86897809c1d5dd36963e31afb7 Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Thu, 3 Feb 2022 14:56:39 +0100
Subject: [PATCH] refs #21265 [fid] order list: fix codestyles and make table
 responsive

* fix php short opening tag to display type header
---
 themes/fid/templates/fid/order/list/entry.phtml   | 4 ++--
 themes/fid/templates/fid/order/list/headers.phtml | 4 ++--
 themes/fid/templates/fid/order/list/table.phtml   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/themes/fid/templates/fid/order/list/entry.phtml b/themes/fid/templates/fid/order/list/entry.phtml
index 84151437c2d..9bd12a97062 100644
--- a/themes/fid/templates/fid/order/list/entry.phtml
+++ b/themes/fid/templates/fid/order/list/entry.phtml
@@ -1,5 +1,5 @@
 <!-- fid: fid - order - list - entry -->
-<?php foreach($this->displayCols as $col): ?>
+<?php foreach ($this->displayCols as $col): ?>
   <?php switch ($col):
     case 'user': ?>
       <td>
@@ -29,7 +29,7 @@
       <?php break; ?>
     <?php case 'status': ?>
       <td>
-          <?=$order->getStatus() ? $this->translate('fid::status_'.$order->getStatus()) : ''?>
+          <?=$order->getStatus() ? $this->translate('fid::status_' . $order->getStatus()) : ''?>
       </td>
       <?php break; ?>
     <?php case 'dueDate': ?>
diff --git a/themes/fid/templates/fid/order/list/headers.phtml b/themes/fid/templates/fid/order/list/headers.phtml
index 3196ce96530..f468a656231 100644
--- a/themes/fid/templates/fid/order/list/headers.phtml
+++ b/themes/fid/templates/fid/order/list/headers.phtml
@@ -1,10 +1,10 @@
 <!-- fid: fid - order - list - headers -->
-<?php foreach($displayCols as $col): ?>
+<?php foreach ($displayCols as $col): ?>
   <?php switch ($col):
     case 'user': ?>
       <th><?=$this->translate('fid::order_user')?></th>
       <?php break; ?>
-    <? case 'type': ?>
+    <?php case 'type': ?>
       <th><?=$this->translate('fid::order_type')?></th>
       <?php break; ?>
     <?php case 'date': ?>
diff --git a/themes/fid/templates/fid/order/list/table.phtml b/themes/fid/templates/fid/order/list/table.phtml
index 4d1dbd23acd..ade598386a4 100644
--- a/themes/fid/templates/fid/order/list/table.phtml
+++ b/themes/fid/templates/fid/order/list/table.phtml
@@ -1,5 +1,5 @@
 <!-- fid: fid - order - list - table -->
-<table class="table">
+<table class="table table-striped table-resp-data-md">
     <?php /* Table head */ ?>
     <tr>
         <?=$this->render('fid/order/list/headers')?>
-- 
GitLab