Add more width to select tags in filters events and truncate name. Tiquet: #2015
This commit is contained in:
parent
b84b508b48
commit
47a6c973d1
|
@ -304,17 +304,17 @@ $tag_with_temp = array();
|
||||||
$tag_without_temp = array();
|
$tag_without_temp = array();
|
||||||
foreach ($tags as $id_tag => $tag) {
|
foreach ($tags as $id_tag => $tag) {
|
||||||
if (array_search($id_tag, $tag_with) === false) {
|
if (array_search($id_tag, $tag_with) === false) {
|
||||||
$tags_select_with[$id_tag] = $tag;
|
$tags_select_with[$id_tag] = ui_print_truncate_text ($tag, 16, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$tag_with_temp[$id_tag] = $tag;
|
$tag_with_temp[$id_tag] = ui_print_truncate_text ($tag, 16, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_search($id_tag, $tag_without) === false) {
|
if (array_search($id_tag, $tag_without) === false) {
|
||||||
$tags_select_without[$id_tag] = $tag;
|
$tags_select_without[$id_tag] = ui_print_truncate_text ($tag, 16, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$tag_without_temp[$id_tag] = $tag;
|
$tag_without_temp[$id_tag] = ui_print_truncate_text ($tag, 16, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -374,23 +374,13 @@ if (defined('METACONSOLE')) {
|
||||||
$tabletags_without->styleTable = 'border: 0px;';
|
$tabletags_without->styleTable = 'border: 0px;';
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
if (!defined("METACONSOLE"))
|
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
|
||||||
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
|
true, true, true, '', false, 'width: 200px; height: 70px;') . '<br>';
|
||||||
true, true, true, '', false, 'width: 120px; height: 70px;') . '<br>';
|
|
||||||
else
|
|
||||||
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
|
|
||||||
true, true, true, '', false, 'width: auto; height: 70px;') . '<br>';
|
|
||||||
|
|
||||||
$data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_without', 'style' => 'cursor: pointer;', 'title' => __('Add')));
|
$data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_without', 'style' => 'cursor: pointer;', 'title' => __('Add')));
|
||||||
$data[1] .= html_print_input_hidden('tag_without', $tag_without_base64, true);
|
$data[1] .= html_print_input_hidden('tag_without', $tag_without_base64, true);
|
||||||
$data[1] .= '<br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_without', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
|
$data[1] .= '<br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_without', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
|
||||||
|
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
|
||||||
if (!defined("METACONSOLE"))
|
0, true, true, true, '', false, "width: 200px; height: 70px;");
|
||||||
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
|
|
||||||
0, true, true, true, '', false, "width: 120px; height: 70px;");
|
|
||||||
else
|
|
||||||
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
|
|
||||||
0, true, true, true, '', false, "width: auto; height: 70px;");
|
|
||||||
$tabletags_without->data[] = $data;
|
$tabletags_without->data[] = $data;
|
||||||
$tabletags_without->rowclass[] = '';
|
$tabletags_without->rowclass[] = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue