Index: trunk/extensions/CongressLookup/CongressLookup.i18n.php |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | 'congresslookup-no-senators' => 'No senators were found for your zip code.', |
27 | 27 | 'congresslookup-report-errors' => 'Report an error', |
28 | 28 | 'congresslookup-zipcode-error' => 'Please enter your zipcode in the format "12345" or "12345-1234".', |
| 29 | + 'congresslookup-multiple-house-reps' => 'Note: In some cases, there is more than one representative district assigned to a particular zip code. Please select the representative appropriate for your particular district.', |
29 | 30 | ); |
30 | 31 | |
31 | 32 | /** Message documentation (Message documentation) |
— | — | @@ -44,4 +45,5 @@ |
45 | 46 | 'congresslookup-no-senators' => 'Error message for when no Senators are found', |
46 | 47 | 'congresslookup-report-errors' => 'Label for a link to the error reporting page', |
47 | 48 | 'congresslookup-zipcode-error' => 'Error message for when an invalid zip code is entered to the form.', |
| 49 | + 'congresslookup-multiple-house-reps' => 'A note for people who see more than one representative listed for them. Many folks would find this unusual, but we are not looking up representatives at a granular-enough level to necessarily return their one specific rep. So in the event that there are more than one representatives returned to the user, we explain why.', |
48 | 50 | ); |
Index: trunk/extensions/CongressLookup/SpecialCongressLookup.php |
— | — | @@ -119,6 +119,10 @@ |
120 | 120 | p.error { |
121 | 121 | color: red; |
122 | 122 | } |
| 123 | +p.note { |
| 124 | + font-size: 12px; |
| 125 | + font-style: italic; |
| 126 | +} |
123 | 127 | </style> |
124 | 128 | </head> |
125 | 129 | <body> |
— | — | @@ -219,6 +223,9 @@ |
220 | 224 | |
221 | 225 | $congressTable .= "\n" . Html::closeElement( 'table' ); |
222 | 226 | } |
| 227 | + if ( count( $myRepresentatives ) > 1 ) { |
| 228 | + $congressTable .= HTML::element( 'p', array( 'class' => 'note' ), wfMsg( 'congresslookup-multiple-house-reps' )); |
| 229 | + } |
223 | 230 | } else { |
224 | 231 | $congressTable .= Html::element( 'p', array(), wfMsg( 'congresslookup-no-house-rep' ) ); |
225 | 232 | } |