Bug 25079: Add a 'edit' functionality to the Clubs tool in the staff interface
authorHammat Wele <hammat.wele@inlibro.com>
Wed, 12 Apr 2023 00:32:02 +0000 (00:32 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Jun 2023 14:00:49 +0000 (11:00 -0300)
commitee24e53a66562fb2a71ac1c82356d7928eb48e83
treed426445b3a49214764edfee382e3e321bf514ae0
parent45852c950e8a7a2a5611d818790192dab76c1370
Bug 25079: Add a 'edit' functionality to the Clubs tool in the staff interface

A club enrollment can be cancel but it can't be edited
This patch add a 'edit' functionality to the Clubs tool in the staff interface

Test plan
1. Create a club template
    1.1. Go to Tools > Patron clubs
    1.2. Click on 'New Club Template'
    1.3. Fill the form
    1.4. on the 'Club fields' section, Click on Add new field
    1.5. Fill in the form
    1.6. on the 'Enrollment fields' section, Click on Add new field
    1.7. Fill in the form
    1.8. Click on Save button

2. Creation of the club
    2.1. Go to Tools > Patron clubs > 'Clubs' section (bottom)
    2.2. Click on the 'New Club' button and select the club template create on step 1
    2.3. Fill in the form
    2.4. Click on Save button

3. Club enrollement
    On the intranet
    3.1. Search for a pratron and open the patron folder
    3.2. Click on the 'Clubs' tab
    3.3. Find the name of the club and click on 'Enroll'
    3.4. Fill the questionnaire
    3.5. Confirm registration
        ---> Note that the enrollement can be canceled but it cannot be modified

4.  Apply the patch
5. Click one more time on the 'Clubs' tab
   ---> Note that the enrollement can now be modified

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
clubs/patron-enroll.pl
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt
opac/svc/club/enroll
svc/club/enroll