[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7329] Added check for contract types options that ad
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7329] Added check for contract types options that adds field Ingen type if responsibility area is not of type eksternleie |
Date: |
Mon, 30 May 2011 11:10:20 +0000 |
Revision: 7329
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7329
Author: vator
Date: 2011-05-30 11:10:14 +0000 (Mon, 30 May 2011)
Log Message:
-----------
Added check for contract types options that adds field Ingen type if
responsibility area is not of type eksternleie
Modified Paths:
--------------
trunk/rental/templates/base/contract.php
Modified: trunk/rental/templates/base/contract.php
===================================================================
--- trunk/rental/templates/base/contract.php 2011-05-30 10:49:46 UTC (rev
7328)
+++ trunk/rental/templates/base/contract.php 2011-05-30 11:10:14 UTC (rev
7329)
@@ -279,8 +279,14 @@
{
?>
<select
name="contract_type">
- <option>Ingen
type</option>
- <?php
+ <!-- Adds
option Ingen type if the contract is not assigned responsibility area
eksternleie -->
+ <?php
+
$responsibility_area =
rental_socontract::get_instance()->get_responsibility_title($contract->get_location_id());
+
+ if(
strcmp($responsibility_area, "contract_type_eksternleie") != 0 ){
+ echo
"<option>Ingen type</option>";
+ }
+
foreach(rental_socontract::get_instance()->get_contract_types($contract->get_location_id())
as $contract_type_id => $contract_type_label)
{
echo
"<option ".($current_contract_type_id == $contract_type_id ?
'selected="selected"' : "")."
value=\"{$contract_type_id}\">".lang($contract_type_label)."</option>";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7329] Added check for contract types options that adds field Ingen type if responsibility area is not of type eksternleie,
Torstein <=