-
-
Save dmamolina/adb3cf0b7a436018be06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js | |
index 697c2b4..742b196 100644 | |
--- a/src/sunstone/public/js/sunstone-util.js | |
+++ b/src/sunstone/public/js/sunstone-util.js | |
@@ -1779,18 +1779,20 @@ function convert_template_to_string(template_json,unshown_values) | |
// Create the extended template table (with listeners) | |
function insert_extended_template_table(template_json,resource_type,resource_id,table_name,unshown_values) | |
{ | |
- var str = '<table id="'+resource_type.toLowerCase()+'_template_table" class="info_table twelve datatable extended_table">\ | |
+ var str = '<table id="'+resource_type.toLowerCase()+'_template_table" class="info_table twelve datatable extended_table" style="table-layout: fixed;">\ | |
<thead>\ | |
<tr>\ | |
- <th colspan="4">' + | |
+ <th style="width:80%" colspan="2">' + | |
table_name + | |
'</th>\ | |
+ <th style="width:10%"></th>\ | |
+ <th style="width:10%"></th>\ | |
</tr>\ | |
</thead>\ | |
<tr>\ | |
- <td class="key_td"><input type="text" name="new_key" id="new_key" /></td>\ | |
- <td class="value_td"><input type="text" name="new_value" id="new_value" /></td>\ | |
- <td colspan="2" class=""><button type="button" id="button_add_value" class="button small secondary">'+tr("Add")+'</button>\</td>\ | |
+ <td style="overflow: hidden;" class="key_td"><input type="text" name="new_key" id="new_key" /></td>\ | |
+ <td style="overflow: hidden;" class="value_td"><input type="text" name="new_value" id="new_value" /></td>\ | |
+ <td style="overflow: hidden;" colspan="2" class=""><button type="button" id="button_add_value" class="button small secondary">'+tr("Add")+'</button></td>\ | |
</tr>' + fromJSONtoHTMLTable(template_json, | |
resource_type, | |
resource_id) + | |
@@ -2030,9 +2032,9 @@ function insert_extended_template_table(template_json,resource_type,resource_id, | |
$(this).parent().parent().after('<tr>\ | |
- <td class="key_td"><input type="text" style="text-align:center" name="new_key_vectorial" id="new_key_vectorial" /></td>\ | |
- <td class="value_td"><input type="text" name="new_value" id="new_value_vectorial" /></td>\ | |
- <td class=""><button class="'+vectorial_key+" "+ocurrence+'" id="button_add_value_vectorial">'+tr("Add")+'</button>\</td>\ | |
+ <td style="overflow: hidden;" class="key_td"><input type="text" style="text-align:center" name="new_key_vectorial" id="new_key_vectorial" /></td>\ | |
+ <td style="overflow: hidden;" class="value_td"><input type="text" name="new_value" id="new_value_vectorial" /></td>\ | |
+ <td style="overflow: hidden;" class=""><button class="'+vectorial_key+" "+ocurrence+'" id="button_add_value_vectorial">'+tr("Add")+'</button>\</td>\ | |
</tr>'); | |
} | |
}); | |
@@ -2138,14 +2140,14 @@ function fromJSONtoHTMLRow(field,value,resource_type,resource_id, vectorial_key, | |
if (typeof current_value == 'object') | |
{ | |
str += '<tr id="'+resource_type.toLowerCase()+'_template_table_'+field+'">\ | |
- <td class="key_td key_vectorial_td">'+tr(field)+'</td>\ | |
- <td class="value_vectorial_td"></td>\ | |
- <td>\ | |
+ <td class="key_td key_vectorial_td" style="overflow: hidden;">'+tr(field)+'</td>\ | |
+ <td class="value_vectorial_td" style="overflow: hidden;"></td>\ | |
+ <td style="overflow: hidden;">\ | |
<div id="div_add_vectorial">\ | |
<a id="div_add_vectorial_'+field+'" class="add_vectorial_a ocurrence_'+it+' vectorial_key_'+field+'" href="#"><i class="icon-plus-sign"/></a>\ | |
</div>\ | |
</td>\ | |
- <td>\ | |
+ <td style="overflow: hidden;">\ | |
<div id="div_minus">\ | |
<a id="div_minus_'+field+'" class="remove_vectorial_x ocurrence_'+it+'" href="#"><i class="icon-edit"/><i class="icon-trash"/></a>\ | |
</div>\ | |
@@ -2221,14 +2223,14 @@ function fromJSONtoHTMLRow(field,value,resource_type,resource_id, vectorial_key, | |
else // or, just a single value | |
{ | |
str += '<tr>\ | |
- <td class="key_td">'+tr(field)+'</td>\ | |
- <td class="value_td" id="value_td_input_'+field+'">'+value+'</td>\ | |
- <td>\ | |
+ <td style="overflow: hidden;" class="key_td">'+tr(field)+'</td>\ | |
+ <td style="overflow: hidden;" class="value_td" id="value_td_input_'+field+'">'+value+'</td>\ | |
+ <td style="overflow: hidden;">\ | |
<div id="div_edit">\ | |
<a id="div_edit_'+field+'" class="edit_e'+ocurrence_str+'" href="#"><i class="icon-edit"/></a>\ | |
</div>\ | |
</td>\ | |
- <td>\ | |
+ <td style="overflow: hidden;"> \ | |
<div id="div_minus">\ | |
<a id="div_minus_'+field+'" class="remove_x'+ocurrence_str+'" href="#"><i class="icon-trash"/></a>\ | |
</div>\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment