Refactor page structure: Update page classes for consistency
- Changed class from "ots-displays-page" to "ots-static-page ots-displays-page" in multiple Twig view files to standardize page layout. - Enhanced schedule-page.twig with improved calendar navigation and dropdown management. - Added global dropdown dismissal functionality to improve user experience across modals and dropdowns.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
{% block pageContent %}
|
||||
<div class="ots-displays-page">
|
||||
<div class="ots-static-page ots-displays-page">
|
||||
<div class="page-header ots-page-header">
|
||||
<h1>{% trans "Media" %}</h1>
|
||||
<p class="text-muted">{% trans "Manage your media library." %}</p>
|
||||
@@ -140,9 +140,7 @@
|
||||
<div id="breadcrumbs"></div>
|
||||
{% if currentUser.featureEnabledCount(["library.add", "library.modify"]) > 0 or settings.SETTING_LIBRARY_TIDY_ENABLED == 1 %}
|
||||
{% if currentUser.featureEnabled("library.add") %}
|
||||
<button class="btn btn-sm btn-success ots-toolbar-btn" href="#" id="libraryUploadForm" title="{% trans "Add a new media item to the library" %}"><i class="fa fa-plus-circle" aria-hidden="true"></i></button>
|
||||
<button class="btn btn-sm btn-success ots-toolbar-btn XiboFormButton" title="{% trans "Add a new media item to the library via external URL" %}" href="{{ url_for("library.uploadUrl.form") }}"><i class="fa fa-link" aria-hidden="true"></i></button>
|
||||
{% endif %}
|
||||
<button class="btn btn-sm btn-success ots-toolbar-btn" href="#" id="libraryUploadForm" title="{% trans "Add a new media item to the library" %}"><i class="fa fa-plus-circle" aria-hidden="true"></i></button> {% endif %}
|
||||
{% if settings.SETTING_LIBRARY_TIDY_ENABLED == 1 and currentUser.featureEnabled("library.modify") %}
|
||||
<button class="btn btn-sm btn-warning ots-toolbar-btn XiboFormButton btn-tidy" title="{% trans "Run through the library and remove unused and unnecessary files" %}" href="{{ url_for("library.tidy.form") }}"><i class="fa fa-broom" aria-hidden="true"></i></button>
|
||||
{% endif %}
|
||||
@@ -410,6 +408,15 @@
|
||||
* Media Edit form
|
||||
*/
|
||||
function mediaEditFormOpen(dialog) {
|
||||
// ── OTS: Style the edit-media modal to match the upload modal ──
|
||||
// dialog IS the .modal element (returned by bootbox.dialog())
|
||||
dialog.addClass('ots-edit-media-modal');
|
||||
|
||||
// Also apply via the global enhancer in case the class wasn't added
|
||||
if (typeof window.otsEnhanceModal === 'function') {
|
||||
window.otsEnhanceModal(dialog);
|
||||
}
|
||||
|
||||
// Create a new button
|
||||
var footer = dialog.find(".modal-footer");
|
||||
var mediaId = dialog.find("#mediaEditForm").data().mediaId;
|
||||
|
||||
Reference in New Issue
Block a user