summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/SelectCustomerClass
blob: 1a03cba8f189f2841167b10726b80edd865afa3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
% return if ($RT::URI::freeside::IntegrationType ne 'Internal');
<select name="<%$Name%>">
% if ($ShowNullOption) {
  <option value="">-</option>
% }
% for my $class (qsearch('cust_class', {'disabled' => ''})) {
  <option value="<%$class->classnum%>" <% 
  $class->classnum == $Default||'' ? 'selected' : ''%>
  ><%$class->classname%></option>
% }
</select>
<%init></%init>
<%args>
$ShowNullOption => 1
$Name => undef
$Default => 0
</%args>