Create templates more efficiently on the institution and site level

Bug #1922837 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Unassigned

Bug Description

My story
==========

As an institution admin I want to create a new template more efficiently that can be copied into new accounts.

How
==========

Changes are made to the collection 'Edit' screen for *institution and site portfolios only* (we already have an advanced sharing option of 'Copy to new members' that is only available on these two levels and thus might be used to tap into):
* Add a switch 'Template' to the collection 'Add' screen. This is needed because it can't be guaranteed that the template is only created to be an auto-copied one.
  * If the switch on the collection is set to 'Yes' and the screen is saved, grey out all 'Template' switches on pages that are included in the collection or will be added in the future (and display 'Yes' in the greyed out state) so that it can inherit the settings. *Side note*: When a page is removed from the collection, it stays a template, but it's not auto-copied because the auto-copying functionality sits on the collection side of things.
  * If the switch on the collection is set to 'Yes' and the screen is saved, automatically turn 'Prevent removing of blocks' on because the placeholder blocks signal to pharmacists what the recertification requirements are and they should not be removed. However, it is still possible to reset this for individual pages by the admin or later pharmacists and thus doesn't become a locked template setting like the instructions, i.e. this switch is not greyed out.
  * If the 'Template' switch is set to 'No' on the collection again, upon saving, the individual 'Template' switches on the pages can be set separately (typical behaviour in Mahara for hierarchies). There is not going to be a change to the 'Prevent removing of blocks' switches.
  * If the 'Template' switch on the collection is set back to 'Yes', all 'Template' switches on the pages are greyed out again (see above) and the 'Prevent removing of blocks' switch is set to 'Yes' but not greyed out.
* Add a switch for 'Current auto-copied template'.
  * When ticked and the collection is saved, i.e. click the 'Next: Add pages' button, the previously auto-copied template in the institution has its status reset to 'No'. The switch can be put back to 'No' if no institution portfolio should be auto-copied so that there are no auto-copied templates in an institution or on the site level.
  * Since this is a destructive option, have modal that tells of the consequences, e.g. the only active template, name of the old template that is set to be inactive, auto-copying, old template gets sharing permissions dropped.
  * When the switch is flipped back to 'No', also bring up a modal that tells of the consequences, i.e. no template will be copied automatically.
* Sharing when 'Current auto-copied template' is set to 'Yes':
  * Automatically share the portfolio with the institution, make it copyable, and use it as portfolio that is copied automatically into new accounts henceforth.
  * Automatically remove the sharing permissions for the old portfolio that is not considered institution template any more.

When this portfolio template is copied, keep the collection title and prefix it with the display name. That way, the name is seen more easily than in the secondary information. Yes, it doubles up, but keeps it clear.
  * The name prefix is to be done only on portfolios marked as 'Template'. The portfolio authors can still change the collection title to something else once it's in their account.
  * Only prefix the collection title, not a every page. Page titles stay as they are.

Tags: newfeature
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11646

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11646
Committed: https://git.mahara.org/mahara/mahara/commit/44e0d5e90c0bab0aed0d8ba086c322b03bbb2ae3
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 44e0d5e90c0bab0aed0d8ba086c322b03bbb2ae3
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Feb 18 08:55:46 2021 +1300

Bug 1922837: Improved template creation

As an institution admin I want to create a new template so that members
can receive a copy automatically placed into their account and can't change
too many things in the template.

Sponsored by Pharmacy Council New Zealand

Change-Id: I6b9b88d0d292ad06f56c46c94e38fc0c12941caf

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11666

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11666
Committed: https://git.mahara.org/mahara/mahara/commit/04841e4b487b3fd616c9f645a55c8179e64c37bb
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 04841e4b487b3fd616c9f645a55c8179e64c37bb
Author: Robert Lyon <email address hidden>
Date: Mon Jan 11 14:25:33 2021 +1300

Bug 1922837: Improved template creation

- setting up the collection_template table

Change-Id: I7ad14c50372d0165807fe92e18d648111aea60af
Signed-off-by: Robert Lyon <email address hidden>

tags: added: newfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11744

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.