New View Create/Update Agent - #3611

Former-commit-id: e8c3576ca06561f5979c0151670115b697533843
This commit is contained in:
Tatiana Llorente 2019-04-17 10:35:32 +02:00
parent cfff9c065d
commit ed3155c053
3 changed files with 31 additions and 6 deletions

View File

@ -709,7 +709,9 @@ if ($config['activate_gis']) {
); );
} }
ui_toggle(html_print_table($table, true), __('Advanced options')); echo '<div class="ui_toggle">';
ui_toggle(html_print_table($table, true), __('Advanced options'), '', true, false, 'white_box white_box_opened');
echo '</div>';
unset($table); unset($table);
$table = new stdClass(); $table = new stdClass();
@ -730,7 +732,7 @@ if ($fields === false) {
foreach ($fields as $field) { foreach ($fields as $field) {
$id_custom_field = $field['id_field']; $id_custom_field = $field['id_field'];
$data[0] = '<div onclick="show_custom_field_row('.$id_custom_field.')">'; $data[0] = '<div class="field_title" onclick="show_custom_field_row('.$id_custom_field.')">';
$data[0] .= '<b>'.$field['name'].'</b>'; $data[0] .= '<b>'.$field['name'].'</b>';
$data[0] .= ui_print_help_tip( $data[0] .= ui_print_help_tip(
__('This field allows url insertion using the BBCode\'s url tag').'.<br />'.__('The format is: [url=\'url to navigate\']\'text to show\'[/url]').'.<br /><br />'.__('e.g.: [url=google.com]Google web search[/url]'), __('This field allows url insertion using the BBCode\'s url tag').'.<br />'.__('The format is: [url=\'url to navigate\']\'text to show\'[/url]').'.<br /><br />'.__('e.g.: [url=google.com]Google web search[/url]'),
@ -813,7 +815,9 @@ foreach ($fields as $field) {
} }
if (!empty($fields)) { if (!empty($fields)) {
ui_toggle(html_print_table($table, true), __('Custom fields'), '', true, false, 'white_box'); echo '<div class="ui_toggle">';
ui_toggle(html_print_table($table, true), __('Custom fields'), '', true, false, 'white_box white_box_opened');
echo '</div>';
} }
echo '<div class="action-buttons" style="width: '.$table->width.'">'; echo '<div class="action-buttons" style="width: '.$table->width.'">';

View File

@ -2454,8 +2454,7 @@ function ui_toggle($code, $name, $title='', $hidden_default=true, $return=false,
// Link to toggle // Link to toggle
$output = ''; $output = '';
$output .= '<a href="javascript:" id="tgl_ctrl_'.$uniqid.'">'.html_print_image($original, true, ['title' => $title, 'id' => 'image_'.$uniqid]).'&nbsp;&nbsp;<b>'.$name.'</b></a>'; $output .= '<a href="javascript:" id="tgl_ctrl_'.$uniqid.'">'.html_print_image($original, true, ['title' => $title, 'id' => 'image_'.$uniqid]).'&nbsp;&nbsp;<b>'.$name.'</b></a>';
$output .= '<br />'; // $output .= '<br />';
// if (!defined("METACONSOLE")) // if (!defined("METACONSOLE"))
// $output .= '<br />'; // $output .= '<br />';
// Code into a div // Code into a div

View File

@ -5154,9 +5154,13 @@ select#autorefresh_list:-internal-list-box {
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
} }
.custom_fields_table tr.datos2 td div.field_title {
padding: 10px;
}
.custom_fields_table tr.datos2 td { .custom_fields_table tr.datos2 td {
border-radius: 4px; border-radius: 4px;
padding: 10px; padding: 0px;
} }
.custom_fields_table tr.datos td { .custom_fields_table tr.datos td {
@ -5169,3 +5173,21 @@ select#autorefresh_list:-internal-list-box {
border-bottom-left-radius: 0px !important; border-bottom-left-radius: 0px !important;
border-bottom-right-radius: 0px !important; border-bottom-right-radius: 0px !important;
} }
.ui_toggle {
margin-bottom: 20px;
}
.ui_toggle > a:first-child {
background-color: #fff;
border: 1px solid #f3f3f3;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 5px;
display: block;
}
.white_box_opened {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}