Rename templates to make forms more obvious

This commit is contained in:
Chris 2016-12-31 23:35:27 +00:00
parent 5075f2eba8
commit 96c61d6fba
4 changed files with 15 additions and 15 deletions

View File

@ -777,7 +777,7 @@ sub _generate_signin_form {
$self -> {"template"} -> load_template("login/persist_disabled.tem");
return ("{L_LOGIN_TITLE}",
$self -> {"template"} -> load_template("login/signin.tem", {"%(error)s" => $error,
$self -> {"template"} -> load_template("login/form_signin.tem", {"%(error)s" => $error,
"%(persist)s" => $persist,
"%(url-forgot)s" => $self -> build_url("block" => "login", "pathinfo" => [ "recover" ]),
"%(target)s" => $self -> build_url("block" => "login"),
@ -804,7 +804,7 @@ sub _generate_signup_form {
if($error);
return ("{L_LOGIN_SIGNUP_TITLE}",
$self -> {"template"} -> load_template("login/signup.tem", {"%(error)s" => $error,
$self -> {"template"} -> load_template("login/form_signup.tem", {"%(error)s" => $error,
"%(sitekey)s" => $self -> {"settings"} -> {"config"} -> {"Login:recaptcha_sitekey"},
"%(url-activate)s" => $self -> build_url("block" => "login", "pathinfo" => [ "activate" ]),
"%(target)s" => $self -> build_url("block" => "login", "pathinfo" => [ "signup" ]),
@ -829,7 +829,7 @@ sub _generate_actcode_form {
if($error);
return ("{L_LOGIN_TITLE}",
$self -> {"template"} -> load_template("login/act_form.tem", {"%(error)s" => $error,
$self -> {"template"} -> load_template("login/form_activate.tem", {"%(error)s" => $error,
"%(target)s" => $self -> build_url("block" => "login"),
"%(url-resend)s" => $self -> build_url("block" => "login", "pathinfo" => [ "resend" ]),}),
$self -> {"template"} -> load_template("login/extrahead.tem"),

View File

@ -14,7 +14,7 @@
<input type="text" id="email" name="email" size="24" maxlength="255" value="%(email)s"/>
</label>
</div>
<div class="contextlink">(<a href="%(url-activate)s">{L_LOGIN_ACTFORM}</a>)</div>
<div class="contextlink">(<a href="%(url-activate)s">{L_LOGIN_ACTIVATE_FORM}</a>)</div>
<div class="g-recaptcha" data-sitekey="%(sitekey)s"></div>
<div class="submit clearfix">
<input type="submit" class="button float-right nomargin" id="signup" name="signup" value="{L_LOGIN_SIGNUP}" />