1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Missing <p> element in a template

Discussion in 'Resolved Bug Reports' started by Luxus, Jan 13, 2014.

  1. Luxus

    Luxus Well-Known Member

    This is the lost_password template:

    <xen:title>{xen:phrase lost_password}</xen:title>
    <form action="{xen:link 'lost-password/lost'}" method="post" class="xenForm formOverlay">
    	{xen:phrase if_forgotten_your_password_use_form_to_reset}
    	<dl class="ctrlUnit">
    		<dt><label for="ctrl_username_email">{xen:phrase name_or_email}:</label></dt>
    		<dd><input type="text" name="username_email" class="textCtrl" id="ctrl_username_email" autofocus="true" /></dd>
    	<xen:if hascontent="true">
    				<xen:include template="helper_captcha_unit" />
    	<dl class="ctrlUnit submitUnit">
    		<dd><input type="submit" value="{xen:phrase reset_password}" accesskey="s" class="button primary" /></dd>
    	<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
    The red part is the phrase that's missing a <p> element. Because of this you can't directly style the message without affecting the <form> element. It doesn't seem to be a big deal and I can fix it myself within an inch of a second, but the template will be marked as edited just because I added a <p> element to a paragraph, something that is supposed to be there from the first place. Please add a <p> element to this phrase.
  2. Mike

    Mike XenForo Developer Staff Member

    Independently, this isn't really a bug -- more of a general choice. However, every other instance where I found this style of usage, we did include a <p> tag so this one is inconsistent.

Share This Page