]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Add required config fields asterisk mark
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 21 Nov 2017 19:29:23 +0000 (20:29 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 9 Dec 2017 10:58:55 +0000 (11:58 +0100)
gui/baculum/protected/Web/Portlets/DirectiveComboBox.tpl
gui/baculum/protected/Web/Portlets/DirectiveInteger.tpl
gui/baculum/protected/Web/Portlets/DirectiveText.tpl
gui/baculum/protected/Web/Portlets/DirectiveTimePeriod.tpl

index 8d67c3442cd48713c413751f2c6002fb5baeaf3c..e539ab771f173b973fec5247e4207ed5b0b62010 100644 (file)
@@ -7,7 +7,7 @@
                        Visible="<%=$this->display_directive%>"
                        AutoPostBack="false"
                        ActiveControl.EnableUpdate="false"
-               />
+               /> <%=$this->getRequired() ? '*' : ''%>
                <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
index 9fdc99ed42f609a8dde6a7d0b77c3748ac3da07a..484c00247a5d6f6ba8571442681d18743482bc5c 100644 (file)
@@ -7,7 +7,7 @@
                        Visible="<%=$this->display_directive%>"
                        ActiveControl.EnableUpdate="false"
                        AutoTrim="true"
-               />
+               /> <%=$this->getRequired() ? '*' : ''%>
                <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
index 5eba0c1bf7e67f45f556de2f6b183795d314ad5e..7e93923e04b5507f1c954c82718c392cbd5452df 100644 (file)
@@ -7,7 +7,7 @@
                        Visible="<%=$this->display_directive%>"
                        ActiveControl.EnableUpdate="false"
                        AutoTrim="true"
-               />
+               /> <%=$this->getRequired() ? '*' : ''%>
                <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
index 0cc76c1a2d70bb9ca8deb16d389e0868ed60e43e..df9fab675e1b5444d3c37b762cb54564548f01b4 100644 (file)
@@ -13,7 +13,7 @@
                        DataValueField="format"
                        Visible="<%=$this->display_directive%>"
                        ActiveControl.EnableUpdate="false"
-               />
+               /> <%=$this->getRequired() ? '*' : ''%>
                <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/switch.png" class="reset_btn" onclick="var ftime = Units.format_time_period(parseInt('<%=$this->getDefaultValue()%>', 10), 'second'); document.getElementById('<%=$this->Directive->ClientID%>').value = ftime.value; document.getElementById('<%=$this->TimeFormat->ClientID%>').value = ftime.format;" 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