Introduction

Set up a new toggle on every AY card to manage which active AY card min price should be displayed on the Yugo website.


  • Add a new toggle called “Display Min. Price on website” below the academic year name setting 
    • When the toggle is switched to yes, the min price of this academic year will be displayed on the website. Noted that if the toggles for different academic years are turned on at the same time, the min price within these academic years will be displayed

  • When switching this toggle to “Yes” and clicking submit button, there is a modal coming up as a double confirmation
    • By default there are no cases where all toggles are turned off, so the text here is "The toggle of other academic year has been switched on, are you sure to turn this toggle on as well?"
      • If “Yes, turn on” is selected, the double confirmation modal and the edit academic year modal will be disappeared at the same time
      • If “Cancel” is selected, the double confirmation modal will be disappeared, but the edit academic year modal will still be shown. Also, the toggle will go back to the previous status
  • When switching this toggle to “No”, and clicking submit button, there is a modal coming up as a double confirmation
    • The text on the double confirmation modal should be "Are you sure to stop displaying the min price of this academic year?"
      • If “Yes, stop” is selected, the double confirmation modal and the edit academic year modal will be disappeared at the same time
      • If “Cancel” is selected, the double confirmation modal will be disappeared, but the edit academic year modal will still be shown. Also, the toggle will go back to the previous status

  • If there is only one toggle switched to yes, it is not allowed to turn it off. When trying to do it, there is one sentence showing below the toggle as a reminder. The sentence should be "Make sure at least one toggle is switched to yes, so this toggle cannot be turned off"

  • When the toggle of the AY card is switched to Yes, there is an icon shown on this AY card
  • When this icon is hovered, there is one sentence coming up
    • When only one toggle is turned on, the text should be "The price of this Academic Year will be the Displayed Min. Price"
    • When more than one toggle is turned on, the text should be"To display the min price on the website"
  • Only one toggle under the academic year is turned on: which toggle of the AY card is switched to Yes, the room type min price of this AY will be displayed on the Yugo website (only showing on the portal of room type)
  • There are toggles turned on under more than one academic year: compared with the different prices of different AYs, the min price of room type will be shown on the website (=display the mini price of room type within different AYs on website portal of room type)


State:

  • If there is more than one active AY card and only one toggle is switched to yes, when trying to disable or close this AY card which has the turned-on toggle, it is not allowed to do that and when trying to do that, there is a modal coming up. The text on the modal should be “Only the min price of this academic year is displayed on the website, you have to turn on another toggle of the academic year to display and then you are able to disable or close this academic year card”
  • If there is only one active AY card and only this AY card has the turned-on toggle, when trying to disable or close this AY card, it is allowed to do that, in case the property’s booking is not going to sell
  • This edit option on AY card is always clickable, but the academic year name cannot be changed unless we switch the enable direct let bookings to No.