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

Merge pull request #1646 from protich/feature/forms


forms: Use form's name as the heading.

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 57de24a5 3ba4b8af
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
$info=array();
if($form && $_REQUEST['a']!='add') {
$title = __('Update custom form section');
$title = __('Update form section');
$action = 'update';
$url = "?id=".urlencode($_REQUEST['id']);
$submit_text=__('Save Changes');
......@@ -23,14 +23,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<input type="hidden" name="do" value="<?php echo $action; ?>">
<input type="hidden" name="a" value="<?php echo $action; ?>">
<input type="hidden" name="id" value="<?php echo $info['id']; ?>">
<h2><?php echo __('Custom Form'); ?></h2>
<h2><?php echo $form ? Format::htmlchars($form->getTitle()) : __('Custom Form'); ?></h2>
<table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em><?php echo __(
'Custom forms are used to allow custom data to be associated with tickets'
'Forms are used to allow for collection of custom data'
); ?></em>
</th>
</tr>
......
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