queue selector written with javascript functionality
This commit is contained in:
parent
79a6c99b09
commit
341a0877ab
1 changed files with 60 additions and 1 deletions
|
@ -12,6 +12,38 @@
|
|||
<div class="row-fluid">
|
||||
<legend>Tickets</legend>
|
||||
|
||||
<div class="alert alert-info">
|
||||
Show
|
||||
<select style="width: 136px;" name="what">
|
||||
<option value="all">All</option>
|
||||
<option value="wfs">'waiting for support'</option>
|
||||
<option value="wfu">'waiting for user'</option>
|
||||
<option value="closed">'closed'</option>
|
||||
</select>
|
||||
tickets
|
||||
<select style="width: 110px;" name="how">
|
||||
<option value="all">assigned</option>
|
||||
<option value="wfs">not assigned</option>
|
||||
</select>
|
||||
to
|
||||
<select style="width: 140px;" name="who" onchange="aimedforwhochanged(this.value);">
|
||||
<option value="user">user</option>
|
||||
<option value="support_group">support group</option>
|
||||
</select>
|
||||
<span id="userList" style="display:inline;">
|
||||
<select style="width: 140px;" name="name">
|
||||
<option value="all">Quitta</option>
|
||||
<option value="wfs">Botanic</option>
|
||||
</select>
|
||||
</span>
|
||||
<span id="supportGroupList" style="display:none;">
|
||||
<select style="width: 140px;" name="name">
|
||||
<option value="all">Developers</option>
|
||||
<option value="wfs">Webteam</option>
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
|
||||
<div class="alert alert-success">
|
||||
{$success_assigned}
|
||||
|
@ -113,5 +145,32 @@
|
|||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
|
||||
|
||||
|
||||
<!----- /javascript for this page -->
|
||||
<script type="text/javascript">
|
||||
function aimedforwhochanged(value)
|
||||
{
|
||||
|
||||
if (value == "user")
|
||||
{
|
||||
//hide the supportGroupList span
|
||||
var elem = document.getElementById("supportGroupList");
|
||||
elem.style.display="none";
|
||||
var elem2 = document.getElementById("userList");
|
||||
elem2.style.display="inline";
|
||||
}
|
||||
else if(value == "support_group")
|
||||
{
|
||||
//hide the userList span
|
||||
var elem = document.getElementById("supportGroupList");
|
||||
elem.style.display= "inline";
|
||||
var elem2 = document.getElementById("userList");
|
||||
elem2.style.display="none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
|
Loading…
Reference in a new issue