aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/form.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views/form.php')
-rw-r--r--h-source/Application/Views/form.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/h-source/Application/Views/form.php b/h-source/Application/Views/form.php
index a5c3dd5..f7d61eb 100644
--- a/h-source/Application/Views/form.php
+++ b/h-source/Application/Views/form.php
@@ -117,18 +117,27 @@
<div class="entry_label hidden_x_explorer"><?php echo gtext("free driver used");?> (<?php echo gtext("see the help page or leave blank if you are not sure");?>):</div>
<?php echo Html_Form::input('driver',$values['driver'],'input_entry');?>
</div>
-
+
<div class="form_entry">
<div class="entry_label"><?php echo gtext("Description: (write here all the useful information)");?><br /><a href="<?php echo $this->baseUrl."/help/index/$lang#wiki-syntax";?>"><?php echo gtext("discover all the wiki tags");?></a></div>
<?php if (strcmp($this->controller,'threegcards') === 0 ) { ?>
<!--if it is a 3G-card-->
<div class="isp_notice"><?php echo gtext("Please specify in the below description entry the Internet Service Provider (ISP) and the country where the service is provided");?></div>
<?php } ?>
+
+ <?php if (isset($descriptionPreview)) { ?>
+ <div class="description_preview_title"><?php echo gtext("Description entry preview");?>:</div>
+ <div class="description_preview">
+ <?php echo decodeWikiText($descriptionPreview); ?>
+ </div>
+ <?php } ?>
+
<?php echo Html_Form::textarea('description',$values['description'],'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 class="mandatory_fields_notice">