File tree Expand file tree Collapse file tree 6 files changed +30
-4
lines changed
Expand file tree Collapse file tree 6 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ Fixed:
110110- make setup.py install the Zope and wsgi.py frontends under
111111 share/frontends. This matches the install fo the cgi-bin/roundup.cgi
112112 frontend. (John Rouillard)
113+ - prevent submit button from showing up when using _generic.item.html
114+ if the user doesn't have edit permissions
113115
114116Features:
115117
Original file line number Diff line number Diff line change @@ -228,6 +228,26 @@ If you use this and it works for you please followup with an email to
228228the roundup-users at lists.sourceforge.net mailing list so we can
229229enable it by default in a future release.
230230
231+
232+ Hide submit button during readonly use of _generic.item.html (optional)
233+ -----------------------------------------------------------------------
234+
235+ The submit button in _generic.item.html always shows up even when the
236+ user doesn't have edit perms. Change the ``context/submit`` html to
237+ read::
238+
239+ <td colspan=3 tal:content="structure context/submit"
240+ tal:condition="context/is_edit_ok">
241+
242+ in your TAL based templates. The ``jinja2`` based templates are
243+ missing this file, but if you implemented one you want to surround the
244+ jinja2 code with::
245+
246+ {% if context.is_view_ok() %}
247+ <submit button code here>
248+ {% endif %}
249+
250+
231251Migrating from 2.0.0 to 2.1.0
232252=============================
233253
Original file line number Diff line number Diff line change 3636</ tr >
3737< tr >
3838 < td > </ td >
39- < td colspan =3 tal:content ="structure context/submit ">
39+ < td colspan =3 tal:content ="structure context/submit "
40+ tal:condition ="context/is_edit_ok ">
4041 submit button will go here
4142 </ td >
4243</ tr >
Original file line number Diff line number Diff line change 3636</ tr >
3737< tr >
3838 < td > </ td >
39- < td colspan =3 tal:content ="structure context/submit ">
39+ < td colspan =3 tal:content ="structure context/submit "
40+ tal:condition ="context/is_edit_ok ">
4041 submit button will go here
4142 </ td >
4243</ tr >
Original file line number Diff line number Diff line change 3636</ tr >
3737< tr >
3838 < td > </ td >
39- < td colspan =3 tal:content ="structure context/submit ">
39+ < td colspan =3 tal:content ="structure context/submit "
40+ tal:condition ="context/is_edit_ok ">
4041 submit button will go here
4142 </ td >
4243</ tr >
Original file line number Diff line number Diff line change 3636</ tr >
3737< tr >
3838 < td > </ td >
39- < td colspan =3 tal:content ="structure context/submit ">
39+ < td colspan =3 tal:content ="structure context/submit "
40+ tal:condition ="context/is_edit_ok ">
4041 submit button will go here
4142 </ td >
4243</ tr >
You can’t perform that action at this time.
0 commit comments