Skip to content

Commit 7959c79

Browse files
ioigoumenikosev
authored andcommitted
Static View with information for Email Confirmation
1 parent 31cf531 commit 7959c79

6 files changed

Lines changed: 112 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This version is compatible with [SimpleSAMLphp v1.18](https://simplesamlphp.org/
1414
- Add `login_with` key in discopower definitions.
1515
- Add style rules and logos for IdP umbrellaid.
1616
- Add exception template for attrauthcomanage module
17+
- Add template for Email Confirmation
1718

1819
### Fixed
1920

dictionaries/default.definition.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,14 @@
1010
},
1111
"logo_link_url": {
1212
"en": "https://www.example.com"
13+
},
14+
"message_title": {
15+
"en": "We Sent You An Email"
16+
},
17+
"message_bd": {
18+
"en": "<p>Just <b>click the link in that email</b> to complete your signup.</p><p>If you do not find the email in your Inbox, please check your <b>Spam</b> or <b>Junk</b> folder for an email from <b>RCIAM Notifications</b>&nbsp<a href=\"mailto:example@email.org\"><i class=\"glyphicon-envelope email-address\">&nbspnoreply@faai.grnet.gr</i></a>. If you do find the email in these folders, mark the email as \"safe\" or \"not spam\" to ensure that you receive any future notifications about your RCIAM ID.</p>"
19+
},
20+
"message_sub": {
21+
"en": "<span class=\"subtitle-msg\">You will have <b>72 hours</b> to verify your account</span>"
1322
}
1423
}

templates/confirmemail.tpl.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
$this->includeAtTemplateBase('includes/header.php');
3+
?>
4+
<link rel="stylesheet" type="text/css" href="resources/css/confirmemail.css">
5+
6+
<div class="body-container" id="content">
7+
<div class="message-container">
8+
<span class="head-title">
9+
<img class="email-gif" src="resources/icons/email.gif">
10+
<h2><span class="title-msg"><?= $this->t('{themevanilla:default:message_title}') ?></span></h2>
11+
</span>
12+
<div class="message"><?= $this->t('{themevanilla:default:message_bd}') ?></div>
13+
<div class="subtitle"><?= $this->t('{themevanilla:default:message_sub}') ?></div>
14+
</div>
15+
</div>
16+
17+
<?php
18+
$this->includeAtTemplateBase('includes/footer.php'); ?>

www/confirmemail.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
// Get global config
4+
$config = SimpleSAML\Configuration::getInstance();
5+
// Get the template
6+
$template = new SimpleSAML\XHTML\Template($config, 'themevanilla:confirmemail.tpl.php');
7+
$template->show();

www/resources/icons/email.gif

196 KB
Loading
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
.message-container {
2+
display: flex;
3+
flex-direction: column;
4+
justify-content: center; /* align horizontal */
5+
align-items: center; /* align vertical */
6+
width: 100%;
7+
margin: 3em auto auto;
8+
9+
.head-title {
10+
display: inherit;
11+
padding: 1rem;
12+
align-items: center;
13+
14+
.email-gif {
15+
height: 8rem;
16+
width: 10.5rem;
17+
}
18+
19+
.title-msg {
20+
font-size: xx-large;
21+
font-weight: 700;
22+
}
23+
}
24+
25+
.message {
26+
margin: 3rem 3rem 0 3rem;
27+
text-align: center;
28+
font-size: 2.0rem;
29+
margin: auto;
30+
border-bottom: solid 1px #000;
31+
padding-bottom: 3em;
32+
33+
.email-address {
34+
font-size: medium;
35+
color: #599adb;
36+
}
37+
38+
a {
39+
text-decoration-color: #599adb;
40+
}
41+
}
42+
}
43+
44+
.text-highlight {
45+
color: #000000;
46+
background-color: white;
47+
font-weight: bold;
48+
text-decoration: underline;
49+
}
50+
51+
.subtitle {
52+
text-align: center;
53+
margin: 1rem auto auto;
54+
text-transform: uppercase;
55+
transform: translateY(-1.5em);
56+
}
57+
58+
.subtitle-msg {
59+
background-color: white;
60+
z-index: 1;
61+
padding: 0.5rem;
62+
}
63+
64+
@media only screen and (max-width: 599px) {
65+
.head-title * {
66+
font-size: large !important;
67+
}
68+
.message-container {
69+
.message {
70+
font-size: small;
71+
}
72+
}
73+
74+
.subtitle-msg {
75+
font-size: smaller;
76+
}
77+
}

0 commit comments

Comments
 (0)