-
Notifications
You must be signed in to change notification settings - Fork 279
/
ticketfeedback.tpl
122 lines (98 loc) · 4.44 KB
/
ticketfeedback.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{if $stillopen}
{include file="$template/includes/alert.tpl" type="warning" msg=$LANG.feedbackclosed textcenter=true}
<p class="text-center">
<a href="clientarea.php" class="btn btn-primary">{$LANG.returnclient}</a>
</p>
{elseif $feedbackdone}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.feedbackprovided textcenter=true}
<p class="text-center">{$LANG.feedbackthankyou}</p>
<p class="text-center">
<a href="clientarea.php" class="btn btn-primary">{$LANG.returnclient}</a>
</p>
{elseif $success}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.feedbackreceived textcenter=true}
<p class="text-center">{$LANG.feedbackthankyou}</p>
<p class="text-center">
<a href="clientarea.php" class="btn btn-primary">{$LANG.returnclient}</a>
</p>
{else}
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<p>{$LANG.feedbackdesc}</p>
<p class="text-center"><a href="viewticket.php?tid={$tid}&c={$c}" class="btn btn-success">{$LANG.feedbackclickreview} <i class="fas fa-arrow-right"> </i></a></p>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<table class="table table-striped">
<tr>
<td>{$LANG.feedbackopenedat}:</td>
<td><strong>{$opened}</strong></td>
</tr>
<tr>
<td>{$LANG.feedbacklastreplied}:</td>
<td><strong>{$lastreply}</strong></td>
</tr>
<tr>
<td>{$LANG.feedbackstaffinvolved}:</td>
<td><strong>{if $staffinvolvedtext}{$staffinvolvedtext}{else}{$LANG.none}{/if}</strong></td>
</tr>
<tr>
<td>{$LANG.feedbacktotalduration}:</td>
<td><strong>{$duration}</strong></td>
</tr>
</table>
</div>
</div>
<form method="post" action="{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&feedback=1">
<input type="hidden" name="validate" value="true" />
{foreach from=$staffinvolved key=staffid item=staff}
<div class="ticketfeedbackstaffcont">
<p>{$LANG.feedbackpleaserate1} <strong>{$staff}</strong> {$LANG.feedbackhandled}:</p>
<table class="table text-center">
<thead>
<tr>
<td>{$LANG.feedbackworst}</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>{$LANG.feedbackbest}</td>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
{foreach from=$ratings item=rating}
<td><input type="radio" name="rate[{$staffid}]" value="{$rating}"{if $rate.$staffid eq $rating} checked{/if} /></td>
{/foreach}
<td> </td>
</tr>
</tbody>
</table>
<p>{$LANG.feedbackpleasecomment1} <strong>{$staff}</strong> {$LANG.feedbackhandled}.</p>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<textarea name="comments[{$staffid}]" rows="4" class="form-control">{$comments.$staffid}</textarea>
</div>
</div>
</div>
{/foreach}
<p>{$LANG.feedbackimprove}</p>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<textarea name="comments[generic]" rows="4" class="form-control">{$comments.generic}</textarea>
</div>
</div>
<br />
<div class="form-group text-center">
<input class="btn btn-primary" type="submit" name="save" value="{$LANG.clientareasavechanges}" />
<input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
</div>
</form>
{/if}