【XenForo】为注册页面添加重置按钮

后台---外观---模板列表---register_macros

拉倒最后,将里面的

<xf:macro name="submit_row">
	<span id="js-regTimer" data-timer-complete="{{ phrase('register') }}">
				<xf:submitrow><xf:html>
		<xf:button type="submit" class="button--primary" id="js-signUpButton"  style="float: left;">
			<xf:if is="$xf.options.registrationTimer">
					{{ phrase('(please_wait_x_seconds)', {'seconds': "<span>{$xf.options.registrationTimer}</span>"}) }}
				</span>
			<xf:else />
				{{ phrase('register') }}
			</xf:if>
		</xf:button>
	</xf:html></xf:submitrow>
</xf:macro>

改为

<xf:macro name="submit_row">
	<span id="js-regTimer" data-timer-complete="{{ phrase('register') }}">
				<xf:submitrow><xf:html>
		<xf:button type="submit" class="button--primary" id="js-signUpButton"  style="float: left;">
			<xf:if is="$xf.options.registrationTimer">
					{{ phrase('(please_wait_x_seconds)', {'seconds': "<span>{$xf.options.registrationTimer}</span>"}) }}
				</span>
			<xf:else />
				{{ phrase('register') }}
			</xf:if>
		</xf:button>
		<xf:button type="reset" class="button--primary" style="float: left;margin-left: 100px;">
				{{ phrase('reset') }}
		</xf:button>
	</xf:html></xf:submitrow>
</xf:macro>

猜你喜欢

转载自blog.csdn.net/weixin_41728561/article/details/80907946