@@ -32,86 +32,85 @@ public function execute() {
32
32
$ isUnsub = $ this ->data ['isUnsub ' ];
33
33
$ disabled = $ this ->data ['disabled ' ];
34
34
$ isDisabled = $ this ->data ['isDisabled ' ];
35
- ?>
36
- <!-- s:<?php echo __FILE__ ?> -->
37
- <small><a href="<?php echo $ returnURL ; ?> "><?php echo wfMessage ( 'editaccount-return ' )->plain () ?> </a><?php echo wfMessage ( 'pipe-separator ' )->plain () . $ logLink ?> </small>
38
- <?php if ( $ status !== null ) { ?>
39
- <fieldset>
40
- <legend><?php echo wfMessage ( 'editaccount-status ' )->plain () ?> </legend>
41
- <?php
42
- if ( $ status ) {
43
- echo Xml::element ( 'span ' , [ 'style ' => 'color: darkgreen; font-weight: bold; ' ], $ statusMsg );
44
- } else {
45
- echo Xml::element ( 'span ' , [ 'style ' => 'color: #fe0000; font-weight: bold; ' ], $ statusMsg );
46
- }
47
35
48
- if ( !empty ( $ statusMsg2 ) ) {
49
- echo Xml::element ( 'span ' , [ 'style ' => 'color: #fe0000; font-weight: bold; ' ], $ statusMsg2 );
36
+ if ( $ status !== null ) {
37
+ if ( $ status ) {
38
+ echo Xml::element ( 'div ' , [ 'class ' => 'successbox ' ], $ statusMsg );
39
+ } else {
40
+ echo Xml::element ( 'div ' , [ 'class ' => 'errorbox ' ], $ statusMsg );
41
+ }
42
+ if ( !empty ( $ statusMsg2 ) ) {
43
+ echo Xml::element ( 'div ' , [ 'class ' => 'errorbox ' ], $ statusMsg2 );
44
+ }
50
45
}
51
- ?>
52
- </fieldset>
53
- <?php } ?>
54
- <fieldset>
55
- <legend><?php echo wfMessage ( 'editaccount-frame-account ' , $ user )->escaped () ?> </legend>
56
- <div class="edit-account-user-info">
57
- <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-user-id ' , $ userId )->parse (); ?> </div>
58
- <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-user-reg-date ' , $ userReg )->parse (); ?> </div>
59
- <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-label-account-status ' , $ userStatus )->parse (); ?> </div>
60
- <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-label-email-status ' , $ emailStatus )->parse (); ?> </div>
61
- <div class="edit-account-user-info-row"><?php echo $ changeEmailRequested ; ?> <br />
62
- </div>
63
- <form method="post" action="" id="EditAccountForm">
64
- <div>
65
- <input type="radio" id="wpActionSetEmail" name="wpAction" value="setemail" />
66
- <label for="wpActionSetEmail"><?php echo wfMessage ( 'editaccount-label-email ' )->escaped () ?> </label>
67
- <input type="text" name="wpNewEmail" value="<?php echo $ userEmail ?> " />
68
- </div>
69
-
70
- <div>
71
- <input type="radio" id="wpActionSetPass" name="wpAction" value="setpass" />
72
- <label for="wpActionSetPass"><?php echo wfMessage ( 'editaccount-label-pass ' )->escaped () ?> </label>
73
- <input type="text" name="wpNewPass" />
74
- </div>
46
+ ?>
47
+ <!-- s:<?php echo __FILE__ ?> -->
48
+ <div class="edit-account-card" id="edit-account-edit-card">
49
+ <div class="edit-account-card-header"><?php echo wfMessage ( 'editaccount-frame-account ' , $ user )->escaped () ?> </div>
50
+ <div class="edit-account-card-body">
51
+ <div class="edit-account-user-info">
52
+ <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-user-id ' , $ userId )->parse (); ?> </div>
53
+ <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-user-reg-date ' , $ userReg )->parse (); ?> </div>
54
+ <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-label-account-status ' , $ userStatus )->parse (); ?> </div>
55
+ <div class="edit-account-user-info-row"><?php echo wfMessage ( 'editaccount-label-email-status ' , $ emailStatus )->parse (); ?> </div>
56
+ <div class="edit-account-user-info-row"><?php echo $ changeEmailRequested ; ?> </div>
57
+ </div>
58
+ <form method="post" action="" id="edit-account-edit-form">
59
+ <div class="edit-account-form-fields">
60
+ <div class="edit-account-form-row">
61
+ <input type="radio" id="wpActionSetEmail" name="wpAction" value="setemail" class="edit-account-form-cell" />
62
+ <label for="wpActionSetEmail" class="edit-account-form-cell"><?php echo wfMessage ( 'editaccount-label-email ' )->escaped () ?> </label>
63
+ <input type="text" name="wpNewEmail" value="<?php echo $ userEmail ?> " class="edit-account-form-cell edit-account-form-input-text"/>
64
+ </div>
75
65
76
- <div>
77
- <input type="radio" id="wpActionSetRealName " name="wpAction" value="setrealname" <?php echo $ disabled ; ?> />
78
- <label for="wpActionSetRealName" ><?php echo wfMessage ( 'editaccount-label-realname ' )->escaped () ?> </label>
79
- <input type="text" name="wpNewRealName" value=" <?php echo $ userRealName ?> " <?php echo $ disabled ; ?> />
80
- </div>
66
+ <div class="edit-account-form-row" >
67
+ <input type="radio" id="wpActionSetPass " name="wpAction" value="setpass" class="edit-account-form-cell" />
68
+ <label for="wpActionSetPass" class="edit-account-form-cell" ><?php echo wfMessage ( 'editaccount-label-pass ' )->escaped () ?> </label>
69
+ <input type="text" name="wpNewPass" class="edit-account-form-cell edit-account-form-input-text" />
70
+ </div>
81
71
82
- <?php if ( class_exists ( 'AutoWikiAdoption ' ) ) {
83
- /* We don't use that extension, so I'm hiding this option from the GUI --JP 20 October 2012 */ ?>
84
- <div>
85
- <input type="radio" id="wpActionToggleAdopt" name="wpAction" value="toggleadopter" />
86
- <label for="wpActionToggleAdopt"><?php echo wfMessage ( 'editaccount-label-toggleadopt ' )->escaped () ?> </label>
87
- <span><?php echo ( $ isAdopter ) ? wfMessage ( 'editaccount-label-toggleadopt-prevent ' )->escaped () : wfMessage ( 'editaccount-label-toggleadopt-allow ' )->escaped () ?> </span>
88
- </div>
89
- <?php } ?>
72
+ <div class="edit-account-form-row">
73
+ <input type="radio" id="wpActionSetRealName" name="wpAction" value="setrealname" class="edit-account-form-cell" <?php echo $ disabled ; ?> />
74
+ <label for="wpActionSetRealName" class="edit-account-form-cell"><?php echo wfMessage ( 'editaccount-label-realname ' )->escaped () ?> </label>
75
+ <input type="text" name="wpNewRealName" value="<?php echo $ userRealName ?> " <?php echo $ disabled ; ?> class="edit-account-form-cell edit-account-form-input-text" />
76
+ </div>
90
77
91
- <?php if ( $ isUnsub ) { ?>
92
- <div>
93
- <input type="radio" id="wpActionClearUnsub" name="wpAction" value="clearunsub" <?php echo $ disabled ; ?> />
94
- <label for="wpActionClearUnsub"><?php echo wfMessage ( 'editaccount-submit-clearunsub ' )->escaped () ?> </label>
95
- </div>
96
- <?php }
97
- // end unsub ?>
78
+ <?php if ( class_exists ( 'AutoWikiAdoption ' ) ) {
79
+ /* We don't use that extension, so I'm hiding this option from the GUI --JP 20 October 2012 */ ?>
80
+ <div class="edit-account-form-row">
81
+ <input type="radio" id="wpActionToggleAdopt" name="wpAction" value="toggleadopter" class="edit-account-form-cell" />
82
+ <label for="wpActionToggleAdopt" class="edit-account-form-cell"><?php echo wfMessage ( 'editaccount-label-toggleadopt ' )->escaped () ?> </label>
83
+ <span class="edit-account-form-cell"><?php echo ( $ isAdopter ) ? wfMessage ( 'editaccount-label-toggleadopt-prevent ' )->escaped () : wfMessage ( 'editaccount-label-toggleadopt-allow ' )->escaped () ?> </span>
84
+ </div>
85
+ <?php } ?>
98
86
99
- <div>
100
- <label for="wpReason"><?php echo wfMessage ( 'editaccount-label-reason ' )->escaped () ?> </label>
101
- <input id="wpReason" name="wpReason" type="text" />
102
- </div>
87
+ <?php if ( $ isUnsub ) { ?>
88
+ <div class="edit-account-form-row">
89
+ <input type="radio" id="wpActionClearUnsub" name="wpAction" value="clearunsub" <?php echo $ disabled ; ?> class="edit-account-form-cell" />
90
+ <label for="wpActionClearUnsub" class="edit-account-form-cell"><?php echo wfMessage ( 'editaccount-submit-clearunsub ' )->escaped () ?> </label>
91
+ </div>
92
+ <?php }
93
+ // end unsub ?>
103
94
104
- <div>
105
- <input type="submit" value="<?php echo wfMessage ( 'editaccount-submit-button ' )->escaped () ?> " />
106
- </div>
95
+ <div class="edit-account-form-row">
96
+ <div class="edit-account-form-cell"></div>
97
+ <label for="wpReason" class="edit-account-form-cell"><?php echo wfMessage ( 'editaccount-label-reason ' )->escaped () ?> </label>
98
+ <input id="wpReason" name="wpReason" type="text" class="edit-account-form-cell edit-account-form-input-text" />
99
+ </div>
100
+ </div>
101
+ <div>
102
+ <input type="submit" value="<?php echo wfMessage ( 'editaccount-submit-button ' )->escaped () ?> " />
103
+ </div>
107
104
108
- <input type="hidden" name="wpUserName" value="<?php echo $ user_hsc ?> " />
109
- </form>
110
- </fieldset>
111
- <fieldset>
112
- <legend><?php echo wfMessage ( 'editaccount-frame-close ' , $ user )->escaped () ?> </legend>
105
+ <input type="hidden" name="wpUserName" value="<?php echo $ user_hsc ?> " />
106
+ </form>
107
+ </div>
108
+ </div>
109
+ <div class="edit-account-card" id="edit-account-close-card">
110
+ <div class="edit-account-card-header"><?php echo wfMessage ( 'editaccount-frame-close ' , $ user )->escaped () ?> </div>
111
+ <div class="edit-account-card-body">
113
112
<p><?php echo wfMessage ( 'editaccount-usage-close ' )->plain () ?> </p>
114
- <form method="post" action="">
113
+ <form method="post" action="" id="edit-account-close-form" >
115
114
<input type="submit" value="<?php echo wfMessage ( 'editaccount-submit-close ' )->plain () ?> " <?php echo $ disabled ; ?> />
116
115
<input type="hidden" name="wpAction" value="closeaccount" />
117
116
<input type="hidden" name="wpUserName" value="<?php echo $ user_hsc ?> " />
@@ -125,7 +124,8 @@ public function execute() {
125
124
</form>
126
125
<?php }
127
126
// end undisable ?>
128
- </fieldset>
127
+ </div>
128
+ </div>
129
129
<!-- e:<?php echo __FILE__ ?> -->
130
130
<?php
131
131
}
0 commit comments