-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert about2expire template to Twig
- Loading branch information
Showing
7 changed files
with
52 additions
and
141 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
modules/material/dictionaries/about2expire.definition.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
modules/material/themes/material/expirychecker/about2expire.php
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
modules/material/themes/material/expirychecker/about2expire.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ currentLanguage }}"> | ||
<head> | ||
<title>{{ '{about2expire:title}'|trans }}</title> | ||
|
||
{% include 'header.twig' %} | ||
</head> | ||
<body> | ||
<div class="mdl-layout mdl-layout--fixed-header fill-viewport"> | ||
<header class="mdl-layout__header"> | ||
<div class="mdl-layout__header-row"> | ||
<span class="mdl-layout-title"> | ||
{{ '{about2expire:header}'|trans }} | ||
</span> | ||
</div> | ||
</header> | ||
<main class="mdl-layout__content" layout-children="column"> | ||
<form layout-children="column"> | ||
{% for name, value in formData %} | ||
<input type="hidden" name="{{ name|e }}" value="{{ value|e }}"> | ||
{% endfor %} | ||
|
||
<p class="mdl-typography--title margin"> | ||
{% if daysLeft < 2 %} | ||
{{ '{about2expire:expiring_in_a_day}'|trans }} | ||
{% else %} | ||
{{ '{about2expire:expiring_soon}'|trans({'%daysLeft%': daysLeft}) }} | ||
{% endif %} | ||
</p> | ||
|
||
<p class="mdl-typography--body-1"> | ||
{{ '{about2expire:change_now}'|trans }} | ||
</p> | ||
|
||
<div class="fill-parent" layout-children="row" child-spacing="space-around"> | ||
<button name="continue" class="mdl-button mdl-button--raised"> | ||
{{ '{about2expire:button_continue}'|trans }} | ||
</button> | ||
|
||
<button name="changepwd" class="mdl-button mdl-button--raised mdl-button--primary"> | ||
{{ '{about2expire:button_change}'|trans }} | ||
</button> | ||
</div> | ||
</form> | ||
</main> | ||
|
||
{% include 'footer.twig' %} | ||
</div> | ||
</body> | ||
</html> |