#6391 (The Parameters toggle button doesn't go away)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Summary
The
button in /cert/CertificatesByEnrolment/183 doesn't go away even when I set parameters = dict() and params_layout = None
Children
Comments
- 1 year ago by Luc Saffre about #6391 (The Parameters toggle button doesn't go away) : This looks like a good solution.
- 1 year ago by Luc Saffre about #6391 (The Parameters toggle button doesn't go away) : Together we added a new site_data attribute 'data_exporter', which is true when the user is a DataExporter.
- 1 year ago by Luc Saffre in reply to Luc Saffre about #6391 (The Parameters toggle button doesn't go away) : PS no I cannot hide the top_toolbar because normal teachers need some buttons (like do_print and update_summaries).
- 1 year ago by Luc Saffre about #6391 (The Parameters toggle button doesn't go away) (1 reply) : Maybe we still should add a user role ParamsEditor, and users without that role would never see the parameter panel. In prima.school.Groups I now set hide_top_toolbar = True because otherwise a normal teacher can open the parameter panel and set "teacher" to a colleague, and thereby circumvent our r...
- 1 year ago by Luc Saffre in reply to Sharif Mehedi about #6391 (The Parameters toggle button doesn't go away) : Works. Looks good.
- 1 year ago by Sharif Mehedi in reply to Luc Saffre about #6391 (The Parameters toggle button doesn't go away) (1 reply) : Parameters toggle button is only available on multi row context.
- 1 year ago by Luc Saffre in reply to Luc Saffre about #6391 (The Parameters toggle button doesn't go away) : No, they didn't ask to disable parameters panel for certain user types. The actual issue is that the normal teachers have too many useless buttons.
- 1 year ago by Luc Saffre about #6391 (The Parameters toggle button doesn't go away) (1 reply) : That would be overkill (afaics). But what if we remove that button altogether in the detail view?
- 1 year ago by Sharif Mehedi about #6391 (The Parameters toggle button doesn't go away) : We need to have some Actor specific option to disable parameters panel then.
- 1 year ago by Luc Saffre about #6391 (The Parameters toggle button doesn't go away) (1 reply) : Aha. Good. Okay so far. The actual issue is that they want to disable parameters panel for certain user types.
- 1 year ago by Sharif Mehedi about #6391 (The Parameters toggle button doesn't go away) : This happens because param_layout is not empty and is populated from the Certificate.get_simple_parameters
- 1 year ago by Luc Saffre about #6391 (The Parameters toggle button doesn't go away) : Created new Ticket #6391 (The Parameters toggle button doesn't go away).