]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/Web/Portlets/DirectiveComboBox.tpl
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / protected / Web / Portlets / DirectiveComboBox.tpl
diff --git a/gui/baculum/protected/Web/Portlets/DirectiveComboBox.tpl b/gui/baculum/protected/Web/Portlets/DirectiveComboBox.tpl
new file mode 100644 (file)
index 0000000..8d67c34
--- /dev/null
@@ -0,0 +1,23 @@
+<div class="line<%=!$this->display_directive ? ' hide' : '';%>">
+       <div class="text"><com:TActiveLabel ID="Label" ActiveControl.EnableUpdate="false" Visible="<%=$this->display_directive%>" />:</div>
+       <div class="field directive_value">
+               <com:TActiveDropDownList ID="Directive"
+                       OnSelectedIndexChanged="saveValue"
+                       CssClass="ftype_combobox"
+                       Visible="<%=$this->display_directive%>"
+                       AutoPostBack="false"
+                       ActiveControl.EnableUpdate="false"
+               />
+               <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 ]%>" />
+               <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 ]%>" />
+               <com:TRequiredFieldValidator
+                       ID="DirectiveValidator"
+                       ValidationGroup="Directive"
+                       Display="Dynamic"
+                       ControlToValidate="Directive"
+                       FocusOnError="true"
+                       Text="Field required."
+                       Enabled="<%=$this->getRequired() && $this->getShow()%>"
+               />
+       </div>
+</div>