removed weekly stats

This commit is contained in:
Louis Heredero 2025-02-14 15:02:16 +01:00
parent 58a8ae750a
commit cce82f02af
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
3 changed files with 10 additions and 8 deletions

View File

@ -38,7 +38,7 @@ urlpatterns = [
path("projects/<int:id>/set_parent/", views.set_parent, name="set_parent"),
path("projects/<int:id>/", views.project_view, name="project"),
path("stats/by-month/<int:year>/<int:month>/", views.get_stats_by_month, name="stats_by_month"),
path("stats/between/<date:start_date>/<date:end_date>/", views.get_stats_between, name="stats_between"),
#path("stats/between/<date:start_date>/<date:end_date>/", views.get_stats_between, name="stats_between"),
path("clockings/<date:date>/", views.set_clocking, name="set_clocking"),
path("sagex/<int:id>/<year_month:month>/", views.set_real_sagex, name="set_real_sagex"),
]

View File

@ -212,18 +212,19 @@ window.addEventListener("load", () => {
nextMonthBtn = document.getElementById("next-month")
month = document.getElementById("month")
prevWeekBtn = document.getElementById("prev-week")
/*prevWeekBtn = document.getElementById("prev-week")
nextWeekBtn = document.getElementById("next-week")
week = document.getElementById("week")
week = document.getElementById("week")*/
prevMonthBtn.addEventListener("click", () => prevMonth())
nextMonthBtn.addEventListener("click", () => nextMonth())
prevWeekBtn.addEventListener("click", () => prevWeek())
nextWeekBtn.addEventListener("click", () => nextWeek())
/*prevWeekBtn.addEventListener("click", () => prevWeek())
nextWeekBtn.addEventListener("click", () => nextWeek())*/
let monthGrp = document.getElementById("month-sel")
let weekGrp = document.getElementById("week-sel")
//let weekGrp = document.getElementById("week-sel")
/*
rangeSel = document.getElementById("range-sel")
rangeSel.addEventListener("change", () => {
let mode = rangeSel.value
@ -237,6 +238,7 @@ window.addEventListener("load", () => {
updateTableMonthly()
}
})
*/
updateTableMonthly()
})

View File

@ -20,7 +20,7 @@
<div id="month">Month</div>
<button id="next-month">></button>
</div>
<div id="week-sel" class="group hidden">
<!--<div id="week-sel" class="group hidden">
<button id="prev-week"><</button>
<div id="week">Week</div>
<button id="next-week">></button>
@ -28,7 +28,7 @@
<select id="range-sel">
<option value="monthly">Monthly</option>
<option value="weekly">Weekly</option>
</select>
</select>-->
</div>
<div class="tables">
<table id="headers-table">