Skip to content
Snippets Groups Projects
Commit cea82ae3 authored by Jared Hancock's avatar Jared Hancock
Browse files

A few fixups for the registration content

parent 09c7f0a6
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,18 @@ $passwd=Format::input($_POST['lpasswd']?:$_GET['t']);
$content = Page::lookup(Page::getIdByType('banner-client'));
if ($content) {
list($title, $body) = $ost->replaceTemplateVariables(
array($content->getName(), $content->getBody()));
} else {
$title = 'Sign In';
$body = 'To better serve you, we encourage our clients to register for
an account and verify the email address we have on record.';
}
?>
<h1><?php echo Format::display($content->getName()); ?></h1>
<p><?php echo Format::viewableImages($content->getBody()); ?></p>
<h1><?php echo Format::display($title); ?></h1>
<p><?php echo Format::display($body); ?></p>
<form action="login.php" method="post" id="clientLogin">
<?php csrf_token(); ?>
<div style="display:table-row">
......
<?php if ($content) { ?>
<h1><?php echo Format::display($content->getName()); ?></h1>
<?php if ($content) {
list($title, $body) = $ost->replaceTemplateVariables(
array($content->getName(), $content->getBody())); ?>
<h1><?php echo Format::display($title); ?></h1>
<p><?php
echo Format::display($content->getBody()); ?>
echo Format::display($body); ?>
</p>
<?php } else { ?>
<h1>Account Registration</h1>
......
<?php if ($content) { ?>
<h1><?php echo Format::display($content->getName()); ?></h1>
<?php if ($content) {
list($title, $body) = $ost->replaceTemplateVariables(
array($content->getName(), $content->getBody())); ?>
<h1><?php echo Format::display($title); ?></h1>
<p><?php
echo Format::display($content->getBody()); ?>
echo Format::display($body); ?>
</p>
<?php } else { ?>
<h1>Account Registration</h1>
......
......@@ -7,8 +7,7 @@
notes: >
This forms the header on the staff login page. It can be useful to
inform your clients about your login and registration policies.
name: "Sign In"
name: "Sign in to %{company.name}"
body: >
This help desk is for registered customers only. Please contact our
support team directly to have an account created so you can access the
help desk to submit tickets.
To better serve you, we encourage our clients to register for an account
and verify the email address we have on record.
......@@ -21,7 +21,7 @@ body: >
Follow the link below to login to the help desk and change your
password.<br />
<br />
<a href="%{reset_link}">%{reset_link}</a><br />
<a href="%{link}">%{link}</a><br />
<br />
<em style="font-size: small">Your friendly Customer Support System
<br />
......
......@@ -21,7 +21,7 @@ body: >
Follow the link below to login to the help desk and change your
password.<br />
<br />
<a href="%{reset_link}">%{reset_link}</a><br />
<a href="%{link}">%{link}</a><br />
<br />
<em style="font-size: small">Your friendly Customer Support System</em>
<br />
......
......@@ -16,7 +16,7 @@ body: >
Please follow the link below to confirm your account and gain access to
your tickets.<br />
<br />
<a href="%{reset_link}">%{confirmation_link}</a><br />
<a href="%{link}">%{link}</a><br />
<br />
<em style="font-size: small">Your friendly Customer Support System
<br />%{company.name}</em>
......@@ -5,7 +5,7 @@ $info = ($_POST && $errors)?Format::htmlchars($_POST):array();
<div id="loginBox">
<h1 id="logo"><a href="index.php">osTicket Staff Control Panel</a></h1>
<h3><?php echo Format::htmlchars($msg); ?></h3>
<div><small><?php echo ($content) ? Format::viewableImages($content->getBody()) : ''; ?></small></div>
<div><small><?php echo ($content) ? Format::display($content->getBody()) : ''; ?></small></div>
<form action="login.php" method="post">
<?php csrf_token(); ?>
<input type="hidden" name="do" value="scplogin">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment