summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-21 17:41:05 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-21 17:41:05 +0000
commit159ffcf31fbb32251229169a1de7095ac2bc5874 (patch)
tree4bc168bcc711cb3d5b9e6ebebfafe990499cda17 /roundcubemail/program/steps
parentb066ff00afcb4bc9ea0493882c931908f4c57f81 (diff)
Better grouping of contact information
git-svn-id: https://svn.roundcube.net/trunk@4441 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/addressbook/edit.inc13
-rw-r--r--roundcubemail/program/steps/addressbook/func.inc2
-rw-r--r--roundcubemail/program/steps/addressbook/show.inc19
3 files changed, 22 insertions, 12 deletions
diff --git a/roundcubemail/program/steps/addressbook/edit.inc b/roundcubemail/program/steps/addressbook/edit.inc
index 747e12a3f..004267961 100644
--- a/roundcubemail/program/steps/addressbook/edit.inc
+++ b/roundcubemail/program/steps/addressbook/edit.inc
@@ -95,15 +95,20 @@ function rcmail_contact_editform($attrib)
'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),
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc
index e9b3dc8f2..900d4a8d5 100644
--- a/roundcubemail/program/steps/addressbook/func.inc
+++ b/roundcubemail/program/steps/addressbook/func.inc
@@ -497,7 +497,7 @@ function rcmail_contact_form($form, $record, $attrib = null)
}
// 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);
}
diff --git a/roundcubemail/program/steps/addressbook/show.inc b/roundcubemail/program/steps/addressbook/show.inc
index eb26450e6..4823707b2 100644
--- a/roundcubemail/program/steps/addressbook/show.inc
+++ b/roundcubemail/program/steps/addressbook/show.inc
@@ -93,18 +93,23 @@ function rcmail_contact_details($attrib)
'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),
- 'manager' => array('size' => $i_size),
- 'assistant' => array('size' => $i_size),
- 'spouse' => 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),
),
),
);