diff --git a/definitions/base.js b/definitions/base.js index 993b72c7..f1e96c6f 100644 --- a/definitions/base.js +++ b/definitions/base.js @@ -9209,29 +9209,42 @@ module.exports = function(s,config,lang){ "Video Select": { "color": "green", "noHeader": true, - "noDefaultSectionClasses": true, "box-wrapper-class": "row", "info": [ { "field": lang.Monitor, "fieldType": "select", "class": "monitors_list", - "form-group-class": "col-md-12", + "form-group-class": "col-md-4", "possible": [ { "name": lang['All Monitors'], "value": "" }, + { + "name": lang.Monitors, + "optgroup": [] + }, ] }, + { + "form-group-class": "col-md-4", + "class": "date_selector", + "field": lang.Date, + }, + { + "form-group-class": "col-md-4", + "id": "report-manager-search-tag", + "field": lang['Object Tag'], + }, { "fieldType": "div", - "class": "col-md-6", + "class": "col-md-9 row", "id": "report-manager-video-select", }, { "fieldType": "div", - "class": "col-md-6", + "class": "col-md-3 row", "id": "report-manager-video-selected", } ] diff --git a/web/assets/css/bs5.videoPlayer.css b/web/assets/css/bs5.videoPlayer.css index 3cdf0956..0dbb3421 100644 --- a/web/assets/css/bs5.videoPlayer.css +++ b/web/assets/css/bs5.videoPlayer.css @@ -93,6 +93,9 @@ border-radius: 10px; overflow: hidden; } +.video-time-card.selected { + border: 2px solid #27b392; +} .video-time-header { position: absolute; left: 0; diff --git a/web/assets/js/bs5.dashboard-base.js b/web/assets/js/bs5.dashboard-base.js index ea155dd2..305ca15c 100644 --- a/web/assets/js/bs5.dashboard-base.js +++ b/web/assets/js/bs5.dashboard-base.js @@ -199,7 +199,7 @@ function getDayPartsFromTime(theTime){ var day = dayParts[2] var month = dayParts[1] var year = dayParts[0] - { + return { day, month, year, diff --git a/web/assets/js/bs5.reportManager.js b/web/assets/js/bs5.reportManager.js index a507bb0b..a00826a0 100644 --- a/web/assets/js/bs5.reportManager.js +++ b/web/assets/js/bs5.reportManager.js @@ -1,69 +1,142 @@ -function saveReport(){ - // Icon : simple identifier with font awesome - // Report ID: A unique identifier for each report. - // Date and Time of Submission: The date and time when the report is submitted. - // Submitted By: The name and contact information of the person or organization submitting the report. - // Case Reference Number: If the video is related to a specific case, include the case number for easy reference. - // Video Title: A brief title or description of the video. - // Video Source: Information about where the video was sourced from (e.g., CCTV, personal device, etc.). - // Location of Incident: The specific location where the incident in the video took place. - // Date and Time of Incident: The exact date and time when the incident occurred. - // Duration of Video: The length of the video. - // Video Format: The format of the video file (e.g., MP4, AVI, etc.). - // Description of Incident: A detailed description of the incident captured in the video. - // Involved Parties: Information about the individuals or entities involved in the incident, if known. - // Key Timestamps: Specific timestamps in the video where important events occur. - // Attached Video File: The actual video file or a secure link to the video file. - // Additional Notes: Any additional information or context that might be relevant to the incident. - // Verification: A statement by the person submitting the report that the information provided is accurate to the best of their knowledge. -} -function emailReport(){} -function uploadReport(){} -function createVideoCard(video){ - var monitorId = video.mid - var startTime = video.time - var endTime = video.end - var { - day, - month, - year, - } = getDayPartsFromTime(startTime) - var eventMatrixHtml = `` - eventMatrixHtml += `