Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.i18n.php |
— | — | @@ -16,6 +16,8 @@ |
17 | 17 | 'prefswitch-desc' => 'Allow users to swtich sets of preferences', |
18 | 18 | 'prefswitch-survey-true' => 'Yes', |
19 | 19 | 'prefswitch-survey-false' => 'No', |
| 20 | + 'prefswitch-survey-submit-off' => 'Turn New Features Off', |
| 21 | + 'prefswitch-survey-submit-feedback' => 'Send Feedback', |
20 | 22 | 'prefswitch-survey-question-likedislike' => 'What did you like about the new features? What did you dislike about the features?', |
21 | 23 | 'prefswitch-survey-question-whyoff' => 'Why are you turning off the new features? (Please select all that apply.)', |
22 | 24 | 'prefswitch-survey-answer-whyoff-hard' => 'It was too hard to use.', |
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.php |
— | — | @@ -59,8 +59,8 @@ |
60 | 60 | 'submit-msg' => 'prefswitch-survey-submit-feedback', |
61 | 61 | 'updatable' => true, |
62 | 62 | 'questions' => array( |
63 | | - 'feedback' => array( |
64 | | - 'question' => 'prefswitch-survey-question-feedback', |
| 63 | + 'likedislike' => array( |
| 64 | + 'question' => 'prefswitch-survey-question-likedislike', |
65 | 65 | 'type' => 'text', |
66 | 66 | ), |
67 | 67 | 'browser' => array( |
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.css |
— | — | @@ -3,6 +3,7 @@ |
4 | 4 | margin-bottom: 1em; |
5 | 5 | } |
6 | 6 | form.prefswitch-survey { |
| 7 | + width: 32em; |
7 | 8 | margin: 0; |
8 | 9 | padding: 0; |
9 | 10 | } |
— | — | @@ -50,7 +51,9 @@ |
51 | 52 | padding: 0; |
52 | 53 | line-height: 2em; |
53 | 54 | } |
54 | | -form.prefswitch-survey dl dt.prefswitch-survey-submit { |
| 55 | +form.prefswitch-survey .prefswitch-survey-submit { |
| 56 | + margin-top: 1em; |
| 57 | + margin-bottom: 1em; |
55 | 58 | text-align: right; |
56 | 59 | } |
57 | 60 | form.prefswitch-survey input.prefswitch-need-other { |
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/SpecialPrefSwitch.php |
— | — | @@ -207,7 +207,8 @@ |
208 | 208 | // Finish out the form |
209 | 209 | $html .= Xml::openElement( 'dt', array( 'class' => 'prefswitch-survey-submit' ) ); |
210 | 210 | $html .= Xml::submitButton( |
211 | | - wfMsg( $wgPrefSwitchSurveys[$mode]['submit-msg'] ), array( 'id' => 'prefswitch-survey-submit' ) |
| 211 | + wfMsg( $wgPrefSwitchSurveys[$mode]['submit-msg'] ), |
| 212 | + array( 'id' => "prefswitch-survey-submit-{$mode}", 'class' => 'prefswitch-survey-submit' ) |
212 | 213 | ); |
213 | 214 | $html .= Xml::closeElement( 'dt' ); |
214 | 215 | $html .= Xml::closeElement( 'form' ); |