Skip to content

Commit

Permalink
Change "new account" button into a link
Browse files Browse the repository at this point in the history
The "new account" button is implemented as a standalone form, but since
the destination page is not required to do any action, a link is best
suited instead.

A link button also avoids browser warnings when going back (eg, after a
validation error when submitting the actual form).

Fixes: #25112
  • Loading branch information
cproensa authored and dregad committed Dec 29, 2018
1 parent de71b42 commit da62c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage_user_page.php
Expand Up @@ -299,7 +299,7 @@
<div class="widget-toolbox padding-8 clearfix">
<div id="manage-user-div" class="form-container">
<div class="pull-left">
<?php print_form_button( 'manage_user_create_page.php', lang_get( 'create_new_account_link' ), null, null, 'btn btn-primary btn-sm btn-white btn-round' ) ?>
<?php print_link_button( 'manage_user_create_page.php', lang_get( 'create_new_account_link' ),'btn-sm' ) ?>
</div>
<?php if( $f_filter === 'UNUSED' ) { ?>
<div class="pull-left">
Expand Down

0 comments on commit da62c7b

Please sign in to comment.