Fix password form

pull/6040/head
Aleksander Machniak 7 years ago
parent e00dd60c25
commit fd9517655f

@ -282,24 +282,23 @@ class password extends rcube_plugin
'class' => 'button mainaction submit', 'class' => 'button mainaction submit',
'label' => 'save', 'label' => 'save',
)); ));
$form_buttons = html::p(array('class' => 'formbuttons'), $submit_button); $form_buttons = html::p(array('class' => 'formbuttons footerleft'), $submit_button);
$out = html::div(array('class' => 'box'),
html::div(array('id' => 'prefs-title', 'class' => 'boxtitle'), $this->gettext('changepasswd'))
. html::div(array('class' => 'boxcontent'),
$disabled_msg . $table->show() . $rules . $form_buttons));
$rcmail->output->add_gui_object('passform', 'password-form'); $rcmail->output->add_gui_object('passform', 'password-form');
$this->include_script('password.js'); $this->include_script('password.js');
return $rcmail->output->form_tag(array( $form = $rcmail->output->form_tag(array(
'id' => 'password-form', 'id' => 'password-form',
'name' => 'password-form', 'name' => 'password-form',
'method' => 'post', 'method' => 'post',
'class' => 'formcontent',
'action' => './?_task=settings&_action=plugin.password-save', 'action' => './?_task=settings&_action=plugin.password-save',
), $out); ), $disabled_msg . $table->show() . $rules);
return html::div(array('id' => 'prefs-title', 'class' => 'boxtitle'), $this->gettext('changepasswd'))
. html::div(array('class' => 'box formcontainer scroller'),
html::div(array('class' => 'boxcontent formcontent'), $form)
. $form_buttons);
} }
private function _save($curpass, $passwd) private function _save($curpass, $passwd)

@ -1091,6 +1091,11 @@ div.searchbox > input
width: 97%; width: 97%;
} }
.formcontainer
{
background-color: #f2f2f2;
}
.formcontent table { .formcontent table {
width: 100%; width: 100%;
} }

@ -1106,6 +1106,9 @@ function rcube_init_mail_ui()
if (rcmail.env.action == 'folders') { if (rcmail.env.action == 'folders') {
rcmail_ui.folder_search_init($('#folder-manager')); rcmail_ui.folder_search_init($('#folder-manager'));
} }
$('#mainscreen > #prefs-title').detach().prependTo($('#mainscreen > .box'));
} }
}); });
} }

@ -140,6 +140,11 @@ body.iframe,
width: 100%; width: 100%;
} }
.footerleft
{
padding-left: 10px;
}
#formfooter .footerleft #formfooter .footerleft
{ {
padding: 0 2px 10px; padding: 0 2px 10px;

@ -16,8 +16,12 @@
<div id="mainscreen"> <div id="mainscreen">
<roundcube:object name="plugin.body" /> <roundcube:object name="plugin.body" />
</div> </div>
<roundcube:object name="plugin.footer" /> <roundcube:object name="plugin.footer" />
<script type="text/javascript">
rcube_init_mail_ui();
</script>
</body> </body>
</html> </html>

Loading…
Cancel
Save