fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10906] Deleted function view_cases_for_check_list


From: Torstein
Subject: [Fmsystem-commits] [10906] Deleted function view_cases_for_check_list
Date: Sun, 17 Feb 2013 20:15:33 +0000

Revision: 10906
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10906
Author:   vator
Date:     2013-02-17 20:15:33 +0000 (Sun, 17 Feb 2013)
Log Message:
-----------
Deleted function view_cases_for_check_list

Modified Paths:
--------------
    
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl

Modified: 
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl
===================================================================
--- 
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl
       2013-02-17 19:45:17 UTC (rev 10905)
+++ 
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl
       2013-02-17 20:15:33 UTC (rev 10906)
@@ -1,6 +1,16 @@
 <!-- $Id: view_calendar_month.xsl 9200 2012-04-21 20:05:34Z vator $ -->
 <xsl:template name="select_buildings_on_property">
-  <select id="choose-building-on-property" class="view-cases">
+  
+  <select id="choose-building-on-property">
+    <xsl:choose>
+      <xsl:when test="$cases_view = 'open_cases' or $cases_view = 
'closed_cases'">
+        <xsl:attribute name="class">view-cases</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="class">add-case</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
+    
     <option value="">Velg bygg</option>
     <xsl:for-each select="buildings_on_property">
       <option>




reply via email to

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