|
56 | 56 | $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete |
57 | 57 | $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete |
58 | 58 |
|
| 59 | +$form["tabs"]['dns_records'] = array ( |
| 60 | + 'title' => "Records", |
| 61 | + 'width' => 100, |
| 62 | + 'template' => "templates/dns_records_edit.htm", |
| 63 | + 'fields' => array ( |
| 64 | + //################################# |
| 65 | + // Begin Datatable fields |
| 66 | + //################################# |
| 67 | + |
| 68 | + //################################# |
| 69 | + // END Datatable fields |
| 70 | + //################################# |
| 71 | + ), |
| 72 | + 'plugins' => array ( |
| 73 | + 'dns_records' => array ( |
| 74 | + 'class' => 'plugin_listview', |
| 75 | + 'options' => array( |
| 76 | + 'listdef' => 'list/dns_a.list.php', |
| 77 | + 'sqlextwhere' => "zone = ".@$app->functions->intval(@$_REQUEST['id']), |
| 78 | + 'sql_order_by' => "ORDER BY type, name" |
| 79 | + ) |
| 80 | + ) |
| 81 | + ) |
| 82 | +); |
| 83 | + |
59 | 84 | $form["tabs"]['dns_soa'] = array ( |
60 | | - 'title' => "DNS Zone", |
| 85 | + 'title' => "Zone settings", |
61 | 86 | 'width' => 100, |
62 | 87 | 'template' => "templates/dns_soa_edit.htm", |
63 | 88 | 'fields' => array ( |
|
303 | 328 | ) |
304 | 329 | ); |
305 | 330 |
|
306 | | -$form["tabs"]['dns_records'] = array ( |
307 | | - 'title' => "Records", |
308 | | - 'width' => 100, |
309 | | - 'template' => "templates/dns_records_edit.htm", |
310 | | - 'fields' => array ( |
311 | | - //################################# |
312 | | - // Begin Datatable fields |
313 | | - //################################# |
314 | | - |
315 | | - //################################# |
316 | | - // END Datatable fields |
317 | | - //################################# |
318 | | - ), |
319 | | - 'plugins' => array ( |
320 | | - 'dns_records' => array ( |
321 | | - 'class' => 'plugin_listview', |
322 | | - 'options' => array( |
323 | | - 'listdef' => 'list/dns_a.list.php', |
324 | | - 'sqlextwhere' => "zone = ".@$app->functions->intval(@$_REQUEST['id']), |
325 | | - 'sql_order_by' => "ORDER BY type, name" |
326 | | - ) |
327 | | - ) |
328 | | - ) |
329 | | -); |
330 | | - |
331 | 331 | // show update acl to admins only. |
332 | 332 | if(!$app->auth->is_admin()) unset($form["tabs"]['dns_soa']['fields']['update_acl']); |
333 | 333 |
|
|
0 commit comments