]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/DirectiveText.tpl
baculum: Add required config fields asterisk mark
[bacula/bacula] / gui / baculum / protected / Web / Portlets / DirectiveText.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:TActiveTextBox ID="Directive"
5                         OnTextChanged="saveValue"
6                         CssClass="ftype_textbox"
7                         Visible="<%=$this->display_directive%>"
8                         ActiveControl.EnableUpdate="false"
9                         AutoTrim="true"
10                 /> <%=$this->getRequired() ? '*' : ''%>
11                 <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 ]%>" />
12                 <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 ]%>" />
13                 <com:TRequiredFieldValidator
14                         ID="DirectiveValidator"
15                         ValidationGroup="Directive"
16                         Display="Dynamic"
17                         ControlToValidate="Directive"
18                         FocusOnError="true"
19                         Text="Field required."
20                         Enabled="<%=$this->getRequired() && $this->getShow()%>"
21                 />
22         </div>
23 </div>