"+ttl_options[i][1]+"";if(ttl_options[i][0]==aData[3]){ttl_not_found=false;}}
if(ttl_not_found){ttl_opts+="";}
-jqTds[0].innerHTML='';jqTds[1].innerHTML='';jqTds[2].innerHTML='';jqTds[3].innerHTML='';jqTds[4].innerHTML='';jqTds[5].innerHTML='';jqTds[6].innerHTML='';if(aData[2]=='Active'){isDisabled='false';}
+jqTds[0].innerHTML='';jqTds[1].innerHTML='';jqTds[2].innerHTML='';jqTds[3].innerHTML='';jqTds[4].innerHTML='';jqTds[5].innerHTML='';jqTds[6].innerHTML='';jqTds[7].innerHTML='';if(aData[2]=='Active'){isDisabled='false';}
SelectElement('record_type',aData[1]);SelectElement('record_status',isDisabled);SelectElement('record_ttl',aData[3]);}
function SelectElement(elementID,valueToSelect)
{var element=document.getElementById(elementID);element.value=valueToSelect;}
diff --git a/powerdnsadmin/templates/domain.html b/powerdnsadmin/templates/domain.html
index 341dda0..5f3a3d8 100644
--- a/powerdnsadmin/templates/domain.html
+++ b/powerdnsadmin/templates/domain.html
@@ -43,6 +43,7 @@
Status |
TTL |
Data |
+ Comment |
Edit |
Delete |
@@ -65,24 +66,28 @@
{{ record.data }}
|
+
+ {{ record.comment }}
+ |
{% if domain.type != 'Slave' %}
- {% if record.is_allowed_edit() %}
-
- {% else %}
-
- {% endif %}
+ {% if record.is_allowed_edit() %}
+
+ {% else %}
+
+ {% endif %}
|
- {% if record.is_allowed_delete() %}
-
- {% endif %}
+ {% if record.is_allowed_delete() %}
+
+ {% endif %}
+ |
{% else %}
|
-
+
|
{% endif %}
@@ -133,20 +138,20 @@
"columnDefs": [
{
type: 'natural',
- targets: [0, 4]
+ targets: [0, 5]
},
{
// hidden column so that we can add new records on top
- // regardless of whatever sorting is done
+ // regardless of whatever sorting is done. See orderFixed
visible: false,
- targets: [ 7 ]
+ targets: [ 8 ]
},
{
className: "length-break",
- targets: [ 4 ]
+ targets: [ 5 ]
}
],
- "orderFixed": [[7, 'asc']]
+ "orderFixed": [[8, 'asc']]
});
// handle delete button
@@ -238,7 +243,7 @@
// add new row
var default_type = records_allow_edit[0]
- var nRow = jQuery('#tbl_records').dataTable().fnAddData(['', default_type, 'Active', 3600, '', '', '', '0']);
+ var nRow = jQuery('#tbl_records').dataTable().fnAddData(['', default_type, 'Active', 3600, '', '', '', '', '0']);
editRow($("#tbl_records").DataTable(), nRow);
document.getElementById("edit-row-focus").focus();
nEditing = nRow;
diff --git a/powerdnsadmin/templates/template_edit.html b/powerdnsadmin/templates/template_edit.html
index 8706563..8c22ca9 100644
--- a/powerdnsadmin/templates/template_edit.html
+++ b/powerdnsadmin/templates/template_edit.html
@@ -41,6 +41,7 @@
Status |
TTL |
Data |
+ Comment |
Edit |
Delete |
ID |
@@ -64,6 +65,9 @@
{{ record.data }}
|
+
+ {{ record.comment }}
+ |
|