Merge lp:~graeme-acm/sahana-eden/LA into lp:sahana-eden/la

Proposed by Graeme Foster
Status: Merged
Merged at revision: 2705
Proposed branch: lp:~graeme-acm/sahana-eden/LA
Merge into: lp:sahana-eden/la
Diff against target: 96 lines (+31/-29)
3 files modified
controllers/don.py (+24/-22)
static/styles/S3/sahana.css (+4/-4)
views/layout.html (+3/-3)
To merge this branch: bzr merge lp:~graeme-acm/sahana-eden/LA
Reviewer Review Type Date Requested Status
Fran Boon Pending
Review via email: mp+74164@code.launchpad.net

Description of the change

Fixed log 296

Spotted a bug in the logic for the donation request button

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'controllers/don.py'
--- controllers/don.py 2011-09-05 15:50:16 +0000
+++ controllers/don.py 2011-09-06 06:48:25 +0000
@@ -164,28 +164,30 @@
164 164
165 # Defined in the Model for use from Multiple Controllers for unified menus165 # Defined in the Model for use from Multiple Controllers for unified menus
166 output = response.s3.req_controller()166 output = response.s3.req_controller()
167 output["rheader"].append(167 reportButtons = DIV(
168 DIV(168 BUTTON(T("Donation Request Form"),
169 BUTTON(T("Donation Request Form"),169 _class="accept-button",
170 _class="accept-button",170 _onClick="javascript: window.location='%s'" % \
171 _onClick="javascript: window.location='%s'" % \171 URL(c=request.controller,
172 URL(c=request.controller,172 f="req_print",
173 f="req_print",173 args=request.args
174 args=[request.args[0]]174 )
175 )175 ),
176 ),176 # Also in controllers/vol.py - DRY
177 # Also in controllers/vol.py - DRY177 A(IMG(_src="/%s/static/img/get_adobe_reader.png" % request.application,
178 A(IMG(_src="/%s/static/img/get_adobe_reader.png" % request.application,178 _title="%s - %s" % (T("Get Adobe Reader"),
179 _title="%s - %s" % (T("Get Adobe Reader"),179 T("This link will open a new browser window.")),
180 T("This link will open a new browser window.")),180 _alt=T("Get Adobe Reader"),
181 _alt=T("Get Adobe Reader"),181 _width=158,
182 _width=158,182 _height=39,
183 _height=39,183 _style="float:right;"),
184 _style="float:right;"),184 _href="http://www.adobe.com/products/acrobat/readstep2.html",
185 _href="http://www.adobe.com/products/acrobat/readstep2.html",185 _target="_blank"),
186 _target="_blank"),186 )
187 )187 if "rheader" in output:
188 )188 output["rheader"].append(reportButtons)
189 else:
190 output["rheader"] = reportButtons
189 return output191 return output
190192
191def req_print():193def req_print():
192194
=== modified file 'static/styles/S3/sahana.css'
--- static/styles/S3/sahana.css 2011-09-05 15:50:16 +0000
+++ static/styles/S3/sahana.css 2011-09-06 06:48:25 +0000
@@ -195,10 +195,10 @@
195#header{overflow:hidden;position:relative;}195#header{overflow:hidden;position:relative;}
196#header #la-logo, #header #logo{float:left;}196#header #la-logo, #header #logo{float:left;}
197#header #la-logo{margin-top:24px;}197#header #la-logo{margin-top:24px;}
198#header #logo{margin:55px 0px 0px 70px;}198#header #logo{margin:12px 0px 0px 70px;}
199199
200/*#header #personal-menu{float:right;width:50%;margin-right:0px;font-size:0.90em;}*/200
201#header #personal-menu{float:right;width:400px;margin-right:0px;font-size:0.90em;}201#header #personal-menu{float:right;width:798px;margin-right:0px;font-size:0.90em;}
202#header #personal-menu .pmenu-wrapper{float:right;}202#header #personal-menu .pmenu-wrapper{float:right;}
203#header #personal-menu *{float:left;}203#header #personal-menu *{float:left;}
204#header #personal-menu ul{border-right:1px #6994bc solid;padding-bottom:5px;}204#header #personal-menu ul{border-right:1px #6994bc solid;padding-bottom:5px;}
205205
=== modified file 'views/layout.html'
--- views/layout.html 2011-09-05 15:50:16 +0000
+++ views/layout.html 2011-09-06 06:48:25 +0000
@@ -74,13 +74,13 @@
74 <img src='/{{=request.application}}/static/img/la/cityofla_logo.png' height='114' width='112' alt='{{=T("City of Los Angeles Emergency Management Department")}}' />74 <img src='/{{=request.application}}/static/img/la/cityofla_logo.png' height='114' width='112' alt='{{=T("City of Los Angeles Emergency Management Department")}}' />
75 </a>75 </a>
76 </div> 76 </div>
77 <div id='personal-menu'>
78 {{=MENUS3(response.menu, _type="personal-menu", _current_lang=request.vars.get("_language"), _menu_langs=s3.menu_lang)}}
79 </div>
77 <div id='logo'>80 <div id='logo'>
78 <a href='/{{=request.application}}' title='{{=T("Return to Home Page")}}'>81 <a href='/{{=request.application}}' title='{{=T("Return to Home Page")}}'>
79 <img src='/{{=request.application}}/static/img/la/logo.png' height='58' width='284' alt='{{=T("Give to Los Angeles Logo")}}' />82 <img src='/{{=request.application}}/static/img/la/logo.png' height='58' width='284' alt='{{=T("Give to Los Angeles Logo")}}' />
80 </a>83 </a>
81 </div>
82 <div id='personal-menu'>
83 {{=MENUS3(response.menu, _type="personal-menu", _current_lang=request.vars.get("_language"), _menu_langs=s3.menu_lang)}}
84 </div>84 </div>
85 <a href='#main-content' class='skipnavigation'>Skip to Content</a> 85 <a href='#main-content' class='skipnavigation'>Skip to Content</a>
86 {{=MENUS3(response.menu, _type="nav", _id="nav", _highlight=request["wsgi"]["environ"]["PATH_INFO"])}}86 {{=MENUS3(response.menu, _type="nav", _id="nav", _highlight=request["wsgi"]["environ"]["PATH_INFO"])}}

Subscribers

People subscribed via source and target branches

to all changes: