[ticket/12649] Move <form> element to original template

PHPBB3-12649
[ticket/12649] RTL alignment fix

PHPBB3-12649