wekan/client/components/main/layouts.jade
Maxime Quandalle 9faaf07e02 Implement a modal system
I decided to create my own and not to use a community package, because
1. it's straightforward
2. it's better integrated with our others libs such as EscapeActions
3. monitoring third-party packages evolutions (eg, CSS changes) is a
   lot of work.

This is basically the same rationale than for our other generic UI
components such as the Popup/Popover.

This commit also slightly modify the general layout to remove
unnecessary wrapper DOM nodes.
2015-08-26 16:49:41 +02:00

32 lines
856 B
Text

head
title LibreBoard
meta(name="viewport"
content="maximum-scale=1.0,width=device-width,initial-scale=1.0,user-scalable=0")
link(rel="shortcut icon" href="/favicon.png")
template(name="userFormsLayout")
section.auth-layout
h1.at-form-landing-logo
img(src="/logo.png" title="LibreBoard")
+Template.dynamic(template=content)
template(name="defaultLayout")
+header
#content
+Template.dynamic(template=content)
if (Modal.isOpen)
#modal
.overlay
.modal-content
a.modal-close-btn.js-close-modal
i.fa.fa-times-thin
+Template.dynamic(template=Modal.getTemplateName)
template(name="notFound")
+message(label='page-not-found')
template(name="message")
.big-message.quiet(class=color)
h1 {{_ label}}
with(pathFor route='atSignIn')
p {{{_ 'page-maybe-private' this}}}