function _html(templateJSON, resourceType, tableName, modify) {
    if (!modify) {
      modify = true;
    }
    var str =
      '<table id="' + resourceType.toLowerCase() + '_template_table" class="dataTable configuration_attrs">\
        <thead>\
          <tr>\
            <th colspan="3">' +
           tableName +
          '</th>\
          </tr>\
         </thead>' +
       fromJSONtoHTMLTable(templateJSON, resourceType, undefined, undefined, modify);
    if (modify) {
       str += '<tr>\
           <td class="key_td"><input type="text" name="new_key" id="new_key" /></td>\
           <td class="value_td"><textarea type="text" name="new_value" id="new_value"></textarea></td>\
           <td class="text-right"><button type="button" id="button_add_value" class="button small secondary"><i class="fas fa-lg fa-plus-circle"></i></button>\</td>\
         </tr>';
    }
    str += '</table>'

    return str;
  }
/*
    Generate the table HTML with the template of the resource and an edit icon
    @param {Object} templateJSON Resource template (i.e: ZONE.TEMPLATE, IMAGE.TEMPLATE...)
    @param {String} resourceType Resource type (i.e: Zone, Host, Image...)
    @param {String} tableName Header of the table (i.e: Locale.tr("Attributes"))
    @returns {String} HTML table
   */
Generate the table HTML with the template of the resource and an edit icon
Generate the table HTML with the template of the resource and an edit icon
function _html(templateJSON, resourceType, tableName, modify) {
    if (!modify) {
      modify = true;
    }
    var str =
      '<table id="' + resourceType.toLowerCase() + '_template_table" class="dataTable configuration_attrs">\
        <thead>\
          <tr>\
            <th colspan="3">' +
           tableName +
          '</th>\
          </tr>\
         </thead>' +
       fromJSONtoHTMLTable(templateJSON, resourceType, undefined, undefined, modify);
    if (modify) {
       str += '<tr>\
           <td class="key_td"><input type="text" name="new_key" id="new_key" /></td>\
           <td class="value_td"><textarea type="text" name="new_value" id="new_value"></textarea></td>\
           <td class="text-right"><button type="button" id="button_add_value" class="button small secondary"><i class="fas fa-lg fa-plus-circle"></i></button>\</td>\
         </tr>';
    }
    str += '</table>'
    return str;
  }
function _html ( templateJSON , resourceType , tableName , modify ) { if ( ! modify ) { modify = true ; } var str = '<table id="' + resourceType . toLowerCase ( ) + '_template_table" class="dataTable configuration_attrs">\
        <thead>\
          <tr>\
            <th colspan="3">' + tableName + '</th>\
          </tr>\
         </thead>' + fromJSONtoHTMLTable ( templateJSON , resourceType , undefined , undefined , modify ) ; if ( modify ) { str += '<tr>\
           <td class="key_td"><input type="text" name="new_key" id="new_key" /></td>\
           <td class="value_td"><textarea type="text" name="new_value" id="new_value"></textarea></td>\
           <td class="text-right"><button type="button" id="button_add_value" class="button small secondary"><i class="fas fa-lg fa-plus-circle"></i></button>\</td>\
         </tr>' ; } str += '</table>' return str ; }
Generate the table HTML with the template of the resource and an edit icon
Generate the table HTML with the template of the resource and an edit icon