{* Copyright 2011-2020 Nick Korbel This file is part of Booked Scheduler. Booked Scheduler is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Booked Scheduler is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Booked Scheduler. If not, see . *} {include file='globalheader.tpl'}

{translate key=ManageAccessories}

{translate key="AddAccessory"} {showhide_icon}
{foreach from=$accessories item=accessory} {cycle values='row0,row1' assign=rowCss} {/foreach}
{sort_column key=AccessoryName field=ColumnNames::ACCESSORY_NAME} {sort_column key=QuantityAvailable field=ColumnNames::ACCESSORY_QUANTITY} {translate key='Resources'} {translate key='Actions'}
{$accessory->Name} {$accessory->QuantityAvailable|default:'∞'} {if $accessory->AssociatedResources == 0}{translate key=All}{else}{$accessory->AssociatedResources}{/if} {translate key=Edit} | {translate key=Delete}
{csrf_token} {include file="javascript-includes.tpl"} {jsfile src="ajax-helpers.js"} {jsfile src="admin/accessory.js"} {jsfile src="js/jquery.form-3.09.min.js"}
{include file='globalfooter.tpl'}