Skip to content
Snippets Groups Projects
Commit c01a90ac authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #398 from greezybacon/issue/render-extra-form-first


Show extra forms for help topic first

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents e90cd8f2 79c41a28
No related branches found
No related tags found
No related merge requests found
...@@ -48,16 +48,18 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info; ...@@ -48,16 +48,18 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info;
<tr><td colspan="2"><hr /></td></tr> <tr><td colspan="2"><hr /></td></tr>
<tr><td>Email:</td><td><?php echo $thisclient->getEmail(); ?></td></tr> <tr><td>Email:</td><td><?php echo $thisclient->getEmail(); ?></td></tr>
<tr><td>Client:</td><td><?php echo $thisclient->getName(); ?></td></tr> <tr><td>Client:</td><td><?php echo $thisclient->getName(); ?></td></tr>
<?php } <?php } ?>
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(false); ?>
</tbody> </tbody>
<tbody id="dynamic-form"> <tbody id="dynamic-form">
<?php if ($form) { <?php if ($form) {
include(CLIENTINC_DIR . 'templates/dynamic-form.tmpl.php'); include(CLIENTINC_DIR . 'templates/dynamic-form.tmpl.php');
} ?> } ?>
</tbody> </tbody>
<tbody><?php
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(false); ?>
</tbody>
<tbody> <tbody>
<?php <?php
if($cfg && $cfg->isCaptchaEnabled() && (!$thisclient || !$thisclient->isValid())) { if($cfg && $cfg->isCaptchaEnabled() && (!$thisclient || !$thisclient->isValid())) {
...@@ -79,7 +81,8 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info; ...@@ -79,7 +81,8 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info;
<tr><td colspan=2>&nbsp;</td></tr> <tr><td colspan=2>&nbsp;</td></tr>
</tbody> </tbody>
</table> </table>
<p style="padding-left:150px;"> <hr/>
<p style="text-align:center;">
<input type="submit" value="Create Ticket"> <input type="submit" value="Create Ticket">
<input type="reset" value="Reset"> <input type="reset" value="Reset">
<input type="button" value="Cancel" onClick='window.location.href="index.php"'> <input type="button" value="Cancel" onClick='window.location.href="index.php"'>
......
...@@ -221,23 +221,23 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -221,23 +221,23 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</select>&nbsp;<span class='error'>&nbsp;<?php echo $errors['assignId']; ?></span> </select>&nbsp;<span class='error'>&nbsp;<?php echo $errors['assignId']; ?></span>
</td> </td>
</tr> </tr>
<?php <?php } ?>
}
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(true);
?>
</tbody> </tbody>
<tbody id="dynamic-form"> <tbody id="dynamic-form">
<?php <?php
if ($form) $form->getForm()->render(true); if ($form) $form->getForm()->render(true);
?> ?>
</tbody> </tbody>
<tbody> <?php
$tform = TicketForm::getInstance()->getForm($_POST);
if ($_POST) $tform->isValid();
$tform->render(true);
?>
</tbody>
<tbody> <tbody>
<?php <?php
//is the user allowed to post replies?? //is the user allowed to post replies??
if($thisstaff->canPostReply()) { if($thisstaff->canPostReply()) { ?>
?>
<tr> <tr>
<th colspan="2"> <th colspan="2">
<em><strong>Response</strong>: Optional response to the above issue.</em> <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.
Finish editing this message first!
Please register or to comment