diff --git a/app/templates/domain.html b/app/templates/domain.html
index eeb4c27..af6b30e 100644
--- a/app/templates/domain.html
+++ b/app/templates/domain.html
@@ -265,7 +265,37 @@
$(document.body).on("focus", "#current_edit_record_data", function (e) {
var record_type = $(this).parents("tr").find('#record_type').val();
var record_data = $(this);
- if (record_type == "MX") {
+ if (record_type == "CAA") {
+ var modal = $("#modal_custom_record");
+ if (record_data.val() == "") {
+ var form = " \
+ \
+ \
+ \
+ \
+ \
+ ";
+ } else {
+ var parts = record_data.val().split(" ");
+ var form = " \
+ \
+ \
+ \
+ \
+ \
+ ";
+ }
+ modal.find('.modal-body p').html(form);
+ modal.find('#button_save').click(function() {
+ caa_flag = modal.find('#caa_flag').val();
+ caa_tag = modal.find('#caa_tag').val();
+ caa_value = modal.find('#caa_value').val();
+ data = caa_flag + " " + caa_tag + " " + '"' + caa_value + '"';
+ record_data.val(data);
+ modal.modal('hide');
+ })
+ modal.modal('show');
+ } else if (record_type == "MX") {
var modal = $("#modal_custom_record");
if (record_data.val() == "") {
var form = " \