<turbo-stream action="replace" target="content"><template><turbo-frame id="content"><h5 class="strong">Group Management </h5><dl class="indent-dd"><dt>Groups</dt><dd>After using PTGolf.us for a while, there maybe many players who are no longer active. They may have moved, decided it wasn't a good fit for them or even passed away. While you can keep their records forever, you may just want to delete them and keep your list of players trimmed down. Players are grouped by three states:</dd><dd><ul class="classic pl-4"><li>Active - Player who have played in the last 60 days or so.</li><li>Inactive - Player who's date last played is over 60 day ago but they still have Games/Rounds stored.</li><li>Expired - Players who no longer have an Games/Rounds associated with them.</li></ul></dd><dd>How they get to an expired status is by using a few Group management helpers.</dd><dt>Trimming Rounds/Games</dt><dd>Again, you can keep old games around forever for the sake of some argument, but after about a couple years they have limited value. There is a Group Preference <i>trim_months</i> that is set to how many months worth of games you want to keep around. On the Group Show page there is a button <form data-turbo-confirm="Are You Sure? Will delete all rounds over 18 months old?" class="btn-danger py-0 inline-block mr-1" method="post" action=""><input type="hidden" name="_method" value="patch" autocomplete="off" /><button type="submit"><span><i class="fas fa-cut"></i><span>Trim Games/Rounds</span></span></button><input type="hidden" name="authenticity_token" value="_jPjiOvCp0nY7f93RdlmfCaNKx6B3QDTy8EsVi95tKnO4eep_KdOkvXkey0_jf4UJa4AM38q6sxXk1MEjOikPg" autocomplete="off" /></form>that will delete all Games and Rounds that are more than the number of months set in the preference.</dd><dd>Clicking on that button will generate a confirmation alert. If you okay the action,it will delete the games/rounds past that date. That will most likely move some players from an <strong>Inactive</strong> status to an <strong>Expired</strong> status.</dd><dt>Trimming Expired Players</dt><dd>There is another button on the Group Show page       <a class="rounded py-px px-1 btn-warning mr-2 inline-block" href="#"><span><i class="fas fa-cut"></i><span>Trim Expired Players</span></span></a>will display of a list of all expired players. The list will include a `checkbox` labeled `Del`. You can then select what players you want to delete by checking their checkbox and clicking on the submit button.</dd></dl></turbo-frame></template></turbo-stream>