summaryrefslogtreecommitdiff
path: root/plugins/new_user_dialog
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-08-31 12:49:44 +0000
committeralecpl <alec@alec.pl>2011-08-31 12:49:44 +0000
commitb08caf5813c43e8648cdf5db1e003b3046a37c2c (patch)
treee87f3c8cd0802c550459f26de1473bbcd4107131 /plugins/new_user_dialog
parentfd6146b6780c526a04682cda89b133e2d9bbd910 (diff)
- Applied fixes from trunk up to r5150
Diffstat (limited to 'plugins/new_user_dialog')
-rw-r--r--plugins/new_user_dialog/new_user_dialog.php18
-rw-r--r--plugins/new_user_dialog/newuserdialog.css3
2 files changed, 19 insertions, 2 deletions
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php
index 0d6837335..9d7cbcba5 100644
--- a/plugins/new_user_dialog/new_user_dialog.php
+++ b/plugins/new_user_dialog/new_user_dialog.php
@@ -66,6 +66,20 @@ class new_user_dialog extends rcube_plugin
'disabled' => ($identities_level == 1 || $identities_level == 3)
)));
+ $table->add('title', $this->gettext('organization'));
+ $table->add(null, html::tag('input', array(
+ 'type' => 'text',
+ 'name' => '_organization',
+ 'value' => $identity['organization']
+ )));
+
+ $table->add('title', $this->gettext('signature'));
+ $table->add(null, html::tag('textarea', array(
+ 'name' => '_signature',
+ 'rows' => '3',
+ ),$identity['signature']
+ ));
+
// add overlay input box to html page
$rcmail->output->add_footer(html::div(array('id' => 'newuseroverlay'),
html::tag('form', array(
@@ -106,6 +120,8 @@ class new_user_dialog extends rcube_plugin
$save_data = array(
'name' => get_input_value('_name', RCUBE_INPUT_POST),
'email' => get_input_value('_email', RCUBE_INPUT_POST),
+ 'organization' => get_input_value('_organization', RCUBE_INPUT_POST),
+ 'signature' => get_input_value('_signature', RCUBE_INPUT_POST),
);
// don't let the user alter the e-mail address if disabled by config
@@ -125,4 +141,4 @@ class new_user_dialog extends rcube_plugin
}
-?> \ No newline at end of file
+?>
diff --git a/plugins/new_user_dialog/newuserdialog.css b/plugins/new_user_dialog/newuserdialog.css
index c03e6fd42..1c3e652b6 100644
--- a/plugins/new_user_dialog/newuserdialog.css
+++ b/plugins/new_user_dialog/newuserdialog.css
@@ -48,7 +48,8 @@
white-space: nowrap;
}
-#newuseroverlay table td input
+#newuseroverlay table td input,
+#newuseroverlay table td textarea
{
width: 20em;
}