comparison doc/upgrading.txt @ 6753:2bca9fcef70d

Don't display submit button with readoly use of _generic.item.html _generic.item.html in all templates except jinja2 displays the submit button even when the user has no edit rights. Check for is_edit_ok before emitting the submit button. The jinja2 template doesn't have an _generic.item.html template.
author John Rouillard <rouilj@ieee.org>
date Mon, 04 Jul 2022 23:43:49 -0400
parents d32d43e4a5ba
children 15238a434368
comparison
equal deleted inserted replaced
6752:d640e9a5d6d7 6753:2bca9fcef70d
225 to enable this mode. Note that this is experimental and was added 225 to enable this mode. Note that this is experimental and was added
226 during the 2.2.0 beta period, so it is enabled using a feature flag. 226 during the 2.2.0 beta period, so it is enabled using a feature flag.
227 If you use this and it works for you please followup with an email to 227 If you use this and it works for you please followup with an email to
228 the roundup-users at lists.sourceforge.net mailing list so we can 228 the roundup-users at lists.sourceforge.net mailing list so we can
229 enable it by default in a future release. 229 enable it by default in a future release.
230
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
230 250
231 Migrating from 2.0.0 to 2.1.0 251 Migrating from 2.0.0 to 2.1.0
232 ============================= 252 =============================
233 253
234 Rdbms version change from 5 to 6 (**) 254 Rdbms version change from 5 to 6 (**)

Roundup Issue Tracker: http://roundup-tracker.org/