fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15731] property: tts: simplified form


From: sigurdne
Subject: [Fmsystem-commits] [15731] property: tts: simplified form
Date: Sun, 25 Sep 2016 16:48:21 +0000 (UTC)

Revision: 15731
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15731
Author:   sigurdne
Date:     2016-09-25 16:48:21 +0000 (Sun, 25 Sep 2016)
Log Message:
-----------
property: tts: simplified form

Modified Paths:
--------------
    trunk/property/inc/class.uitts.inc.php
    trunk/property/templates/base/tts.xsl

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2016-09-24 02:23:09 UTC (rev 
15730)
+++ trunk/property/inc/class.uitts.inc.php      2016-09-25 16:48:21 UTC (rev 
15731)
@@ -2735,6 +2735,7 @@
 //_debug_array($cat_select);die();
                        }
 
+                       $cat_select['disabled'] = !!$this->simple;
 
 //                     $this->cats->set_appname('property','.project');
 //                     $order_catetory = 
$this->cats->formatted_xslt_list(array('select_name' => 
'values[order_cat_id]','selected' => $ticket['order_cat_id']));

Modified: trunk/property/templates/base/tts.xsl
===================================================================
--- trunk/property/templates/base/tts.xsl       2016-09-24 02:23:09 UTC (rev 
15730)
+++ trunk/property/templates/base/tts.xsl       2016-09-25 16:48:21 UTC (rev 
15731)
@@ -371,29 +371,31 @@
                                                        </xsl:for-each>
                                                </div>
                                        </xsl:for-each>
-                                       <div class="pure-control-group">
-                                               <xsl:variable 
name="lang_make_relation">
-                                                       <xsl:value-of 
select="php:function('lang', 'make relation')"/>
-                                               </xsl:variable>
+                                       <xsl:if test="simple !='1'">
+                                               <div class="pure-control-group">
+                                                       <xsl:variable 
name="lang_make_relation">
+                                                               <xsl:value-of 
select="php:function('lang', 'make relation')"/>
+                                                       </xsl:variable>
 
-                                               <label>
-                                                       <a href="#" 
onClick="make_relation({location_item_id});">
+                                                       <label>
+                                                               <a href="#" 
onClick="make_relation({location_item_id});">
+                                                                       
<xsl:attribute name="title">
+                                                                               
<xsl:value-of select="$lang_make_relation"/>
+                                                                       
</xsl:attribute>
+                                                                       
<xsl:value-of select="$lang_make_relation"/>
+                                                               </a>
+                                                       </label>
+                                                       <select 
name="make_relation" id="make_relation">
                                                                <xsl:attribute 
name="title">
                                                                        
<xsl:value-of select="$lang_make_relation"/>
                                                                </xsl:attribute>
-                                                               <xsl:value-of 
select="$lang_make_relation"/>
-                                                       </a>
-                                               </label>
-                                               <select name="make_relation" 
id="make_relation">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="$lang_make_relation"/>
-                                                       </xsl:attribute>
-                                                       <option value="">
-                                                               <xsl:value-of 
select="php:function('lang', 'select')"/>
-                                                       </option>
-                                                       <xsl:apply-templates 
select="relation_type_list/options"/>
-                                               </select>
-                                       </div>
+                                                               <option 
value="">
+                                                                       
<xsl:value-of select="php:function('lang', 'select')"/>
+                                                               </option>
+                                                               
<xsl:apply-templates select="relation_type_list/options"/>
+                                                       </select>
+                                               </div>
+                                       </xsl:if>
 
                                        <div class="pure-control-group">
                                                <label>
@@ -463,42 +465,56 @@
                                                                        
</xsl:if>
                                                                </input>
                                                        </div>
