diff --git a/dns/static/dns/dnsV2.js b/dns/static/dns/dnsV2.js index e281cdcfe..db8b6abb0 100644 --- a/dns/static/dns/dnsV2.js +++ b/dns/static/dns/dnsV2.js @@ -1274,4 +1274,23 @@ newapp.controller('addModifyDNSRecordsV2', function ($scope, $http) { } -); \ No newline at end of file +); +var dnsTabButton = document.getElementById("dns_tab_button"); +var apiTabButton = document.getElementById("api_tab_button"); +function changeBackgroundColor(button) { + var allButtons = document.querySelectorAll('.flex li'); + allButtons.forEach(function (btn) { + btn.classList.remove('bg-orange-400','text-white', 'show'); + btn.classList.add('bg-white'); + }); + + button.classList.add('bg-orange-400','text-white', 'show'); +} + +dnsTabButton.addEventListener("click", function () { + changeBackgroundColor(dnsTabButton); +}); + +apiTabButton.addEventListener("click", function () { + changeBackgroundColor(apiTabButton); +}); diff --git a/dns/templates/dns/addDeleteDNSRecordsCloudFlareV2.html b/dns/templates/dns/addDeleteDNSRecordsCloudFlareV2.html index f636d8242..e6f2ed385 100644 --- a/dns/templates/dns/addDeleteDNSRecordsCloudFlareV2.html +++ b/dns/templates/dns/addDeleteDNSRecordsCloudFlareV2.html @@ -26,54 +26,501 @@ {% else %} -
Add Records
-
+ {% if not CloudFlare %}
+ CloudFlare Email
+API Token
+Sync local Records to CloudFlare
+Add Records
+
+ CloudFlare Email
+Select Domain
+CloudFlare Email
+API Token
+Sync local Records to CloudFlare
+API Token
+Sync local Records to CloudFlare
-{% trans "Cannot fetch records. Error message:" %}{$ errorMessage $}
+{% trans "Cannot add record. Error message: " %}{$ errorMessage $}
+{% trans "Records successfully fetched for" %} {$ domainFeteched + $}
+{% trans "Record Successfully Deleted" %}
+{% trans "Cannot delete record. Error message:" %} {$ errorMessage $}
+{% trans "Record Successfully Added." %}
+{% trans "Could not connect to server. Please refresh this page." %}
+