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"
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"
17 ControlToValidate="Directive"
19 Text="Field required."
20 Enabled="<%=$this->getRequired() && $this->getShow()%>"