+                                               </xsl:when>
+                                       </xsl:choose>
+                                       <div class="pure-control-group">
+                                               <label>
+                                                       <xsl:value-of 
select="php:function('lang', 'Priority')"/>
+                                               </label>
+                                               <xsl:variable 
name="lang_priority_statustext">
+                                                       <xsl:value-of 
select="php:function('lang', 'Select the priority the selection belongs to')"/>
+                                               </xsl:variable>
+                                               <xsl:variable 
name="select_priority_name">
+                                                       <xsl:value-of 
select="select_priority_name"/>
+                                               </xsl:variable>
+                                               <select 
name="{$select_priority_name}" class="forms" 
title="{$lang_priority_statustext}">
+                                                       <xsl:if test="simple 
='1'">
+                                                               <xsl:attribute 
name="disabled">
+                                                                       
<xsl:text>disabled</xsl:text>
+                                                               </xsl:attribute>
+                                                       </xsl:if>
+                                                       <xsl:apply-templates 
select="priority_list/options"/>
+                                               </select>
+                                       </div>
+                                       <xsl:choose>
+                                               <xsl:when 
test="value_order_id=''">
                                                        <div 
class="pure-control-group">
                                                                <label>
-                                                                       
<xsl:value-of select="php:function('lang', 'Priority')"/>
+                                                                       
<xsl:value-of select="php:function('lang', 'status')"/>
                                                                </label>
-                                                               <xsl:variable 
name="lang_priority_statustext">
-                                                                       
<xsl:value-of select="php:function('lang', 'Select the priority the selection 
belongs to')"/>
-                                                               </xsl:variable>
-                                                               <xsl:variable 
name="select_priority_name">
-                                                                       
<xsl:value-of select="select_priority_name"/>
-                                                               </xsl:variable>
-                                                               <select 
name="{$select_priority_name}" class="forms" 
title="{$lang_priority_statustext}">
-                                                                       
<xsl:apply-templates select="priority_list/options"/>
+                                                               <select 
id="status_id" name="values[status]" class="forms">
+                                                                       
<xsl:attribute name="title">
+                                                                               
<xsl:value-of select="php:function('lang', 'Set the status of the ticket')"/>
+                                                                       
</xsl:attribute>
+                                                                       <xsl:if 
test="simple ='1'">
+                                                                               
<xsl:attribute name="disabled">
+                                                                               
        <xsl:text>disabled</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       
</xsl:if>
+                                                                       
<xsl:apply-templates select="status_list/options"/>
                                                                </select>
                                                        </div>
+                                               </xsl:when>
+                                       </xsl:choose>
+                                       <div class="pure-control-group">
+                                               <label>
+                                                       <xsl:value-of 
select="php:function('lang', 'category')"/>
+                                               </label>
+                                               <xsl:call-template 
name="categories"/>
+                                       </div>
+                                       <xsl:choose>
+                                               <xsl:when test="simple !='1'">
                                                        <xsl:choose>
-                                                               <xsl:when 
test="value_order_id=''">
-                                                                       <div 
class="pure-control-group">
-                                                                               
<label>
-                                                                               
        <xsl:value-of select="php:function('lang', 'status')"/>
-                                                                               
</label>
-                                                                               
<select id="status_id" name="values[status]" class="forms">
-                                                                               
        <xsl:attribute name="title">
-                                                                               
                <xsl:value-of select="php:function('lang', 'Set the status of 
the ticket')"/>
-                                                                               
        </xsl:attribute>
-                                                                               
        <xsl:apply-templates select="status_list/options"/>
-                                                                               
</select>
-                                                                       </div>
-                                                               </xsl:when>
-                                                       </xsl:choose>
-                                                       <div 
class="pure-control-group">
-                                                               <label>
-                                                                       
<xsl:value-of select="php:function('lang', 'category')"/>
-                                                               </label>
-                                                               
<xsl:call-template name="categories"/>
-                                                       </div>
-                                                       <xsl:choose>
                                                                <xsl:when 
test="show_finnish_date ='1'">
                                                                        <div 
class="pure-control-group">
                                                                                
<label>




reply via email to

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