As per the discussion on the link below. Can we have an option to either archive or make team historical so they don't show when adding picks?
Installing & initial Configuration
Installing & initial Configuration
Upvote
1
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
This has been implemented in Pickem 2.2.0 Beta 4.
I want to emphasize that this functionality is not a PERMANENT ACTION... eg, setting a team to INACTIVE is not permanent, you can set a team to Inactive and then at a later time, make that team active again. Comes in handy for Sports like the Premier League where a team might get relegated and then after the next season, might get promoted again. Its also handy for Sports like NFL that have a Pro Bowl which is conference against conference, so (as you see in the image below), I have two teams that represent the conference and those are only used during the play off pools (so I make them inactive during the regular season). Anyway... just wanted to point that out.
As you can see, the Team listing page will now have 2 separate sections, one for Active Teams (on the top) and one for Inactive teams (on the bottom).
View attachment 6618
The Add team and Edit team forms now have 2 new inputs (Team status and Exclude from survivor).
Team status: This option lets you set whether the team is ACTIVE (for use during the current season(s)) or INACTIVE, meaning that the team is not available for use within the current season(s)). This is mainly used for backend administration, however, setting a team to inactive effects survivor (the listing of available teams will only display active teams)
Note: This does not effect previous seasons on the frontend... eg, if you set Oakland Raiders to Inactive and you view any previous seasons, you will still see the Oakland Raiders.
Exclude from survivor: This option lets you exclude an active team (inactive teams are already excluded) from the listing of Available teams in Survivor. This comes in handy to hide teams like NFC and AFC (used for conference vs conference games).
View attachment 6617
As you can see here, the listing of Available teams does not include any of the inactive teams listed above.
View attachment 6616
So what does setting a team to inactive do? The main thing is that on the Add game and Add games forms, the dropdown lists for Visitor team and Home team only include ACTIVE teams.
View attachment 6621
View attachment 6620
But what about EDITING a game? Well, games are both CURRENT season and PAST seasons, so for historical purposes, inactive teams are still TEAMS in the system that have history (viewable on the frontend), so the dropdown HAS to include both Active and Inactive teams... Sooooo... as you can see, what I've done is split the dropdown list into 2 groups (Active teams and Inactive teams).
Note: In 10 years, I've never had to edit a GAME and change a team on my LIVE SITE, so I highly doubt that this is even going to be noticed (unless you are messing around playing with the system on your development instance). Still, its nice to at least have some separation (for sanity sake).
View attachment 6619
Thats pretty much it. The MAIN two things to this is the displaying of ACTIVE TEAMS only on the Add game and Add games input forms as well as being able to exclude teams from the Available Teams block on Survivor.