Skip to content

Commit f87e5b3

Browse files
committed
Display Reset Legend if there is a label or not.
1 parent dae20eb commit f87e5b3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

components/com_users/forms/reset_request.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<form>
3-
<fieldset name="default" label="COM_USERS_RESET_REQUEST_LABEL">
3+
<fieldset name="default">
44
<field
55
name="email"
66
type="email"

components/com_users/tmpl/reset/default.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
<form action="<?php echo Route::_('index.php?task=reset.request'); ?>" method="post" id="user-registration" class="com-users-reset__form form-validate form-horizontal well">
3333
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
3434
<fieldset>
35-
<?php if (isset($fieldset->label)) : ?>
36-
<legend><?php echo Text::_($fieldset->label); ?></legend>
37-
<?php endif; ?>
35+
<legend><?php echo Text::_('COM_USERS_RESET'); ?></legend>
36+
<p><?php echo Text::_('COM_USERS_RESET_REQUEST_LABEL'); ?><p>
3837
<?php echo $this->form->renderFieldset($fieldset->name); ?>
3938
</fieldset>
4039
<?php endforeach; ?>

0 commit comments

Comments
 (0)