Add idSection
This commit is contained in:
parent
0232c6bb19
commit
c890ce5128
3 changed files with 45 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
|||
main.mainContainer {
|
||||
padding-left: 22rem;
|
||||
margin-top: 12rem;
|
||||
}
|
||||
|
||||
nav#menuGlowne {
|
||||
|
@ -55,3 +54,16 @@ nav#menuGlowne {
|
|||
margin-left: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
#idSection {
|
||||
margin-left: 22rem;
|
||||
margin-top: 12rem;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
background: #cccccc;
|
||||
padding: 10px;
|
||||
|
||||
li {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
|
@ -25,6 +25,18 @@ router.get("/Default/123456/Start/Index/", (req, res) => {
|
|||
res.render("opiekun/start", {title: "Witryna ucznia i rodzica – Strona główna"});
|
||||
});
|
||||
|
||||
router.get("/Default/123456/Uczen/UczenOnChange", (req, res) => {
|
||||
res.cookie("idBiezacyUczen", req.query.id);
|
||||
|
||||
res.redirect(req.header("Referer"));
|
||||
});
|
||||
|
||||
router.get("/Default/123456/Dziennik/DziennikOnChange", (req, res) => {
|
||||
res.cookie("idBiezacyDziennik", req.query.id);
|
||||
|
||||
res.redirect(req.header("Referer"));
|
||||
});
|
||||
|
||||
router.get("/Default/123456/Uczen.mvc/DanePodstawowe", (req, res) => {
|
||||
res.render("opiekun/dane", {
|
||||
title: "Witryna ucznia i rodzica – Dane ucznia",
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
extends ../layout
|
||||
|
||||
append extraFooter
|
||||
script
|
||||
| Array.from(document.querySelectorAll("#uczenDropDownList, #dziennikDropDownList")).forEach(el => {
|
||||
| el.addEventListener("change", (e) => {
|
||||
| location = e.target.value;
|
||||
| });
|
||||
| });
|
||||
|
||||
prepend content
|
||||
header(data-organization-name="School")
|
||||
|
||||
|
@ -41,3 +49,15 @@ prepend content
|
|||
a(href=opiekunRoot + "/ZadaniaDomowe.mvc") Zadania domowe
|
||||
li
|
||||
a(href=opiekunRoot + "/Szkola.mvc/Nauczyciele") Szkoła i nauczyciele
|
||||
ul#idSection
|
||||
li
|
||||
label(for="uczenDropDownList") Uczeń:
|
||||
select#uczenDropDownList(name="uczenDropDownList")
|
||||
option(selected="selected", value=opiekunRoot +"/Uczen/UczenOnChange?&id=420") Jurek Owczyk
|
||||
option(value=opiekunRoot +"/Uczen/UczenOnChange?&id=400") Joanna Czerwińska
|
||||
li
|
||||
label(for="dziennikDropDownList") Dziennik:
|
||||
select#dziennikDropDownList(name="dziennikDropDownList")
|
||||
option(value=opiekunRoot + "/Dziennik/DziennikOnChange?&id=303") III 2017
|
||||
option(value=opiekunRoot + "/Dziennik/DziennikOnChange?&id=202") II 2016
|
||||
option(selected="selected", value=opiekunRoot + "/Dziennik/DziennikOnChange?&id=101") I 2015
|
||||
|
|
Loading…
Reference in a new issue