aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/form.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-05-13 15:14:24 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-05-13 15:14:24 +0000
commitde51b631a7cc29c2bb7b1a97c71edf86ba53e58a (patch)
tree35a99d27788e0f7bb1f5e90010494b5a3a5b9d70 /h-source/Application/Views/form.php
parent59a70fc11463d7583d2ee9e72f3c54e8bd6a0876 (diff)
h-source:improved the way forms are managed - part 2, improved help pages
Diffstat (limited to 'h-source/Application/Views/form.php')
-rw-r--r--h-source/Application/Views/form.php35
1 files changed, 33 insertions, 2 deletions
diff --git a/h-source/Application/Views/form.php b/h-source/Application/Views/form.php
index c6f532c..737a263 100644
--- a/h-source/Application/Views/form.php
+++ b/h-source/Application/Views/form.php
@@ -48,6 +48,13 @@
<div class="entry_label"><?php echo gtext("possible other names of the device");?>:<br /><span class="entry_label_small"><?php echo gtext("Add here the device name as written on the device itself or on the device box. Add it only if it is different from the <i>model name</i> already inserted inside the above entry. Add the new name in such a way that there is one name per row.");?></span></div>
<?php echo Html_Form::textarea('other_names',$values['other_names'],'device_textarea_entry');?>
</div>
+
+ <?php if (strcmp($this->controller,'printers') === 0 ) { ?>
+ <div class="form_entry">
+ <div class="entry_label"><?php echo gtext("subtype");?> (laser, inkjet, ..):</div>
+ <?php echo Html_Form::select('subtype',$values['subtype'],Printer::$subtype,"select_entry");?>
+ </div>
+ <?php } ?>
<div class="form_entry">
<div class="entry_label"><?php echo gtext("VendorID:ProductID code of the device");?>: <b>*</b><br /><a target="blank" href="<?php echo $this->baseUrl."/help/index/$lang#vendoridproductid";?>"><?php echo gtext("learn how to find it");?></a></div>
@@ -58,7 +65,6 @@
<div class="entry_label"><?php echo gtext("year of commercialization");?></div>
<?php echo Html_Form::select('comm_year',$values['comm_year'],Notebooks::$commYear,"select_entry");?>
</div>
-
<div class="form_entry">
<div class="entry_label"><?php echo gtext("interface");?> (<?php echo gtext("set not-specified if not sure");?>)</div>
@@ -78,8 +84,33 @@
</div>
<div class="form_entry">
- <div class="entry_label hidden_x_explorer"><?php echo gtext("does it work with free software?");?></div>
+ <div class="entry_label hidden_x_explorer">
+ <?php
+ if (strcmp($this->controller,'printers') === 0 or strcmp($this->controller,'scanners') === 0 )
+ {
+ echo gtext("compatibility with free software").":";
+ }
+ else
+ {
+ echo gtext("does it work with free software?");
+ }
+ ?>
+ </div>
<?php echo Html_Form::select($worksField,$values[$worksField],$worksOptions,"select_entry hidden_x_explorer");?>
+ <?php if (strcmp($this->controller,'printers') === 0 or strcmp($this->controller,'scanners') === 0) {
+ switch ($this->controller)
+ {
+ case 'printers':
+ $fragment = 'printer-compatibility';
+ break;
+ case 'scanners':
+ $fragment = 'scanner-compatibility';
+ break;
+ }
+ ?>
+ <!--if it is a printer-->
+ <a class="open_help_window" title="compatibility help page" target="blank" href="<?php echo $this->baseUrl."/help/index/$lang#$fragment";?>"><img class="top_left_images_help" src="<?php echo $this->baseUrl;?>/Public/Img/Acun/help_hint.png"></a>
+ <?php } ?>
</div>
<div class="form_entry">