You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.2 KiB
84 lines
3.2 KiB
<h3 class="drag-handle"><?php echo __('Edit Thread Entry'); ?></h3>
|
|
<b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b>
|
|
<hr/>
|
|
|
|
<form method="post" action="<?php echo $this->getAjaxUrl(true); ?>">
|
|
|
|
<input type="text" style="width:100%;font-size:14px" placeholder="<?php
|
|
echo __('Title'); ?>" name="title" value="<?php
|
|
echo Format::htmlchars($this->entry->title); ?>"/>
|
|
<hr style="height:0"/>
|
|
<textarea style="display: block; width: 100%; height: auto; min-height: 150px;"
|
|
<?php if ($poster && $this->entry->type == 'R') {
|
|
$signature_type = $poster->getDefaultSignatureType();
|
|
$signature = '';
|
|
if (($T = $this->entry->getThread()->getObject()))
|
|
$dept = $T->getDept();
|
|
|
|
switch ($poster->getDefaultSignatureType()) {
|
|
case 'dept':
|
|
if ($dept && $dept->canAppendSignature())
|
|
$signature = $dept->getSignature();
|
|
break;
|
|
case 'mine':
|
|
$signature = $poster->getSignature();
|
|
$signature_type = 'theirs';
|
|
break;
|
|
} ?>
|
|
data-dept-id="<?php echo $dept ? $dept->getId() : 0; ?>"
|
|
data-poster-id="<?php echo $this->entry->staff_id; ?>"
|
|
data-signature-field="signature"
|
|
data-signature="<?php echo Format::htmlchars(Format::viewableImages($signature)); ?>"
|
|
<?php } ?>
|
|
name="body"
|
|
class="large <?php
|
|
if ($cfg->isRichTextEnabled() && $this->entry->format == 'html')
|
|
echo 'richtext';
|
|
?>"><?php echo htmlspecialchars(Format::viewableImages(
|
|
(string) $this->entry->getBody()));
|
|
?></textarea>
|
|
|
|
<?php if ($this->entry->type == 'R') { ?>
|
|
<div style="margin:10px 0;"><strong><?php echo __('Signature'); ?>:</strong>
|
|
<label><input type="radio" name="signature" value="none" checked="checked"> <?php echo __('None');?></label>
|
|
<?php
|
|
if ($poster
|
|
&& $poster->getId() != $thisstaff->getId()
|
|
&& $poster->getSignature()
|
|
) { ?>
|
|
<label><input type="radio" name="signature" value="theirs"
|
|
<?php echo ($info['signature']=='theirs')?'checked="checked"':''; ?>> <?php echo __('Their Signature');?></label>
|
|
<?php
|
|
}
|
|
if ($thisstaff->getSignature()) {?>
|
|
<label><input type="radio" name="signature" value="mine"
|
|
<?php echo ($info['signature']=='mine')?'checked="checked"':''; ?>> <?php echo __('My Signature');?></label>
|
|
<?php
|
|
} ?>
|
|
<?php
|
|
if ($dept && $dept->canAppendSignature()) { ?>
|
|
<label><input type="radio" name="signature" value="dept"
|
|
<?php echo ($info['signature']=='dept')?'checked="checked"':''; ?>>
|
|
<?php echo sprintf(__('Department Signature (%s)'), Format::htmlchars($dept->getName())); ?></label>
|
|
<?php
|
|
} ?>
|
|
</div>
|
|
<?php } # end of type == 'R' ?>
|
|
|
|
<hr>
|
|
<div class="full-width">
|
|
<span class="buttons pull-left">
|
|
<input type="button" name="cancel" class="close"
|
|
value="<?php echo __('Cancel'); ?>">
|
|
</span>
|
|
<span class="buttons pull-right">
|
|
<button type="submit" name="commit" value="save" class="button"
|
|
><?php echo __('Save'); ?></button>
|
|
<?php if ($this->entry->type == 'R') { ?>
|
|
<button type="submit" name="commit" value="resend" class="button"
|
|
><?php echo __('Save and Resend'); ?></button>
|
|
<?php } ?>
|
|
</span>
|
|
</div>
|
|
|
|
</form>
|