Better grouping of contact information
| | |
| | | $labels['editcontact'] = 'Edit contact'; |
| | | $labels['contacts'] = 'Contacts'; |
| | | $labels['contactproperties'] = 'Contact properties'; |
| | | $labels['personalinfo'] = 'Personal information'; |
| | | |
| | | $labels['edit'] = 'Edit'; |
| | | $labels['cancel'] = 'Cancel'; |
| | |
| | | 'info' => array( |
| | | 'name' => rcube_label('contactproperties'), |
| | | 'content' => array( |
| | | 'gender' => array('visible' => false), |
| | | 'maidenname' => array('size' => $i_size), |
| | | 'email' => array('size' => $i_size, 'visible' => true), |
| | | 'phone' => array('size' => $i_size, 'visible' => true), |
| | | 'address' => array('visible' => true), |
| | | 'birthday' => array('size' => 12), |
| | | 'anniversary' => array('size' => $i_size), |
| | | 'website' => array('size' => $i_size), |
| | | 'im' => array('size' => $i_size), |
| | | ), |
| | | ), |
| | | 'personal' => array( |
| | | 'name' => rcube_label('personalinfo'), |
| | | 'content' => array( |
| | | 'gender' => array('visible' => true), |
| | | 'maidenname' => array('size' => $i_size), |
| | | 'birthday' => array('visible' => true), |
| | | 'anniversary' => array('size' => $i_size), |
| | | 'manager' => array('size' => $i_size), |
| | | 'assistant' => array('size' => $i_size), |
| | | 'spouse' => array('size' => $i_size), |
| | |
| | | } |
| | | |
| | | // wrap rows in fieldgroup container |
| | | $content .= html::tag('fieldset', array('class' => 'contactfieldgroup contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), |
| | | $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), |
| | | ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . |
| | | $rows); |
| | | } |
| | |
| | | 'info' => array( |
| | | 'name' => rcube_label('contactproperties'), |
| | | 'content' => array( |
| | | 'gender' => array('size' => $i_size), |
| | | 'maidenname' => array('size' => $i_size), |
| | | 'email' => array('size' => $i_size, 'render_func' => 'rcmail_render_email_value'), |
| | | 'phone' => array('size' => $i_size), |
| | | 'address' => array(), |
| | | 'birthday' => array('size' => $i_size), |
| | | 'anniversary' => array('size' => $i_size), |
| | | 'website' => array('size' => $i_size, 'render_func' => 'rcmail_render_url_value'), |
| | | 'im' => array('size' => $i_size), |
| | | ), |
| | | ), |
| | | 'personal' => array( |
| | | 'name' => rcube_label('personalinfo'), |
| | | 'content' => array( |
| | | 'gender' => array('size' => $i_size), |
| | | 'maidenname' => array('size' => $i_size), |
| | | 'birthday' => array('size' => $i_size), |
| | | 'anniversary' => array('size' => $i_size), |
| | | 'manager' => array('size' => $i_size), |
| | | 'assistant' => array('size' => $i_size), |
| | | 'spouse' => array('size' => $i_size), |
| | |
| | | { |
| | | border: 0; |
| | | margin: 0.5em 0; |
| | | padding: 0.2em 2px; |
| | | } |
| | | |
| | | fieldset.contactfieldgroupmulti |
| | | { |
| | | padding: 0.5em 2px; |
| | | } |
| | | |
| | |
| | | .contactfieldgroup .row |
| | | { |
| | | position: relative; |
| | | margin-bottom: 0.4em; |
| | | margin: 0.2em 0; |
| | | } |
| | | |
| | | .contactfieldgroup .contactfieldlabel |