-
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.
Merge pull request #237 from silinternational/feature/ssp2-codes-twig
convert backup code and manager code templates to Twig
- Loading branch information
Showing
12 changed files
with
349 additions
and
345 deletions.
There are no files selected for viewing
52 changes: 0 additions & 52 deletions
52
modules/material/themes/material/mfa/low-on-backup-codes.php
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
modules/material/themes/material/mfa/low-on-backup-codes.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,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ currentLanguage }}"> | ||
<head> | ||
<title>{{ '{mfa:title}'|trans }}</title> | ||
|
||
{% include 'header.twig' %} | ||
</head> | ||
<body class="gradient-bg"> | ||
<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"> | ||
{{ '{mfa:header}'|trans }} | ||
</span> | ||
</div> | ||
</header> | ||
<main class="mdl-layout__content" layout-children="column"> | ||
<form layout-children="column" method="post"> | ||
<div class="mdl-card mdl-shadow--8dp"> | ||
<div class="mdl-card__media white-bg margin" layout-children="column"> | ||
<i class="mdl-color-text--red error material-icons mdl-typography--display-4">warning</i> | ||
</div> | ||
|
||
<div class="mdl-card__title center"> | ||
<h1 class="mdl-card__title-text"> | ||
{{ '{mfa:running_out_header}'|trans }} | ||
</h1> | ||
</div> | ||
|
||
<div class="mdl-card__title center"> | ||
<p class="mdl-card__subtitle-text"> | ||
{{ '{mfa:running_out_info}'|trans({'%numBackupCodesRemaining%':numBackupCodesRemaining}) }} | ||
</p> | ||
</div> | ||
|
||
<div class="mdl-card__actions" layout-children="row"> | ||
<button name="continue" class="mdl-button"> | ||
{{ '{mfa:button_later}'|trans }} | ||
</button> | ||
|
||
<span flex></span> | ||
|
||
<button name="getMore" class="mdl-button mdl-button--raised mdl-button--primary"> | ||
{{ '{mfa:button_get_more}'|trans }} | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</main> | ||
</div> | ||
</body> | ||
</html> |
158 changes: 0 additions & 158 deletions
158
modules/material/themes/material/mfa/new-backup-codes.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.