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

Show extra forms for help topic first

Extra forms associated with the help topic are now shown above the ticket
details form on both the staff and client interfaces.
parent 7bc88c39
No related branches found
No related tags found
No related merge requests found
......@@ -48,16 +48,18 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info;
<tr><td colspan="2"><hr /></td></tr>
<tr><td>Email:</td><td><?php echo $thisclient->getEmail(); ?></td></tr>
<tr><td>Client:</td><td><?php echo $thisclient->getName(); ?></td></tr>
<?php }
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(false); ?>
<?php } ?>
</tbody>
<tbody id="dynamic-form">
<?php if ($form) {
include(CLIENTINC_DIR . 'templates/dynamic-form.tmpl.php');
} ?>
</tbody>
<tbody><?php
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(false); ?>
</tbody>
<tbody>
<?php
if($cfg && $cfg->isCaptchaEnabled() && (!$thisclient || !$thisclient->isValid())) {
......@@ -79,7 +81,8 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info;
<tr><td colspan=2>&nbsp;</td></tr>
</tbody>
</table>
<p style="padding-left:150px;">
<hr/>
<p style="text-align:center;">
<input type="submit" value="Create Ticket">
<input type="reset" value="Reset">
<input type="button" value="Cancel" onClick='window.location.href="index.php"'>
......
......@@ -221,23 +221,23 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</select>&nbsp;<span class='error'>&nbsp;<?php echo $errors['assignId']; ?></span>
</td>
</tr>
<?php
}
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(true);
?>
<?php } ?>
</tbody>
<tbody id="dynamic-form">
<?php
if ($form) $form->getForm()->render(true);
?>
</tbody>
<tbody> <?php
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(true);
?>
</tbody>
<tbody>
<?php
//is the user allowed to post replies??
if($thisstaff->canPostReply()) {
?>
if($thisstaff->canPostReply()) { ?>
<tr>
<th colspan="2">
<em><strong>Response</strong>: Optional response to the above issue.</em>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment