From 187968d472a0187a170d3ba10996091cfcc2ba5f Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Fri, 5 Jun 2020 23:33:34 +0200 Subject: [PATCH] WebUI: Expose TTL of DNS records Fixes: https://pagure.io/freeipa/issue/3827 Reviewed-By: Alexander Bokovoy --- install/ui/src/freeipa/dns.js | 18 ++++++++++++++++++ ipaserver/plugins/internal.py | 1 + 2 files changed, 19 insertions(+) diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js index 7c4c284ca..ab1e59fc1 100644 --- a/install/ui/src/freeipa/dns.js +++ b/install/ui/src/freeipa/dns.js @@ -1330,6 +1330,12 @@ return { name: 'idnsname', other_entity: 'host', widget: 'identity.idnsname' + }, + { + $type: 'text', + name: 'dnsttl', + measurement_unit: 'seconds', + widget: 'record_settings.dnsttl' } ], widgets:[ @@ -1345,6 +1351,18 @@ return { label: '@mo-param:dnsrecord:idnsname:label' } ] + }, + { + name: 'record_settings', + label: '@i18n:details.record', + $type: 'details_section', + widgets: [ + { + $type: 'text', + name: 'dnsttl', + label: '@mo-param:dnsrecord:dnsttl:label' + } + ] } ] } diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 329fbd7b5..5f2b1fdc2 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -251,6 +251,7 @@ class i18n_messages(Command): "expand_all": _("Expand All"), "general": _("General"), "identity": _("Identity Settings"), + "record": _("Record Settings"), "settings": _("${entity} ${primary_key} Settings"), "to_top": _("Back to Top"), "updated": _("${entity} ${primary_key} updated"),