projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move header() to include(/elements/header.html) so it can be changed in one place...
[freeside.git]
/
httemplate
/
view
/
svc_domain.cgi
diff --git
a/httemplate/view/svc_domain.cgi
b/httemplate/view/svc_domain.cgi
index
cd9f79d
..
f396630
100755
(executable)
--- a/
httemplate/view/svc_domain.cgi
+++ b/
httemplate/view/svc_domain.cgi
@@
-32,12
+32,12
@@
my $domain = $svc_domain->domain;
%>
%>
-<%=
header(
'Domain View', menubar(
+<%=
include("/elements/header.html",
'Domain View', menubar(
( ( $pkgnum || $custnum )
? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
)
( ( $pkgnum || $custnum )
? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
)
- : ( "
Cancel
this (unaudited) domain" =>
- "
${p}misc/cancel-unaudited.cgi?$svcnum
" )
+ : ( "
Delete
this (unaudited) domain" =>
+ "
javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum', 'Delete $domain and all records?' )
" )
),
"Main menu" => $p,
)) %>
),
"Main menu" => $p,
)) %>
@@
-50,8
+50,8
@@
Service #<%= $svcnum %>
<BR><BR><A HREF="<%= ${p} %>misc/whois.cgi?custnum=<%=$custnum%>;svcnum=<%=$svcnum%>;domain=<%=$domain%>">View whois information.</A>
<BR><BR>
<SCRIPT>
<BR><BR><A HREF="<%= ${p} %>misc/whois.cgi?custnum=<%=$custnum%>;svcnum=<%=$svcnum%>;domain=<%=$domain%>">View whois information.</A>
<BR><BR>
<SCRIPT>
- function areyousure(href) {
- if ( confirm(
"Remove this record?"
) == true )
+ function areyousure(href
, message
) {
+ if ( confirm(
message
) == true )
window.location.href = href;
}
function slave_areyousure() {
window.location.href = href;
}
function slave_areyousure() {
@@
-74,7
+74,7
@@
Service #<%= $svcnum %>
<td><%= $domain_record->recdata %>
<% unless ( $domain_record->rectype eq 'SOA' ) { %>
<td><%= $domain_record->recdata %>
<% unless ( $domain_record->rectype eq 'SOA' ) { %>
- (<A HREF="javascript:areyousure('<%=$p%>misc/delete-domain_record.cgi?<%=$domain_record->recnum%>')">delete</A>)
+ (<A HREF="javascript:areyousure('<%=$p%>misc/delete-domain_record.cgi?<%=$domain_record->recnum%>'
, 'Delete \'<%= $domain_record->reczone %> <%= $type %> <%= $domain_record->recdata %>\' ?'
)">delete</A>)
<% } %>
</td></tr>
<% } %>
<% } %>
</td></tr>
<% } %>
@@
-87,7
+87,7
@@
Service #<%= $svcnum %>
<INPUT TYPE="text" NAME="reczone">
<INPUT TYPE="hidden" NAME="recaf" VALUE="IN"> IN
<SELECT NAME="rectype">
<INPUT TYPE="text" NAME="reczone">
<INPUT TYPE="hidden" NAME="recaf" VALUE="IN"> IN
<SELECT NAME="rectype">
-<% foreach (qw( A NS CNAME MX PTR) ) { %>
+<% foreach (qw( A NS CNAME MX PTR
TXT
) ) { %>
<OPTION VALUE="<%=$_%>"><%=$_%></OPTION>
<% } %>
</SELECT>
<OPTION VALUE="<%=$_%>"><%=$_%></OPTION>
<% } %>
</SELECT>