]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/DirectiveListBox.tpl
baculum: Add listbox control and use it for base and device directives
[bacula/bacula] / gui / baculum / protected / Web / Portlets / DirectiveListBox.tpl
1 <div class="line<%=!$this->display_directive ? ' hide' : '';%>">
2         <div class="text"><com:TActiveLabel ID="Label" ActiveControl.EnableUpdate="false" Visible="<%=$this->display_directive%>" />:</div>
3         <div class="field directive_value">
4                 <com:TActiveListBox ID="Directive"
5                         SelectionMode="Multiple"
6                         OnSelectedIndexChanged="saveValue"
7                         CssClass="ftype_listbox"
8                         Visible="<%=$this->display_directive%>"
9                         AutoPostBack="false"
10                         ActiveControl.EnableUpdate="false"
11                 /> <%=$this->getRequired() ? '*' : ''%>
12                 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/switch.png" class="reset_btn" onclick="document.getElementById('<%=$this->Directive->ClientID%>').value = '<%=$this->getDefaultValue() === 0 ? '' : $this->getDefaultValue()%>';" alt="<%[ Reset to default value ]%>" title="<%[ Reset to default value ]%>" />
13                 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_err.png" class="remove_btn" onclick="document.getElementById('<%=$this->Directive->ClientID%>').value = '';" alt="<%[ Remove directive ]%>" title="<%[ Remove directive ]%>" />
14                 <com:TRequiredFieldValidator
15                         ID="DirectiveValidator"
16                         ValidationGroup="Directive"
17                         Display="Dynamic"
18                         ControlToValidate="Directive"
19                         FocusOnError="true"
20                         Text="Field required."
21                         Enabled="<%=$this->getRequired() && $this->getShow()%>"
22                 />
23                 <p class="smalldesc"><%[ Use Ctrl + Mouse Click to change selection ]%></p>
24         </div>
25 </div>