@@ -29,9 +29,11 @@ App.HTML.Build.dns_form = function (options, id) {
2929 if ( App . Helpers . isEmpty ( options ) ) {
3030 tpl . set ( ':title' , 'New dns domain' ) ;
3131 tpl . set ( ':save_button' , 'ADD' ) ;
32+ tpl . set ( ':DELETE_ACTION' , '' ) ;
3233 } else {
3334 tpl . set ( ':title' , 'Edit dns domain' ) ;
3435 tpl . set ( ':save_button' , 'SAVE' ) ;
36+ tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
3537 }
3638 tpl . set ( ':id' , id || '' ) ;
3739 tpl . set ( ':DNS_DOMAIN' , options . DNS_DOMAIN || '' ) ;
@@ -55,9 +57,11 @@ App.HTML.Build.ip_form = function (options, id) {
5557 if ( App . Helpers . isEmpty ( options ) ) {
5658 tpl . set ( ':title' , 'New ip address' ) ;
5759 tpl . set ( ':save_button' , 'ADD' ) ;
60+ tpl . set ( ':DELETE_ACTION' , '' ) ;
5861 } else {
5962 tpl . set ( ':title' , 'Edit ip address' ) ;
6063 tpl . set ( ':save_button' , 'SAVE' ) ;
64+ tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
6165 }
6266 tpl . set ( ':id' , id || '' ) ;
6367 tpl . set ( ':IP_ADDRESS' , options . IP_ADDRESS || '' ) ;
@@ -84,9 +88,11 @@ App.HTML.Build.user_form = function (options, id) {
8488 if ( App . Helpers . isEmpty ( options ) ) {
8589 tpl . set ( ':title' , 'New user' ) ;
8690 tpl . set ( ':save_button' , 'ADD' ) ;
91+ tpl . set ( ':DELETE_ACTION' , '' ) ;
8792 } else {
8893 tpl . set ( ':title' , 'Edit user' ) ;
8994 tpl . set ( ':save_button' , 'SAVE' ) ;
95+ tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
9096 }
9197 options = ! App . Helpers . isEmpty ( options ) ? options : App . Empty . USER ;
9298 if ( in_edit == true ) {
@@ -95,7 +101,7 @@ App.HTML.Build.user_form = function (options, id) {
95101 $ ( [ 3 , 4 , 5 , 6 , 7 , 8 ] ) . each ( function ( i , index ) {
96102 if ( options [ 'NS' + index ] . trim ( ) != '' ) {
97103 var tpl_ns = App . Templates . get ( 'NS_INPUT' , 'user' ) ;
98- tpl_ns . set ( ':NS_LABEL' , 'NS #' + ( index ) ) ;
104+ tpl_ns . set ( ':NS_LABEL' , 'Name Server #' + ( index ) ) ;
99105 tpl_ns . set ( ':NAME' , options [ 'NS' + index ] ) ;
100106 ns [ ns . length ++ ] = tpl_ns . finalize ( ) ;
101107 }
@@ -135,9 +141,11 @@ App.HTML.Build.web_domain_form = function (options, id) {
135141 if ( App . Helpers . isEmpty ( options ) ) {
136142 tpl . set ( ':title' , 'New WEB domain' ) ;
137143 tpl . set ( ':save_button' , 'ADD' ) ;
144+ tpl . set ( ':DELETE_ACTION' , '' ) ;
138145 } else {
139146 tpl . set ( ':title' , 'Edit WEB domain' ) ;
140147 tpl . set ( ':save_button' , 'SAVE' ) ;
148+ tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
141149 }
142150 options = ! App . Helpers . isEmpty ( options ) ? options : App . Empty . WEB_DOMAIN ;
143151 if ( in_edit == true ) {
@@ -180,9 +188,11 @@ App.HTML.Build.db_form = function (options, id) {
180188 if ( App . Helpers . isEmpty ( options ) ) {
181189 tpl . set ( ':title' , 'New database' ) ;
182190 tpl . set ( ':save_button' , 'ADD' ) ;
191+ tpl . set ( ':DELETE_ACTION' , '' ) ;
183192 } else {
184193 tpl . set ( ':title' , 'Edit database "' + options . DB + '"' ) ;
185194 tpl . set ( ':save_button' , 'SAVE' ) ;
195+ tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
186196 }
187197 options = ! App . Helpers . isEmpty ( options ) ? options : App . Empty . DB ;
188198 if ( in_edit == true ) {
@@ -206,9 +216,11 @@ App.HTML.Build.cron_form = function (options, id) {
206216 if ( App . Helpers . isEmpty ( options ) ) {
207217 tpl . set ( ':title' , 'New cron job' ) ;
208218 tpl . set ( ':save_button' , 'ADD' ) ;
219+ tpl . set ( ':DELETE_ACTION' , '' ) ;
209220 } else {
210221 tpl . set ( ':title' , 'Edit cron job' ) ;
211222 tpl . set ( ':save_button' , 'SAVE' ) ;
223+ tpl . set ( ':DELETE_ACTION' , App . Templates . get ( 'DELETE_ACTION' , 'general' ) . finalize ( ) ) ;
212224 }
213225 options = ! App . Helpers . isEmpty ( options ) ? options : {
214226 DAY : '' ,
0 commit comments