Skip to content

Commit

Permalink
PR feedback: add type="submit" to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 25, 2024
1 parent 3df81b7 commit 9f0af8e
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions modules/material/themes/material/expirychecker/about2expire.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,45 @@
{% 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">
<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 %}
</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--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>
<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>
<div class="fill-parent" layout-children="row" child-spacing="space-around">
<button name="continue" type="submit" 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>
<button name="changepwd" type="submit" class="mdl-button mdl-button--raised mdl-button--primary">
{{ '{about2expire:button_change}'|trans }}
</button>
</div>
</form>
</main>

{% include 'footer.twig' %}
</div>
{% include 'footer.twig' %}
</div>
</body>
</html>

0 comments on commit 9f0af8e

Please sign in to comment.