Skip to content

Commit feb5388

Browse files
CrazyLinuxNerddregad
authored andcommitted
Fix Source control username preference UI
The layout of 'Source Control Username' field in Account Preferences was broken for Modern UI. Fixes #180 Signed-off-by: Damien Regad <[email protected]>
1 parent 3563bd5 commit feb5388

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Source/SourceIntegration.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@ function account_update_form( $p_event, $p_user_id ) {
8383

8484
$t_user = SourceUser::load( $p_user_id );
8585

86-
echo '<div class="field-container">'
87-
. '<label for="Source_vcs_username"><span>' . plugin_lang_get( 'vcs_username', 'Source' ) . '</span></label>'
88-
. '<span class="input"><input type="hidden" name="Source_vcs" value="1"/>'
89-
. '<input name="Source_vcs_username" value="', $t_user->username, '"/></span>'
90-
. '<span class="label-style"></span>'
91-
. '</div>';
86+
echo '<tr>'
87+
. '<td class="category">' . plugin_lang_get( 'vcs_username', 'Source' ) . '</td>'
88+
. '<td>'
89+
. '<input type="hidden" name="Source_vcs" value="1"/>'
90+
. '<input id="source-vcs-username" type="text" name="Source_vcs_username" class="input-sm" value="' . $t_user->username . '" />'
91+
. '</td>'
92+
. '</tr>';
9293
}
9394

9495
/**

0 commit comments

Comments
 (0)