-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
supportticketsubmit-steptwo.tpl
133 lines (120 loc) · 6.13 KB
/
supportticketsubmit-steptwo.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
123
124
125
126
127
128
129
130
131
132
133
<form method="post" action="{$smarty.server.PHP_SELF}?step=3" enctype="multipart/form-data" role="form">
<div class="card">
<div class="card-body extra-padding">
<h3 class="card-title">{lang key="createNewSupportRequest"}</h3>
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<div class="row">
<div class="form-group col-md-4">
<label for="inputName">{lang key='supportticketsclientname'}</label>
<input type="text" name="name" id="inputName" value="{$name}" class="form-control{if $loggedin} disabled{/if}"{if $loggedin} disabled="disabled"{/if} />
</div>
<div class="form-group col-md-5">
<label for="inputEmail">{lang key='supportticketsclientemail'}</label>
<input type="email" name="email" id="inputEmail" value="{$email}" class="form-control{if $loggedin} disabled{/if}"{if $loggedin} disabled="disabled"{/if} />
</div>
</div>
<div class="row">
<div class="form-group col-md-10">
<label for="inputSubject">{lang key='supportticketsticketsubject'}</label>
<input type="text" name="subject" id="inputSubject" value="{$subject}" class="form-control" />
</div>
</div>
<div class="row">
<div class="form-group col-md-3">
<label for="inputDepartment">{lang key='supportticketsdepartment'}</label>
<select name="deptid" id="inputDepartment" class="form-control" onchange="refreshCustomFields(this)">
{foreach $departments as $department}
<option value="{$department.id}"{if $department.id eq $deptid} selected="selected"{/if}>
{$department.name}
</option>
{/foreach}
</select>
</div>
{if $relatedservices}
<div class="form-group col-md-5">
<label for="inputRelatedService">{lang key='relatedservice'}</label>
<select name="relatedservice" id="inputRelatedService" class="form-control">
<option value="">{lang key='none'}</option>
{foreach $relatedservices as $relatedservice}
<option value="{$relatedservice.id}">
{$relatedservice.name} ({$relatedservice.status})
</option>
{/foreach}
</select>
</div>
{/if}
<div class="form-group col-md-3">
<label for="inputPriority">{lang key='supportticketspriority'}</label>
<select name="urgency" id="inputPriority" class="form-control">
<option value="High"{if $urgency eq "High"} selected="selected"{/if}>
{lang key='supportticketsticketurgencyhigh'}
</option>
<option value="Medium"{if $urgency eq "Medium" || !$urgency} selected="selected"{/if}>
{lang key='supportticketsticketurgencymedium'}
</option>
<option value="Low"{if $urgency eq "Low"} selected="selected"{/if}>
{lang key='supportticketsticketurgencylow'}
</option>
</select>
</div>
</div>
<div class="form-group">
<label for="inputMessage">{lang key='contactmessage'}</label>
<textarea name="message" id="inputMessage" rows="12" class="form-control markdown-editor" data-auto-save-name="client_ticket_open">{$message}</textarea>
</div>
<div class="form-group">
<label for="inputAttachments">{lang key='supportticketsticketattachments'}</label>
<div class="input-group mb-1 attachment-group">
<div class="custom-file">
<label class="custom-file-label text-truncate" for="inputAttachment1" data-default="Choose file">
{lang key='chooseFile'}
</label>
<input type="file" class="custom-file-input" name="attachments[]" id="inputAttachment1">
</div>
<div class="input-group-append">
<button class="btn btn-default" type="button" id="btnTicketAttachmentsAdd">
<i class="fas fa-plus"></i>
{lang key='addmore'}
</button>
</div>
</div>
<div class="file-upload w-hidden">
<div class="input-group mb-1 attachment-group">
<div class="custom-file">
<label class="custom-file-label text-truncate">
{lang key='chooseFile'}
</label>
<input type="file" class="custom-file-input" name="attachments[]">
</div>
</div>
</div>
<div id="fileUploadsContainer"></div>
<div class="text-muted">
<small>{lang key='supportticketsallowedextensions'}: {$allowedfiletypes} ({lang key="maxFileSize" fileSize="$uploadMaxFileSize"})</small>
</div>
</div>
<div id="customFieldsContainer">
{include file="$template/supportticketsubmit-customfields.tpl"}
</div>
<div id="autoAnswerSuggestions" class="w-hidden"></div>
<div class="text-center margin-bottom">
{include file="$template/includes/captcha.tpl"}
</div>
<p class="text-center">
<button type="submit" id="openTicketSubmit" class="btn btn-primary{$captcha->getButtonClass($captchaForm)}">
{lang key='supportticketsticketsubmit'}
</button>
<a href="supporttickets.php" class="btn btn-default">{lang key='cancel'}</a>
</p>
</div>
</div>
</form>
{if $kbsuggestions}
<script>
jQuery(document).ready(function() {
getTicketSuggestions();
});
</script>
{/if}