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

98 lines
3.1 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
link(rel="stylesheet", href="/stylesheets/style.css")
body
block content
div#user
2020-08-18 16:34:10 +02:00
a(href="/")=__("layout.home")
2020-08-17 19:08:35 +02:00
if user
if user.permissions >= 1
p -
2020-08-18 17:10:45 +02:00
a(href="/sandwiches")=__("sandwiches")
2020-08-17 19:08:35 +02:00
if user.permissions >= 2
p -
2020-08-18 17:54:00 +02:00
a(href="/orders")=__("orders")
2020-08-17 19:08:35 +02:00
if user.permissions >= 3
p -
2020-08-18 17:18:17 +02:00
a(href="/admin")=__("admin.title")
2020-08-17 18:03:25 +02:00
p |
if user
2020-08-17 17:58:55 +02:00
a(href="/profile")=user.username
2020-08-18 16:34:10 +02:00
a(href="/logout")=__("layout.logout")
else
2020-08-18 16:34:10 +02:00
a(href="/login")=__("layout.login")
a(href="/register")=__("layout.register")
div#more
2020-08-18 16:34:10 +02:00
a=__("layout.about")
2020-08-21 12:41:34 +02:00
a=__("contact")
div#dark.hide
div#about.popup.card.hide
2020-08-18 16:34:10 +02:00
h1=__("layout.about")
p=__("layout.aboutDescription")
div.images
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoBio.png")
2020-08-18 16:34:10 +02:00
p=__("layout.bio")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoChimie.png")
2020-08-18 16:34:10 +02:00
p=__("layout.chemistry")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoGC.png")
2020-08-18 16:34:10 +02:00
p=__("layout.GC")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoGCGP.png")
2020-08-18 16:34:10 +02:00
p=__("layout.GCPD")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoGEA.png")
2020-08-18 16:34:10 +02:00
p=__("layout.GEA")
div
2020-08-17 19:19:13 +02:00
img(src="/images/logoInfo.png")
2020-08-18 16:34:10 +02:00
p=__("layout.IT")
p.before-link=__("layout.made")
a(href="https://www.linkedin.com/in/florian-charlaix" target="_blank") Florian Charlaix
2020-09-13 21:25:09 +02:00
p.before-link=__("layout.powered")
a(href="https://sapinet.fr" target="_blank") Sapinet
div#contact.popup.card.hide
2020-08-21 12:41:34 +02:00
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")
div.field
label(for="subjectContact")="* "+__("layout.subject")
2020-09-13 21:17:13 +02:00
+list("subjectContact", "subjectContactList", "subject", "", "off", true)
2020-08-21 12:41:34 +02:00
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)
div.field
2020-08-25 16:46:02 +02:00
+submit(value=__("send"))
2020-08-17 19:19:13 +02:00
script(src="/javascripts/layout.js")
if !test
p !{captcha}