projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make hours/input/output/total display on invoices conditional on there being any...
[freeside.git]
/
httemplate
/
edit
/
svc_forward.cgi
diff --git
a/httemplate/edit/svc_forward.cgi
b/httemplate/edit/svc_forward.cgi
index
2e6c5f1
..
2b9d35a
100755
(executable)
--- a/
httemplate/edit/svc_forward.cgi
+++ b/
httemplate/edit/svc_forward.cgi
@@
-129,15
+129,19
@@
Service: <B><%= $part_svc->svc %></B><BR><BR>
function srcchanged(what) {
if ( what.options[what.selectedIndex].value == 0 ) {
what.form.src.disabled = false;
function srcchanged(what) {
if ( what.options[what.selectedIndex].value == 0 ) {
what.form.src.disabled = false;
+ what.form.src.style.backgroundColor = "white";
} else {
what.form.src.disabled = true;
} else {
what.form.src.disabled = true;
+ what.form.src.style.backgroundColor = "lightgrey";
}
}
function dstchanged(what) {
if ( what.options[what.selectedIndex].value == 0 ) {
what.form.dst.disabled = false;
}
}
function dstchanged(what) {
if ( what.options[what.selectedIndex].value == 0 ) {
what.form.dst.disabled = false;
+ what.form.dst.style.backgroundColor = "white";
} else {
what.form.dst.disabled = true;
} else {
what.form.dst.disabled = true;
+ what.form.dst.style.backgroundColor = "lightgrey";
}
}
</SCRIPT>
}
}
</SCRIPT>
@@
-153,7
+157,7
@@
function dstchanged(what) {
<% } %>
</SELECT>
<% if ( $svc_forward->dbdef_table->column('src') ) { %>
<% } %>
</SELECT>
<% if ( $svc_forward->dbdef_table->column('src') ) { %>
-<INPUT TYPE="text" NAME="src" VALUE="<%= $src %>" <%= ( $src || !scalar(%email) ) ? '' : 'DISABLED' %>>
+<INPUT TYPE="text" NAME="src" VALUE="<%= $src %>" <%= ( $src || !scalar(%email) ) ? '' : 'DISABLED
STYLE="background-color: lightgrey"
' %>>
<% } %>
</TD></TR>
<% } %>
</TD></TR>
@@
-164,7
+168,7
@@
function dstchanged(what) {
<% } %>
<OPTION <%= $dst ? 'SELECTED' : '' %> VALUE="0">(other email address)</OPTION>
</SELECT>
<% } %>
<OPTION <%= $dst ? 'SELECTED' : '' %> VALUE="0">(other email address)</OPTION>
</SELECT>
-<INPUT TYPE="text" NAME="dst" VALUE="<%= $dst %>" <%= ( $dst || !scalar(%email) ) ? '' : 'DISABLED' %>>
+<INPUT TYPE="text" NAME="dst" VALUE="<%= $dst %>" <%= ( $dst || !scalar(%email) ) ? '' : 'DISABLED
STYLE="background-color: lightgrey"
' %>>
</TD></TR>
</TABLE>
<BR><INPUT TYPE="submit" VALUE="Submit">
</TD></TR>
</TABLE>
<BR><INPUT TYPE="submit" VALUE="Submit">