Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/views/layout.pug

105 lines
3.8 KiB
Text
Raw Normal View History

2020-08-20 22:46:46 +02:00
include mixin
2020-06-26 16:59:54 +02:00
doctype html
html
head
title= title
2020-09-27 17:52:35 +02:00
link(rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons")
link(rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css")
2020-09-27 20:43:11 +02:00
//link(rel="stylesheet" href="/stylesheets/style.css")
2020-09-27 17:52:35 +02:00
meta(name="viewport" content="width=device-width, initial-scale=1.0")
2020-06-26 16:59:54 +02:00
body
2020-09-27 17:52:35 +02:00
mixin nav
2020-08-17 19:08:35 +02:00
if user
if user.permissions >= 1
2020-09-27 17:52:35 +02:00
li: a(href="/sandwiches")=__("sandwiches")
2020-08-17 19:08:35 +02:00
if user.permissions >= 2
2020-09-27 17:52:35 +02:00
li: a(href="/orders")=__("orders")
2020-08-17 19:08:35 +02:00
if user.permissions >= 3
2020-09-27 17:52:35 +02:00
li: a(href="/admin")=__("admin.title")
li: a(href="/profile")=user.username
li: a(href="/logout")=__("layout.logout")
else
2020-09-27 17:52:35 +02:00
li: a(href="/login")=__("layout.login")
li: a(href="/register")=__("layout.register")
nav.orange(role="navigation")
div.nav-wrapper.container
a.brand-logo(href="/") SOD
a.sidenav-trigger(href="#" data-target="mobile-nav"): i.material-icons menu
ul.right.hide-on-med-and-down
+nav
ul#mobile-nav.sidenav
+nav
2020-09-27 20:43:11 +02:00
block content
2020-09-27 20:43:11 +02:00
.hide
div#more
a=__("layout.about")
a=__("contact")
2020-09-27 20:43:11 +02:00
div#dark.hide
div#about.popup.card.hide
h1=__("layout.about")
p=__("layout.aboutDescription")
div.images
div
img(src="/images/logoBio.png")
p=__("layout.bio")
div
img(src="/images/logoChimie.png")
p=__("layout.chemistry")
div
img(src="/images/logoGC.png")
p=__("layout.GC")
div
img(src="/images/logoGCGP.png")
p=__("layout.GCPD")
div
img(src="/images/logoGEA.png")
p=__("layout.GEA")
div
img(src="/images/logoInfo.png")
p=__("layout.IT")
p.before-link=__("layout.made")
a(href="https://www.linkedin.com/in/florian-charlaix" target="_blank") Florian Charlaix
p.before-link=__("layout.powered")
a(href="https://sapinet.fr" target="_blank") Sapinet
div#contact.popup.card.hide
h1=__("contact")
form(action="/contact" method="POST")
div.cont
div.field
label(for="firstNameContact")="* "+__("firstName")
input#firstNameContact(type="text" name="firstName" value=user?user.firstName:"" required)
div.field
label(for="lastNameContact")="* "+__("lastName")
input#lastNameContact(type="text" name="lastName" value=user ? user.lastName : "" required)
div.cont
div.field
label(for="emailContact")="* "+__("email")
input#emailContact(type="email" name="email" value=user ? user.email : "" required)
div.field
label(for="phoneNumberContact")=__("layout.phoneNumber")
input#phoneNumberContact(type="tel" name="phoneNumber")
2020-08-21 12:41:34 +02:00
div.field
2020-09-27 20:43:11 +02:00
label(for="subjectContact")="* "+__("layout.subject")
+list("subjectContact", "subjectContactList", "subject", "", "off", true)
datalist#subjectContactList
option(value=__("layout.commandEdit"))
option(value=__("layout.commandRemove"))
option(value=__("layout.question"))
option(value=__("layout.profile"))
option(value=__("layout.other"))
p=__("layout.warnMessage")
div.field.message
label(for="messageContact")=__("layout.message")
textarea#messageContact(name="message" required)
2020-08-21 12:41:34 +02:00
div.field
2020-09-27 20:43:11 +02:00
+submit(value=__("send"))
2020-09-27 17:52:35 +02:00
script(src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js")
2020-08-17 19:19:13 +02:00
script(src="/javascripts/layout.js")
if !test
p !{captcha}