Some frontend adaption for the ticket system

This commit is contained in:
Xenomporio 2022-07-22 11:12:41 +02:00
parent b2610079d6
commit 910a8544a4
5 changed files with 709 additions and 704 deletions

View File

@ -443,10 +443,10 @@ class erpooSystem extends Application
// Creates user specific items
$possibleUserItems = [
/* 'Inbox' => [
'link' => 'index.php?module=ticket&action=offene',
'Tickets' => [
'link' => 'index.php?module=ticket&action=list',
'counter' => $this->erp->AnzahlOffeneTickets()
],*/
],
'Aufgaben' => [
'link' => 'index.php?module=aufgaben&action=list',
'counter' => $this->erp->AnzahlOffeneAufgaben()

View File

@ -2631,7 +2631,7 @@ public function NavigationHooks(&$menu)
public function AnzahlOffeneTickets($eigene=true)
{
return 0;
return (int)$this->app->DB->Select("SELECT COUNT(t.id) FROM ticket t WHERE t.status = 'neu' AND t.warteschlange IN (SELECT w.adresse FROM warteschlangen w WHERE w.adresse = '".$this->app->User->GetAdresse()."')");
}

View File

@ -24,7 +24,7 @@
</tr>
<tr align="center">
<td><a [TICKETVORLAGENLINK]>{|Ticket Vorlagen|}</a></td>
<td><a [WARTESCHLANGENLINK]>{|Warteschlangen|}</a></td>
<td><a [WARTESCHLANGENLINK]>{|Ticket Warteschlangen|}</a></td>
<!--<td><a href="index.php?module=generic&action=edit">Startseite</a></td>-->
<td><a [ARTIKELKATEGORIENLINK]>{|Artikel Kategorien|}</a></td>
<td><a href="index.php?module=artikeleinheit&action=list">{|Artikel Einheiten|}</a></td>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.95314 8.71436C9.34786 9.7745 8.22077 10.4289 7 10.4289C5.77923 10.4289 4.65214 9.7745 4.04686 8.71436H1.85714C1.38376 8.71436 1 9.09811 1 9.5715V12.1429C1 12.6163 1.38376 13.0001 1.85714 13.0001H12.1429C12.6162 13.0001 13 12.6163 13 12.1429V9.5715C13 9.09811 12.6162 8.71436 12.1429 8.71436H9.95314Z" stroke="#94979E" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7 7V1" stroke="#94979E" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4.85693 5.28564L6.99979 6.99993L9.14265 5.28564" stroke="#94979E" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 741 B