diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-24 20:00:09 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-24 20:00:09 +0000 |
| commit | 5bb73f12ccf69d3d2104532ca9b7fc476178abb3 (patch) | |
| tree | 05440800f3c062e67239e85a14c3de68b1879929 /plugins/new_user_dialog/new_user_dialog.php | |
| parent | d90e14aec81bb8a994a59f6cab7941e3c607663c (diff) | |
Add organization and signature fields to new user identity dialog. Submitted by Deyan Stoykov
git-svn-id: https://svn.roundcube.net/trunk@5127 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/new_user_dialog/new_user_dialog.php')
| -rw-r--r-- | plugins/new_user_dialog/new_user_dialog.php | 18 |
1 files changed, 17 insertions, 1 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 +?> |
