Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
de1d668
updated structure
lucs7 Jan 14, 2025
4b47eb2
updated manage_resources page to support Datatables pagination
lucs7 Jan 12, 2025
39ae910
Updated event handing in schedule.js to work with Datatables
lucs7 Jan 12, 2025
7ddb038
update ManageReservation and ManageQuota to work with DataTables
lucs7 Jan 12, 2025
d18abef
small edit in tpl to sync according state with aria-state
lucs7 Jan 12, 2025
80dd1d5
Add "group role" change button for groups that are not a GroupAdmin yet
lucs7 Jan 13, 2025
a4e4b7d
updated layout of schedule legend layout
lucs7 Jan 13, 2025
81f6456
updated structure
lucs7 Jan 14, 2025
b34720d
changed deledate to on function. restructuring of event callers to wo…
lucs7 Jan 18, 2025
de466b6
add "add" fileld for group admin role
lucs7 Jan 18, 2025
4b064ac
renamed table to reservationColorTable
lucs7 Jan 18, 2025
07f6d71
updated js structure. added data element to response
lucs7 Jan 19, 2025
7378c3b
updated translation of "AllResourcesOn" in de-de
lucs7 Jan 19, 2025
cbbbe8c
updated js structure of group.js
lucs7 Jan 19, 2025
0008695
added trumbowyg as x-editable type and reformated resourceDetailsPopu…
lucs7 Jan 23, 2025
35761ee
added dompurify to sanatize user input
lucs7 Jan 23, 2025
d3da9b5
updated qr code presentation with bootstraps
lucs7 Jan 26, 2025
f341dea
updated resource admin layout and fixed some collapse div errors
lucs7 Jan 26, 2025
dd2e15b
Merge pull request #3 from LibreBooking/dev-bootstrap5
lucs7 Jan 26, 2025
d0d084f
reversed some changes and corrected errors
lucs7 Jan 31, 2025
d45d038
updated reservation tpl
lucs7 Jan 31, 2025
ab3c64c
updated resourceName class in ressource management to resourceNameField
lucs7 Feb 1, 2025
220fdd5
reverted group.js to function structure
lucs7 Feb 4, 2025
283f9da
small mistake in deleteUser function
lucs7 Feb 5, 2025
6fb1f19
in response to edit request from pull
lucs7 Feb 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pages/Admin/ManageGroupsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function ProcessPageLoad()
$this->presenter->PageLoad();
$this->Set('chooseText', Resources::GetInstance()->GetString('Choose') . '...');
$this->Set('CanChangeRoles', $this->CanChangeRoles);
$this->Display('Admin/manage_groups.tpl');
$this->Display('Admin/Groups/manage_groups.tpl');
}

public function BindPageInfo(PageInfo $pageInfo)
Expand Down
38 changes: 37 additions & 1 deletion Web/css/librebooking.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,26 @@ fieldset:disabled .btn {
color: var(--primary) !important;
}

.accordion-header {
background: var(--bs-secondary-bg);
color: var(--primary) !important;
}

.accordion-header:has(.accordion-icon-container.collapsed) {
background: #ffffff;
color: var(--primary) !important;
}

.accordion-header:hover {
background: var(--bs-secondary-bg) !important;
color: var(--primary) !important;
}

.noImage {
min-height: 100px;

}

.timespan {
--bs-bg-opacity: .2;
}
Expand Down Expand Up @@ -484,6 +504,10 @@ table.reservations td {
z-index: 99999;
}

#resourceDetailsDiv .description p, #resourceDetailsDiv .note p {
margin: 0;
}

#userDetailsDiv,
#customize-columns {
display: none;
Expand Down Expand Up @@ -575,4 +599,16 @@ input.mid-number {

.no-show {
display: none !important;
}
}

.trumbowyg-editor p, .notesValue p, .descriptionValue p {
margin: 0;
}

.editable-container.editable-popup {
max-width: 50% !important;
}

