|
|
|
@ -20,7 +20,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
{include file='globalheader.tpl' InlineEdit=true Owl=true} |
|
|
|
|
|
|
|
|
|
<div id="page-manage-resources" class="admin-page"> |
|
|
|
|
<div> |
|
|
|
|
<div style="padding-top:1rem;"> |
|
|
|
|
<div class="dropdown admin-header-more pull-right"> |
|
|
|
|
<button class="btn btn-default" type="button" id="moreResourceActions" data-toggle="dropdown"> |
|
|
|
|
<span class="no-show">More</span> |
|
|
|
@ -28,7 +28,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<span class="caret"></span> |
|
|
|
|
</button> |
|
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="moreResourceActions"> |
|
|
|
|
|
|
|
|
|
{if ! $WP_EMBED} |
|
|
|
|
<li role="presentation"> |
|
|
|
|
<a role="menuitem" href="{$Path}admin/manage_resource_groups.php">{translate key="ManageResourceGroups"}</a> |
|
|
|
|
</li> |
|
|
|
@ -39,6 +39,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<a role="menuitem" href="{$Path}admin/manage_resource_status.php">{translate key="ManageResourceStatus"}</a> |
|
|
|
|
</li> |
|
|
|
|
<li role="presentation" class="divider"></li> |
|
|
|
|
{/if} |
|
|
|
|
<li role="presentation"> |
|
|
|
|
<a role="menuitem" href="#" class="import-resources" id="import-resources"> |
|
|
|
|
{translate key="ImportResources"} |
|
|
|
@ -70,13 +71,13 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<h1>{translate key='ManageResources'}</h1> |
|
|
|
|
{if ! WP_EMBED}<h1>{translate key='ManageResources'}</h1>{/if} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="panel panel-default filterTable" id="filter-resources-panel"> |
|
|
|
|
<form id="filterForm" class="horizontal-list" role="form" method="get"> |
|
|
|
|
<div class="panel-heading"><span |
|
|
|
|
class="glyphicon glyphicon-filter"></span> {translate key="Filter"} {showhide_icon} |
|
|
|
|
<div class="panel panel-default filterTable" id="filter-resources-panel" {if $WP_EMBED}style="margin-right:5rem;"{/if}> |
|
|
|
|
<form id="filterForm" class="horizontal-list" role="form" method="get" action="{$smarty.server.SCRIPT_NAME}"> |
|
|
|
|
<input type="hidden" name="page" value="{$WP_ADMIN_PAGE}"/> |
|
|
|
|
<div class="panel-heading"><span class="glyphicon glyphicon-filter"></span> {translate key="Filter"} {showhide_icon} |
|
|
|
|
</div> |
|
|
|
|
<div class="panel-body"> |
|
|
|
|
|
|
|
|
@ -366,7 +367,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
{/if} |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<a href="{$smarty.server.SCRIPT_NAME}?action={ManageResourcesActions::ActionPrintQR}&rid={$id}" |
|
|
|
|
<a href="{$BEBS_BOOKED_SCRIPT|default:$smarty.server.SCRIPT_NAME}?action={ManageResourcesActions::ActionPrintQR}&rid={$id}" |
|
|
|
|
target="_blank">{translate key=PrintQRCode} <i class="fa fa-qrcode"></i></a> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -472,6 +473,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="addResourceForm" class="form" role="form" method="post" |
|
|
|
|
ajaxAction="{ManageResourcesActions::ActionAdd}" enctype="multipart/form-data"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionAdd}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -540,6 +542,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<div id="imageDialog" class="modal" tabindex="-1" role="dialog" aria-labelledby="imageModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="imageForm" method="post" enctype="multipart/form-data" ajaxAction="{ManageResourcesActions::ActionChangeImage}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeImage}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -578,16 +581,19 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
<form id="removeImageForm" method="post" ajaxAction="{ManageResourcesActions::ActionRemoveImage}"> |
|
|
|
|
<input type="hidden" id="removeImageName" {formname key=RESOURCE_IMAGE} /> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionRemoveImage}"/> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<form id="defaultImageForm" method="post" ajaxAction="{ManageResourcesActions::ActionDefaultImage}"> |
|
|
|
|
<input type="hidden" id="defaultImageName" {formname key=RESOURCE_IMAGE} /> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionDefaultImage}"/> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<div id="copyDialog" class="modal" tabindex="-1" role="dialog" aria-labelledby="copyModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="copyForm" method="post" enctype="multipart/form-data" |
|
|
|
|
ajaxAction="{ManageResourcesActions::ActionCopyResource}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionCopyResource}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -618,6 +624,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<div id="durationDialog" class="modal" tabindex="-1" role="dialog" aria-labelledby="durationModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="durationForm" method="post" role="form" ajaxAction="{ManageResourcesActions::ActionChangeDuration}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeDuration}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -722,6 +729,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<div id="capacityDialog" class="modal" tabindex="-1" role="dialog" aria-labelledby="capacityModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="capacityForm" method="post" role="form" ajaxAction="{ManageResourcesActions::ActionChangeCapacity}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeCapacity}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -759,6 +767,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<div id="accessDialog" class="modal" tabindex="-1" role="dialog" aria-labelledby="accessModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="accessForm" method="post" role="form" ajaxAction="{ManageResourcesActions::ActionChangeAccess}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeAccess}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -927,6 +936,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
<div id="statusDialog" class="hide"> |
|
|
|
|
<form class="statusForm" method="post" ajaxAction="{ManageResourcesActions::ActionChangeStatus}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeStatus}"/> |
|
|
|
|
<div class="control-group form-group"> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label>{translate key=Status} |
|
|
|
@ -977,6 +987,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<div id="deletePrompt" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="deleteResourceDialogLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="deleteForm" method="post" ajaxAction="{ManageResourcesActions::ActionDelete}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionDelete}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -1010,6 +1021,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<form id="bulkUpdateForm" method="post" ajaxAction="{ManageResourcesActions::ActionBulkUpdate}" |
|
|
|
|
class="form-vertical" |
|
|
|
|
role="form"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionBulkUpdate}"/> |
|
|
|
|
<div class="modal-dialog modal-lg"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -1406,6 +1418,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<form id="bulkDeleteForm" method="post" ajaxAction="{ManageResourcesActions::ActionBulkDelete}" |
|
|
|
|
class="form-vertical" |
|
|
|
|
role="form"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionBulkDelete}"/> |
|
|
|
|
<div class="modal-dialog modal-lg"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -1479,6 +1492,7 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<form id="changeUserForm" method="post" ajaxAction="{ManageResourcesActions::ActionChangeUserPermission}"> |
|
|
|
|
<input type="hidden" id="changeUserId" {formname key=USER_ID} /> |
|
|
|
|
<input type="hidden" id="changeUserType" {formname key=PERMISSION_TYPE} /> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeUserPermission}"/> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<div id="groupDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="browseGroupsDialogLabel" |
|
|
|
@ -1520,12 +1534,14 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
<form id="changeGroupForm" method="post" ajaxAction="{ManageResourcesActions::ActionChangeGroupPermission}"> |
|
|
|
|
<input type="hidden" id="changeGroupId" {formname key=GROUP_ID} /> |
|
|
|
|
<input type="hidden" id="changeGroupType" {formname key=PERMISSION_TYPE} /> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeGroupPermission}"/> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="resourceGroupDialog" tabindex="-1" role="dialog" |
|
|
|
|
aria-labelledby="resourceGroupsModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="resourceGroupForm" method="post" ajaxAction="{ManageResourcesActions::ActionChangeResourceGroups}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeResourceGroups}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|
|
|
@ -1547,11 +1563,13 @@ along with Booked Scheduler. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
<form id="colorForm" method="post" ajaxAction="{ManageResourcesActions::ActionChangeColor}"> |
|
|
|
|
<input type="hidden" id="reservationColor" {formname key=RESERVATION_COLOR} /> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeColor}"/> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<div id="creditsDialog" class="modal" tabindex="-1" role="dialog" aria-labelledby="creditsModalLabel" |
|
|
|
|
aria-hidden="true"> |
|
|
|
|
<form id="creditsForm" method="post" role="form" ajaxAction="{ManageResourcesActions::ActionChangeCredits}"> |
|
|
|
|
<input type="hidden" name="action" value="{$WP_ADMIN_POST_PREFIX}_{ManageResourcesActions::ActionChangeCredits}"/> |
|
|
|
|
<div class="modal-dialog"> |
|
|
|
|
<div class="modal-content"> |
|
|
|
|
<div class="modal-header"> |
|