Merge lp:~graeme-acm/sahana-eden/LA into lp:sahana-eden/la
- LA
- Merge into la
Proposed by
Graeme Foster
Status: | Merged |
---|---|
Merged at revision: | 2771 |
Proposed branch: | lp:~graeme-acm/sahana-eden/LA |
Merge into: | lp:sahana-eden/la |
Diff against target: |
284 lines (+119/-99) 5 files modified
controllers/default.py (+103/-1) models/don.py (+1/-0) models/vol.py (+3/-1) views/default/help.html (+11/-97) views/footer.html (+1/-0) |
To merge this branch: | bzr merge lp:~graeme-acm/sahana-eden/LA |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Fran Boon | Pending | ||
Review via email: mp+75174@code.launchpad.net |
Commit message
Description of the change
Added FAQ and updated help
To post a comment you must log in.
Revision history for this message
Fran Boon (flavour) wrote : | # |
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'controllers/default.py' |
2 | --- controllers/default.py 2011-09-12 22:08:49 +0000 |
3 | +++ controllers/default.py 2011-09-13 13:20:51 +0000 |
4 | @@ -238,7 +238,109 @@ |
5 | def help(): |
6 | """ Custom View """ |
7 | response.title = T("Help") |
8 | - return dict() |
9 | + entries = [] |
10 | + question = T("How do I register as a volunteer?") |
11 | + reply = T("Follow these steps, to register:") |
12 | + list = [] |
13 | + list.append(T("On the Home Page, click the ‘Volunteer’ link. Review the ‘List of Requests for Volunteers’. To select a %(request)s (Volunteer Task), click on %(apply)s; OR You can register by clicking the ‘Register’ link located on the top of the web page.") % dict(request="<i>%s</i>" % T("Request for Volunteers"), |
14 | + apply = "<strong>%s</strong>" % T("‘APPLY’"))) |
15 | + list.append(T("Enter your information into the Required Fields. After you have entered your information, click %(accept)s to register." % dict(accept="<strong>%s</strong" % T("‘I ACCEPT, CREATE MY ACCOUNT’")))) |
16 | + entry = (question, reply, list) |
17 | + entries.append(entry) |
18 | + question = T("How do I update my Profile, Skills and Emergency Details?") |
19 | + reply = T("After you are signed-in, please follow these steps to edit your profile: ") |
20 | + list = [] |
21 | + list.append(T("On the top menu, click %(volunteer)s." % dict(volunteer="<strong>%s</strong>" % T("VOLUNTEER")))) |
22 | + list.append(T("On the left menu, click %(profile)s ." % dict(profile="<strong>%s</strong>" % T("'My Profile'")))) |
23 | + list.append(T("On this page, you can update your profile.")) |
24 | + list.append(T("Additional information like %(notifications)s and other volunteer agency affiliations also can be updated in this page." % dict(notifications="<strong>%s</strong>" % T("Notifications")))) |
25 | + list.append(T("Then click %(save)s" % dict(save="<strong>%s</strong>" % T("Save")))) |
26 | + list.append(T("On the left menu, click %(skills)s." % dict(skills="<strong>%s</strong>" % T("Skills")))) |
27 | + list.append(T("Click the %s sign next to the skill(s) that best describes how you can support the City." % "<strong>'+'</strong>")) |
28 | + list.append(T("You may also search for a skill by providing the first few characters in the search box. (Example: When searching for ‘Driving’ skills, enter the first letters of the word).")) |
29 | + list.append(T("If your skill(s) is not listed, you may enter it in the %(extraSkills)s field below." % dict(extraSkills="<strong>%s</strong>" % T("Skills")))) |
30 | + list.append(T("Then click %(save)s" % dict(save="<strong>%s</strong>" % T("Save")))) |
31 | + list.append(T("You may also update your Emergency Contacts information by clicking on 'Emergency Contacts' located on the left menu.")) |
32 | + list.append(T("Then click %(save)s" % dict(save="<strong>%s</strong>" % T("Save")))) |
33 | + entry = (question, reply, list) |
34 | + entries.append(entry) |
35 | + question = T("How do I apply for a Volunteer Request after I have registered with Give2LA?") |
36 | + reply = T("You can apply by clicking the %(signin)s link located on the top of the web page." % dict(signin="<strong>%s</strong>" % T("‘Sign-In’"))) |
37 | + list = [] |
38 | + list.append(T("Enter your E-Mail and Password information.")) |
39 | + list.append(T("Review the ‘List of Requests for Volunteers’.")) |
40 | + list.append(T("To select a Volunteer Task, click on %(apply)s."% dict(apply="<strong>%s</strong>" % T("‘APPLY’")))) |
41 | + list.append(T("Review the ‘Volunteer Assignment Details’. Enter your Emergency Contact information.")) |
42 | + list.append(T("Download the Give2LA Volunteer Registration Forms, complete the forms, and take them with you to your Volunteer Assignment.")) |
43 | + list.append(T("Then click %(commit)s." % dict(commit="<strong>%s</strong>" % T("Commit")))) |
44 | + list.append(T("Review the Volunteer Application details.")) |
45 | + list.append(T("Then click %(form)s and take them with you to your Volunteer Assignment." % dict(form="<strong>%s</strong>" % T("'Print Volunteer Assignment Form'")))) |
46 | + entry = (question, reply, list) |
47 | + entries.append(entry) |
48 | + question = T("Can I provide feedback or evaluation for an assignment after volunteering?") |
49 | + reply = T("Yes. After you have signed-in, follow these steps:") |
50 | + list = [] |
51 | + list.append(T("On the top menu, click %(volunteer)s." % dict(volunteer="<strong>%s</strong>" % T("VOLUNTEER")))) |
52 | + list.append(T("On the left menu, click %(assignments)s." % dict(assignments="<strong>%s</strong>" % T("‘My Assignments’")))) |
53 | + list.append(T("Click on the ‘Details’ button of the Volunteer Task you have completed.")) |
54 | + list.append(T("Scroll down to the bottom of the screen to get to ‘Evaluation of Event’.")) |
55 | + list.append(T("Enter the evaluation details; and click %(save)s" % dict(save="<strong>%s</strong>" % T("Save")))) |
56 | + entry = (question, reply, list) |
57 | + entries.append(entry) |
58 | + question = T("I would like to register my corporation for donations, what is the process?") |
59 | + reply = T("Follow these steps, to register") |
60 | + list = [] |
61 | + list.append(T("Locate the %(register)s for Corporations and Organizations on the Home Page and click on it." % dict(register="<strong>%s</strong>" % T("‘CLICK HERE TO REGISTER’")))) |
62 | + list.append(T("Enter the Mandatory details and click on the button %(accept)s at the bottom of the screen to register") % dict(accept="<strong>%s</strong" % T("‘I ACCEPT, CREATE MY ACCOUNT’"))) |
63 | + entry = (question, reply, list) |
64 | + entries.append(entry) |
65 | + |
66 | + return dict(entries=entries) |
67 | + |
68 | +# ----------------------------------------------------------------------------- |
69 | +def faq(): |
70 | + """ Custom View """ |
71 | + donateLink = A(T("Donate Page"), _href=URL(c="don",f="index")) |
72 | + |
73 | + response.title = T("Frequently Asked Questions") |
74 | + entries = [] |
75 | + question = T("Is there a minimum age limit to volunteer?") |
76 | + reply = T("Yes, you have to be at least 18 years of age to Volunteer.") |
77 | + entry = (question, reply) |
78 | + entries.append(entry) |
79 | + question = T("What is the Privacy policy of Give2LA?") |
80 | + reply = T("Please refer to the %(privacy)s" % dict(privacy=A(T("Privacy Policy"), _href=URL(c="default",f="disclaimer")))) |
81 | + entry = (question, reply) |
82 | + entries.append(entry) |
83 | + question = T("Can I bring a friend to volunteer?") |
84 | + reply = T("Yes, but your friend must also %(register)s and apply to the same Volunteer Assignment." % dict(register=A(T("Register"), _href=URL(c="vol",f="register")))) |
85 | + entry = (question, reply) |
86 | + entries.append(entry) |
87 | + question = T("Will I get any food or reimbursements for expenses while volunteering?") |
88 | + reply = T("No, unless it is otherwise stated on the Volunteer Assignment.") |
89 | + entry = (question, reply) |
90 | + entries.append(entry) |
91 | + question = T("Can I donate cash to support the City of Los Angeles?") |
92 | + reply = T("Yes, you can donate cash to the %(laepf)s who support the City of Los Angeles or other partner organizations listed on the %(donate)s. These links will take you directly to the organization’s website to complete the cash donation transaction." % dict(laepf="<a href=http://laemergencypreparednessfoundation.org/>LAEPF</a>", donate=donateLink)) |
93 | + entry = (question, reply) |
94 | + entries.append(entry) |
95 | + question = T("What is the process for donating in-kind Items?") |
96 | + reply = T("The City of Los Angeles prefers cash donations. In-kind items can be donated directly to the organization(s) listed under Donate Items or through any Upcoming Donation Drive on the %(donate)s" % dict(donate=donateLink)) |
97 | + entry = (question, reply) |
98 | + entries.append(entry) |
99 | + question = T("Do I have to be a U.S. citizen or legal U.S. resident to volunteer?") |
100 | + reply = T("Yes. You must be a U.S. citizen, legal U.S. resident, or have gained legal entry into the United States.") |
101 | + entry = (question, reply) |
102 | + entries.append(entry) |
103 | + question = T("Do I have to live in the City of Los Angeles to volunteer?") |
104 | + reply = T("No, anyone may register to support the City of Los Angeles’ volunteer efforts.") |
105 | + entry = (question, reply) |
106 | + entries.append(entry) |
107 | + question = T("Is my donation tax deductible?") |
108 | + reply = T("Yes. All donations are tax deductible. The partner organization that receives your donation will provide a receipt for your donation. Please make sure you obtain your tax receipt from the organization and keep it in a safe place for tax purposes. The City of Los Angeles will not issue receipts for your donation.") |
109 | + entry = (question, reply) |
110 | + entries.append(entry) |
111 | + return dict(entries=entries) |
112 | |
113 | # ----------------------------------------------------------------------------- |
114 | def sitemap(): |
115 | |
116 | === removed directory 'databases' |
117 | === modified file 'models/don.py' |
118 | --- models/don.py 2011-09-08 07:39:54 +0000 |
119 | +++ models/don.py 2011-09-13 13:20:51 +0000 |
120 | @@ -467,6 +467,7 @@ |
121 | |
122 | pdf.setMargins(top=1.1*inch, bottom=0.5*inch, left=0.4*inch, right = 0.4*inch) |
123 | # Standard lines of text |
124 | + T = lambda str : str |
125 | line1 = "ANTONIO R. VILLARAIGOSA" |
126 | line2 = "Mayor" |
127 | line3A = "THE CITY OF LOS ANGELES" |
128 | |
129 | === modified file 'models/vol.py' |
130 | --- models/vol.py 2011-09-12 19:14:48 +0000 |
131 | +++ models/vol.py 2011-09-13 13:20:51 +0000 |
132 | @@ -889,7 +889,7 @@ |
133 | comments = rtable.comments |
134 | if comments == None: |
135 | comments = "" |
136 | - |
137 | + T = lambda str : str |
138 | lbl_title1 = "%s:" % T("Assignment Details") |
139 | lbl_title2 = "%s:" % T("Point of Contact") |
140 | lbl_startTime = T("Arrival Time") |
141 | @@ -1123,6 +1123,7 @@ |
142 | # set the banner |
143 | pdf.setMargins(left=0.4*inch, right = 0.4*inch) |
144 | pdf.setHeaderBanner("static/img/la/Give2LAbranding_BW.jpg") |
145 | + T = lambda str : str |
146 | # Get the request data |
147 | rtable = db.req_req |
148 | etable = db.event_event |
149 | @@ -1379,6 +1380,7 @@ |
150 | left=0.4*inch, |
151 | right = 0.4*inch) |
152 | # Standard lines of text |
153 | + T = lambda str : str |
154 | line1 = "ANTONIO R. VILLARAIGOSA" |
155 | line2 = "Mayor" |
156 | line3A = "THE CITY OF LOS ANGELES" |
157 | |
158 | === modified file 'views/default/help.html' |
159 | --- views/default/help.html 2011-09-11 11:46:07 +0000 |
160 | +++ views/default/help.html 2011-09-13 13:20:51 +0000 |
161 | @@ -1,100 +1,14 @@ |
162 | {{extend "layout.html"}} |
163 | <div id='home'> |
164 | -<h1>{{=T("Help")}}</h1> |
165 | -<h2 class='paper-strip'>{{=T("How do I Register as a Volunteer?")}}</h2> |
166 | -<p> |
167 | -{{=T("Follow these steps, to register")}}: |
168 | -<ol> |
169 | -<li>{{=XML(T("On the Home Page, click the 'Volunteer' link. Review the 'List of Requests for Volunteers'. To select a Volunteer Task, click on '%(apply)s'; OR" % dict(apply = B(T("APPLY")))))}}<br /> |
170 | -{{=T("You can register by clicking the 'Register' link located on the top of the web page.")}}</li> |
171 | -<li>{{=XML(T("Enter your information into the Required Fields. After you have entered your information, click '%(accept)s' to register." % dict(accept = B(T("I ACCEPT, CREATE MY ACCOUNT")))))}}</li> |
172 | -</ol> |
173 | -</p> |
174 | -<h2 class='paper-strip'>{{=T("How do I update my Profile, Skills and Emergency Details?")}}</h2> |
175 | -<p> |
176 | -{{=T("After you are signed-in, please follow these steps to edit your profile")}}: |
177 | -<ol> |
178 | -<li>{{=XML(T("On the top Navigation Bar, click '%(volunteer)s'." % dict(volunteer = B(T("VOLUNTEER")))))}}</li> |
179 | -<li>{{=XML(T("On the left side of the screen, click '%(my_profile)s'." % dict(my_profile = B(T("My Profile")))))}}</li> |
180 | -<li>{{=T("On this page, you can update your personal information.")}}</li> |
181 | -<li>{{=XML(T("Additional information like 'Notifications' and other volunteer agency affiliations also can be updated in this page." % dict(volunteer = B(T("VOLUNTEER")))))}}</li> |
182 | -<li>{{=XML(T("Then click '%(save)s'." % dict(save = B(T("SAVE")))))}}</li> |
183 | -<li>{{=XML(T("On the left side of the screen, click '%(skills)s'." % dict(skills = B(T("Skills")))))}}</li> |
184 | -<li>{{=T("Click the '+' sign next to the skill(s) that best describes how you can support the City.")}}</li> |
185 | -<li>{{=T("You may also search for a skill by providing the first few characters in the search box. (Example: When searching for 'Driving' skills, enter the first letters of the word).")}}</li> |
186 | -<li>{{=XML(T("If your skill(s) is not listed, you may enter it in the '%(skills)s' field." % dict(skills = B(T("Additional Skills & Information")))))}}</li> |
187 | -<li>{{=XML(T("Then click '%(save)s'." % dict(save = B(T("SAVE")))))}}</li> |
188 | -<li>{{=XML(T("You may also update your Emergency Contacts information by clicking on '%(contacts)s' located on the left side of screen." % dict(contacts = B(T("Emergency Contacts")))))}}</li> |
189 | -<li>{{=XML(T("Then click '%(save)s'." % dict(save = B(T("SAVE")))))}}</li> |
190 | -</ol> |
191 | -</p> |
192 | -<h2 class='paper-strip'>{{=XML(T("How do I apply for a Volunteer Request after I have registered with %(give2la)s?" % dict(give2la = I(T("Give2LA")))))}}</h2> |
193 | -<p> |
194 | -<ol> |
195 | -<li>{{=T("You can apply by clicking the 'Sign-In' link located on the top of the web page.")}}</li> |
196 | -<li>{{=T("Enter your E-Mail and Password information.")}}</li> |
197 | -<li>{{=T("Review the 'List of Requests for Volunteers'.")}}</li> |
198 | -<li>{{=XML(T("To select a Volunteer Task, click on '%(apply)s'." % dict(apply = B(T("APPLY")))))}}</li> |
199 | -<li>{{=T("Review the 'Volunteer Assignment Details'. Enter your Emergency Contact information.")}}</li> |
200 | -<li>{{=XML(T("Download the %(give2la)s Volunteer Registration Forms, complete the forms, and take them with you to your Volunteer Assignment." % dict(give2la = I(B(T("Give2LA"))))))}}</li> |
201 | -<li>{{=T("Then click 'Commit'.")}}</li> |
202 | -<li>{{=T("Review the Volunteer Application details.")}}</li> |
203 | -<li>{{=XML(T("Then click '%(print_assign)s' and take them with you to your Volunteer Assignment." % dict(print_assign = B(T("Print Volunteer Assignment Form")))))}}</li> |
204 | -</ol> |
205 | -</p> |
206 | -<h2 class='paper-strip'>{{=T("Can I provide feedback (or evaluate the task), after volunteering?")}}</h2> |
207 | -<p> |
208 | -{{=T("Yes. After you have signed-in, follow these steps")}}: |
209 | -<ol> |
210 | -<li>{{=XML(T("On the top Navigation Bar, click '%(volunteer)s'." % dict(volunteer = B(T("VOLUNTEER")))))}}</li> |
211 | -<li>{{=XML(T("On the left side of the screen, click '%(my_assignments)s'." % dict(my_assignments = B(T("My Assignments")))))}}</li> |
212 | -<li>{{=T("Click on the 'Details' button of the Volunteer Task you have completed.")}}</li> |
213 | -<li>{{=T("Scroll down to the bottom of the screen to get to 'Evaluation of Event'.")}}</li> |
214 | -<li>{{=T("Enter the evaluation details; and click 'Save'.")}}</li> |
215 | -</ol> |
216 | -</p> |
217 | -<h2 class='paper-strip'>{{=T("Is there a minimum age limit for registering to Volunteer?")}}</h2> |
218 | -<p> |
219 | -{{=T("Yes, you have to be 18 years of age and older to register to Volunteer.")}} |
220 | -</p> |
221 | -<h2 class='paper-strip'>{{=XML(T("What is the Privacy policy of %(give2la)s?" % dict(give2la = I(T("Give2LA")))))}}</h2> |
222 | -<p> |
223 | -{{=XML(T("Please refer to the %(url)s" % dict(url=A(T("Privacy Policy"), _href=URL(f="disclaimer#privacy")))))}} |
224 | -</p> |
225 | -<h2 class='paper-strip'>{{=T("Can I bring a Friend to Volunteer?")}}</h2> |
226 | -<p> |
227 | -{{=T("We encourage your friend to register unless it is explicitly stated in the Request for Volunteers that registration is optional.")}} |
228 | -</p> |
229 | -<h2 class='paper-strip'>{{=T("Where can I get additional information on the assignment like - Lunch arrangements, Gas reimbursements, accommodation for disabled individuals and eligibility for community time etc.?")}}</h2> |
230 | -<p> |
231 | -{{=T("Please refer to the instructions provided on the Volunteer assignment form, for additional details please get in touch with the contact person listed.")}} |
232 | -</p> |
233 | -<h2 class='paper-strip'>{{=T("What is the process for Donating Cash?")}}</h2> |
234 | -<p> |
235 | -{{=T("Cash can be donated through one of the preferred partner organizations by clicking on the links from the Donation page. Please note that you will be landing on an external website to complete the cash donation transaction.")}} |
236 | -</p> |
237 | -<h2 class='paper-strip'>{{=T("What is the process for Donating In-Kind Items?")}}</h2> |
238 | -<p> |
239 | -{{=T("City of Los Angeles encourages Cash donations, however In-Kind item donations are received directly by our partner organizations based on their current needs.")}} |
240 | -</p> |
241 | -<h2 class='paper-strip'>{{=T("I would like to register my Corporation for Donations, What is the process?")}}</h2> |
242 | -<p> |
243 | -{{=T("Follow these steps, to register")}}: |
244 | -<ol> |
245 | -<li>{{=XML(T("Locate the '%(register)s' for Corporations and Organizations on the Home Page and click on it." % dict(register = B(T("CLICK HERE TO REGISTER")))))}}</li> |
246 | -<li>{{=XML(T("Enter the Mandatory details and click on the button '%(accept)s' at the bottom of the screen to register" % dict(accept = B(T("I ACCEPT, CREATE MY ACCOUNT")))))}}</li> |
247 | -</ol> |
248 | -</p> |
249 | -<h2 class='paper-strip'>{{=T("Do I have to be a U.S. Citizen or legal U.S. Resident to volunteer?")}}</h2> |
250 | -<p> |
251 | -{{=T("Yes. You must be a U.S. Citizen, Legal U.S. Resident, or have gained legal entry into the United States.")}} |
252 | -</p> |
253 | -<h2 class='paper-strip'>{{=T("Do I have to live in the City of Los Angeles to volunteer?")}}</h2> |
254 | -<p> |
255 | -{{=T("No, anyone may register to support the City of Los Angeles' volunteer efforts.")}} |
256 | -</p> |
257 | -<h2 class='paper-strip'>{{=T("Is my Donation tax deductible?")}}</h2> |
258 | -<p> |
259 | -{{=T("Yes. All donations are tax deductible. The partner organization that receives your donation will provide a receipt for your donation. Please make sure you obtain your tax receipt from the organization and keep it in a safe place for tax purposes. The City of Los Angeles will not issue receipts for your donation.")}} |
260 | -</p> |
261 | +<h1>{{=response.title}}</h1> |
262 | +{{for entry in entries:}} |
263 | + <h2 class='paper-strip'>{{=XML(entry[0])}}</h2> |
264 | + <p>{{=XML(entry[1])}}<p> |
265 | + <ol> |
266 | + {{for replyItem in entry[2]:}} |
267 | + <li>{{=XML(replyItem)}}</li> |
268 | + {{pass}} |
269 | + </ol> |
270 | +{{pass}} |
271 | + |
272 | </div> |
273 | |
274 | === modified file 'views/footer.html' |
275 | --- views/footer.html 2011-09-11 11:46:07 +0000 |
276 | +++ views/footer.html 2011-09-13 13:20:51 +0000 |
277 | @@ -2,6 +2,7 @@ |
278 | <ul class='footer-nav'> |
279 | <li><a href='/{{=request.application}}/default/contact'>{{=T("Contact")}}</a></li> |
280 | <li><a href='/{{=request.application}}/default/help'>{{=T("Help")}}</a></li> |
281 | + <li><a href='/{{=request.application}}/default/faq'>{{=T("FAQ")}}</a></li> |
282 | <li><a href='/{{=request.application}}/default/sitemap'>{{=T("Sitemap")}}</a></li> |
283 | <li><a href='/{{=request.application}}/default/disclaimer'>{{=T("Disclaimer")}}</a></li> |
284 | <li><a href='http://readyla.org' alt='{{=T("ReadyLA Website")}} - {{=T("This link will open a new browser window.")}}'>ReadyLA</a></li> |
Are these lines temporary code to avoid adding strings to the languages file?
T = lambda str : str