.editable-input {
max-width: 90%;
}
2 changes: 2 additions & 0 deletions Web/css/trumbowyg.min.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Web/scripts/admin/accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ function AccessoryManagement(opts) {

AccessoryManagement.prototype.init = function () {

elements.accessoryList.delegate('a.update', 'click', function (e) {
elements.accessoryList.on('click', 'a.update', function (e) {
setActiveId($(this));
e.preventDefault();
});

elements.accessoryList.delegate('.edit', 'click', function () {
elements.accessoryList.on('click', '.edit', function () {
editAccessory();
});

elements.accessoryList.delegate('.delete', 'click', function () {
elements.accessoryList.on('click', '.delete', function () {
deleteAccessory();
});

elements.accessoryList.delegate('.resources', 'click', function () {
elements.accessoryList.on('click', '.resources', function () {
showAccessoryResources();
});

Expand All @@ -52,7 +52,7 @@ function AccessoryManagement(opts) {
});


elements.accessoryResourcesDialog.delegate('.resourceCheckbox', 'click', function () {
elements.accessoryResourcesDialog.on('click', '.resourceCheckbox', function () {
handleAccessoryResourceClick($(this));
});

Expand Down
8 changes: 4 additions & 4 deletions Web/scripts/admin/announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ function AnnouncementManagement(opts) {

AnnouncementManagement.prototype.init = function () {

elements.announcementList.delegate('a.update', 'click', function (e) {
elements.announcementList.on( 'click', 'a.update', function (e) {
setActiveId($(this));
e.preventDefault();
});

elements.announcementList.delegate('.edit', 'click', function () {
elements.announcementList.on('click', '.edit', function () {
editAnnouncement();
});
elements.announcementList.delegate('.sendEmail', 'click', function () {
elements.announcementList.on('click', '.sendEmail', function () {
emailAnnouncement();
});
elements.announcementList.delegate('.delete', 'click', function () {
elements.announcementList.on('click', '.delete', function () {
deleteAnnouncement();
});

Expand Down
10 changes: 5 additions & 5 deletions Web/scripts/admin/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ function AttributeManagement(opts) {
RefreshAttributeList();
});

elements.attributeList.delegate('a.update', 'click', function (e) {
elements.attributeList.on( 'click', 'a.update', function (e) {
e.preventDefault();
e.stopPropagation();
});

elements.attributeList.delegate('.delete', 'click', function (e) {
elements.attributeList.on('click', '.delete', function (e) {
e.preventDefault();
var attributeId = $(this).closest('tr').attr('attributeId');

Expand Down Expand Up @@ -101,7 +101,7 @@ function AttributeManagement(opts) {
showRelevantAttributeOptions($(this).val(), elements.addDialog);
});

elements.attributeList.delegate('.edit', 'click', function (e) {
elements.attributeList.on('click', '.edit', function (e) {
e.preventDefault();
e.stopPropagation();
selectedEntityChoices = elements.editEntityChoices;
Expand Down Expand Up @@ -145,11 +145,11 @@ function AttributeManagement(opts) {
}
});

selectedEntityChoices.delegate('a.all', 'click', function (e) {
selectedEntityChoices.on('click', 'a.all', function (e) {
onEntityChoiceClick(e);
});

selectedEntityChoices.delegate('a.ok', 'click', function (e) {
selectedEntityChoices.on('click', 'a.ok', function (e) {
e.preventDefault();
selectedEntityChoices.hide();
handleEntitiesSelected(activeAppliesTo);
Expand Down
14 changes: 7 additions & 7 deletions Web/scripts/admin/blackouts.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function BlackoutManagement(opts) {
$(this).closest('.modal').modal("hide");
});

$('#result').delegate('.reload', 'click', function (e) {
$('#result').on( 'click', '.reload', function (e) {
location.reload();
});

$('#result').delegate('.unblock', 'click', function (e) {
$('#result').on('click', '.unblock', function (e) {
$('#result').hide();
$('#wait-box').modal('hide');
});
Expand Down Expand Up @@ -96,19 +96,19 @@ function BlackoutManagement(opts) {
handleBlackoutApplicabilityChange();
wireUpTimePickers();

elements.blackoutTable.delegate('.update', 'click', function (e) {
elements.blackoutTable.on('click', '.update', function (e) {
e.preventDefault();

var tr = $(this).parents('tr');
var id = tr.attr('data-blackout-id');
setActiveBlackoutId(id);
});

elements.blackoutTable.delegate('.delete', 'click', function () {
elements.blackoutTable.on('click', '.delete', function () {
showDeleteBlackout();
});

elements.blackoutTable.delegate('.delete-recurring', 'click', function () {
elements.blackoutTable.on('click', '.delete-recurring', function () {
showDeleteRecurringBlackout();
});

Expand Down Expand Up @@ -210,7 +210,7 @@ function BlackoutManagement(opts) {
$(this).attachReservationPopup(refNum, options.popupUrl);
});

$("#reservationTable").delegate('.editable', 'click', function () {
$("#reservationTable").on('click', '.editable', function () {
$(this).addClass('clicked');
var td = $(this).find('.referenceNumber');
viewReservation(td.text());
Expand Down Expand Up @@ -275,4 +275,4 @@ function BlackoutManagement(opts) {
ChangeUpdateScope(options.scopeOpts.full);
});
}
}
}
Loading