aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Wiki
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views/Wiki')
-rw-r--r--h-source/Application/Views/Wiki/form.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/h-source/Application/Views/Wiki/form.php b/h-source/Application/Views/Wiki/form.php
index 5949cf0..12d84d1 100644
--- a/h-source/Application/Views/Wiki/form.php
+++ b/h-source/Application/Views/Wiki/form.php
@@ -82,11 +82,20 @@
<div class="form_entry">
<div class="entry_label"><?php echo gtext("the text of the wiki page");?>:<br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div>
+
+ <?php if (isset($pagePreview)) { ?>
+ <div class="description_preview_title"><?php echo gtext("Page preview");?>:</div>
+ <div class="description_preview">
+ <?php echo decodeWikiText($pagePreview); ?>
+ </div>
+ <?php } ?>
+
<?php echo Html_Form::textarea('page',$values['page'],'textarea_entry','bb_code');?>
</div>
<?php echo $hiddenInput;?>
+ <input type="submit" name="previewAction" value="Preview">
<input type="submit" name="<?php echo $submitName;?>" value="Save">
</div>