You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-11-10 16:34:18

MasinAD
Member
Registered: 2023-10-24
Posts: 13

Showcasing our ticket template

I had some fun finetuning our ticket template. If anyone wants some inspiration, here it is:

<p><a href="##ticket.urlapprove##" target="_blank" rel="noopener"><strong>##ticket.action##</strong></a></p>
<p>##IFticket.storestatus=5##</p>
<div style="border: 1px solid #bfbfbf; border-radius: 4px;">
<h4>? [<a href="##ticket.urlapprove##" target="_blank" rel="noopener">##ticket.solvedate##</a>] ##IFticket.solution.author## ##ticket.solution.author## ##ENDIFticket.solution.author## ##ELSEticket.solution.author## anon ##ENDELSEticket.solution.author## (##ticket.solution.type##)</h4>
<p>##ticket.solution.description##</p>
<p><strong>##lang.ticket.autoclosewarning##</strong></p>
</div>
<p>##ENDIFticket.storestatus##</p>
<p>##FOREACHtimelineitems##</p>
<div style="border: 1px solid #bfbfbf; border-radius: 4px;">
<h4>##IFtimelineitems.type=TicketTask##?##ENDIFtimelineitems.type## ##IFtimelineitems.type=ITILFollowup## ##IFtimelineitems.position=left##?##ENDIFtimelineitems.position## ##ELSEtimelineitems.position##?##ENDELSEtimelineitems.position## ##ENDIFtimelineitems.type## [##timelineitems.date##] ##IFtimelineitems.author####timelineitems.author####ENDIFtimelineitems.author####ELSEtimelineitems.author##anon##ENDELSEtimelineitems.author##:</h4>
<p>##timelineitems.description##</p>
</div>
<p>##ENDFOREACHtimelineitems##</p>
<div style="border: 1px solid #bfbfbf; border-radius: 4px;">
<h4>✨ [##ticket.creationdate##] ##IFticket.authors## ##ticket.authors## ##ENDIFticket.authors## ##ELSEticket.authors##--##ENDELSEticket.authors## (##ticket.requesttype##):</h4>
<p>##IFticket.closedate## <strong style="color: #8f8f8f;">##lang.ticket.closedate##:</strong> ##ticket.closedate## ##ENDIFticket.closedate##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.title##:</strong> ##ticket.title##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.content##:</strong></p>
<p>##ticket.content##</p>
</div>
<p>##IFticket.storestatus=6##</p>
<div style="border: 1px solid #bfbfbf; border-radius: 4px;">
<p><strong style="color: #8f8f8f;">##lang.ticket.solvedate##:</strong> ##ticket.solvedate##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.solution.type##:</strong> ##ticket.solution.type##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.solution.description##:</strong> ##ticket.solution.description##</p>
</div>
<p>##ENDIFticket.storestatus## ##IFticket.numberofitems=0## ##ENDIFticket.numberofitems## ##ELSEticket.numberofitems##</p>
<h3>##lang.ticket.item.name##: ##ticket.numberofitems##</h3>
<div style="border: 1px solid #bfbfbf; border-radius: 4px;">##FOREACHitems##
<p>##IFticket.itemtype##<strong style="color: #8f8f8f;">##ticket.itemtype##:</strong> ##ticket.item.name##</p>
<p>##IFticket.item.model##<strong style="color: #8f8f8f;">##lang.ticket.item.model##:</strong> ##ticket.item.model## ##ENDIFticket.item.model##</p>
<p>##IFticket.item.serial##<strong style="color: #8f8f8f;">##lang.ticket.item.serial##:</strong> ##ticket.item.serial## ##ENDIFticket.item.serial##</p>
<p>##IFticket.item.otherserial##<strong style="color: #8f8f8f;">##lang.ticket.item.otherserial##:</strong> ##ticket.item.otherserial## ##ENDIFticket.item.otherserial## ##ENDIFticket.itemtype##</p>
##ENDFOREACHitems##</div>
<p>##ENDELSEticket.numberofitems##</p>
<div style="border: 1px solid #bfbfbf; border-radius: 4px;">
<p>##IFticket.assigntousers##<strong style="color: #8f8f8f;">##lang.ticket.assigntousers##:</strong> ##ticket.assigntousers## ##ENDIFticket.assigntousers##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.status##:</strong> ##ticket.status##</p>
<p>##IFticket.assigntogroups##<strong style="color: #8f8f8f;">##lang.ticket.assigntogroups##:</strong> ##ticket.assigntogroups## ##ENDIFticket.assigntogroups##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.urgency##:</strong> ##ticket.urgency## </p>
<p><strong style="color: #8f8f8f;">##lang.ticket.impact##:</strong> ##ticket.impact## </p>
<p><strong style="color: #8f8f8f;">##lang.ticket.priority##:</strong> ##ticket.priority## </p>
<p>##IFticket.user.email##<strong style="color: #8f8f8f;">##lang.ticket.user.email##:</strong> ##ticket.user.email## ##ENDIFticket.user.email##</p>
<p><strong style="color: #8f8f8f;">##lang.ticket.category##:</strong> ##IFticket.category## ##ticket.category## ##ENDIFticket.category## ##ELSEticket.category## ##lang.ticket.nocategoryassigned## ##ENDELSEticket.category##</p>
</div>

Offline

#2 2023-11-10 16:35:20

MasinAD
Member
Registered: 2023-10-24
Posts: 13

Re: Showcasing our ticket template

The little light bulb for solutions hasn't survived being posted here. It's the question mark in line 4 right after the opening <h4> tag.

Offline

#3 2023-11-29 11:08:57

mshettha
Member
Registered: 2022-10-06
Posts: 2

Re: Showcasing our ticket template

Really nice, look pretty much better than the default template.
Thank you so much for sharing.

Offline

Board footer

Powered by FluxBB