Skip to content

Commit

Permalink
Add margin css to single button forms
Browse files Browse the repository at this point in the history
Add margin between buttons generated by print_form_button(), to be
consistent with the general styling of inline buttons in a general form.

Fixes: #22870
  • Loading branch information
cproensa authored and dregad committed Sep 9, 2017
1 parent a0aa807 commit aee0080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -1406,7 +1406,7 @@ function print_form_button( $p_action_page, $p_label, array $p_args_to_post = nu
# TODO: ensure all uses of print_button supply arguments via $p_args_to_post (POST)
# instead of via $p_action_page (GET). Then only add the CSRF form token if
# arguments are being sent via the POST method.
echo '<form method="post" action="', htmlspecialchars( $p_action_page ), '" class="form-inline inline">';
echo '<form method="post" action="', htmlspecialchars( $p_action_page ), '" class="form-inline inline single-button-form">';
echo '<fieldset>';
if( $p_security_token !== OFF ) {
echo form_security_field( $t_form_name[0], $p_security_token );
Expand Down
3 changes: 3 additions & 0 deletions css/ace-mantis.css
Expand Up @@ -503,6 +503,9 @@ input.typeahead.scrollable ~ .tt-menu {
margin-bottom: 10px;
}

.btn-group .single-button-form {
margin: 0 1px 0 0;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
Expand Down

0 comments on commit aee0080

Please sign in to comment.