fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7464] Added drop down box for adding furnish type to


From: Torstein
Subject: [Fmsystem-commits] [7464] Added drop down box for adding furnish type to composite in edit mode and a text field in view mode .
Date: Mon, 04 Jul 2011 06:59:55 +0000

Revision: 7464
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7464
Author:   vator
Date:     2011-07-04 06:59:54 +0000 (Mon, 04 Jul 2011)
Log Message:
-----------
Added drop down box for adding furnish type to composite in edit mode and a 
text field in view mode.

Modified Paths:
--------------
    trunk/rental/templates/base/composite.php

Modified: trunk/rental/templates/base/composite.php
===================================================================
--- trunk/rental/templates/base/composite.php   2011-07-04 06:55:13 UTC (rev 
7463)
+++ trunk/rental/templates/base/composite.php   2011-07-04 06:59:54 UTC (rev 
7464)
@@ -72,7 +72,31 @@
                                                        }
                                                ?>
                                        </dd>
+                                       <dt>
+                                               <!-- Furnish status  -->
+                                               <label 
for="furnish_type_id"><?php echo lang('furnish_type') ?></label>
+                                                       <?php
+                                                               
$furnish_types_arr = $composite->get_furnish_types();
+                                                               
$cur_furnish_type_id = $composite->get_furnish_type_id();
 
+                                                       // Edit composite
+                                                       if ($editable) { ?>
+                                                               <select 
name="furnish_type_id">
+                                                               <?php 
+                                                                       
foreach($furnish_types_arr as $id => $title){
+                                                                               
if($cur_furnish_type_id == $id)
+                                                                               
        echo "<option selected='true' value='$id'>" . $title . "</option>";
+                                                                               
else 
+                                                                               
        echo "<option value='$id'>" . $title . "</option>";
+                                                                       }
+                                                               ?>
+                                                               </select>       
                
+                                                       <?php 
+                                                       // View composite
+                                                       }else{ ?>
+                                                               <input 
type="text" id="furnish_type_id" value='<?php echo 
$furnish_types_arr[$cur_furnish_type_id]; ?>' disabled="disabled" />
+                                                       <?php } ?>
+                                       </dt>   
                                        <?php if ($editable) { // Only show 
custom address fields if we're in edit mode ?>
                                        <dt>
                                                <label 
for="has_custom_address"><?php echo lang('has_custom_address') ?></label>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]