fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14356]


From: Nelson Guerra
Subject: [Fmsystem-commits] [14356]
Date: Sat, 14 Nov 2015 00:12:33 +0000

Revision: 14356
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14356
Author:   nelson224
Date:     2015-11-14 00:12:33 +0000 (Sat, 14 Nov 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/frontend/templates/base/delegate.xsl

Modified: branches/dev-syncromind/frontend/templates/base/delegate.xsl
===================================================================
--- branches/dev-syncromind/frontend/templates/base/delegate.xsl        
2015-11-13 23:56:52 UTC (rev 14355)
+++ branches/dev-syncromind/frontend/templates/base/delegate.xsl        
2015-11-14 00:12:33 UTC (rev 14356)
@@ -1,127 +1,120 @@
 <xsl:template match="delegate_data" xmlns:php="http://php.net/xsl";>
-       <form name="form" method="post" action="{form_action}" class="pure-form 
pure-form-stacked">
-       <div id="tab-content">
-               <xsl:value-of disable-output-escaping="yes" select="tabs" />
-               <xsl:variable name="location_id"><xsl:value-of 
select="location_id"/></xsl:variable>
-               <div id="{$location_id}">
+       <div class="pure-form pure-form-stacked">
+               <div id="tab-content">
+                       <xsl:value-of disable-output-escaping="yes" 
select="tabs" />
+                       <xsl:variable name="location_id"><xsl:value-of 
select="location_id"/></xsl:variable>
+                       <div id="{$location_id}">
+                               <xsl:variable name="unit_leader" 
select="//header/org_unit[ORG_UNIT_ID = 
//selected_org_unit]/LEADER"></xsl:variable>
+                               <xsl:choose>
+                                       <xsl:when test="//selected_org_unit = 
'all' or $unit_leader = '1'">
+                                               <div class="pure-u-1 
pure-u-md-1-2 pure-u-lg-1-3">
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="number_of_delegates &lt; delegate_limit">
+                                                                       <img 
src="frontend/templates/base/images/16x16/group_add.png" 
class="list_image"/><xsl:value-of select="php:function('lang', 'find_user')"/>
+                                                                       
<xsl:variable name="btn_add"><xsl:value-of select="php:function('lang', 
'btn_add')"/></xsl:variable>
+                                                                       
<xsl:variable name="btn_search"><xsl:value-of select="php:function('lang', 
'btn_search')"/></xsl:variable>
+                                                                       <form 
ENCTYPE="multipart/form-data" name="form" method="post" action="{form_action}">
+                                                                               
<input type="hidden" name="account_id" value="{search/account_id}"/>
+                                                                               
<dl>
+                                                                               
        <dt><xsl:value-of select="php:function('lang', 'username')"/></dt>
+                                                                               
        <dd><input type="text" name="username" 
value="{search/username}"/><input type="submit" name="search" 
value="{$btn_search}"/></dd>
+                                                                               
        <dt><xsl:value-of select="php:function('lang', 'firstname')"/></dt>
+                                                                               
        <dd><input type="text" name="firstname" readonly="" 
value="{search/firstname}" style="background-color: #CCCCCC;"/></dd>
+                                                                               
        <dt><xsl:value-of select="php:function('lang', 'lastname')"/></dt>
+                                                                               
        <dd><input type="text" name="lastname" readonly="" 
value="{search/lastname}" style="background-color: #CCCCCC;"/></dd>
+                                                                               
        <dt><xsl:value-of select="php:function('lang', 'email')"/></dt>
+                                                                               
        <dd><input type="text" name="email" readonly="" value="{search/email}" 
style="background-color: #CCCCCC;"/></dd>
+                                                                               
        <dt></dt>
+                                                                               
        <dd><input type="submit" name="add" value="{$btn_add}"/></dd>
+                                                                               
</dl>
+                                                                       </form>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                                       
<xsl:value-of select="error_message"/>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                               </div>
+                                       </xsl:when>
+                               </xsl:choose>
 
-               <xsl:variable name="unit_leader" 
select="//header/org_unit[ORG_UNIT_ID = 
//selected_org_unit]/LEADER"></xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="//selected_org_unit = 'all' or 
$unit_leader = '1'">
-                               <div class="pure-u-1 pure-u-md-1-2 
pure-u-lg-1-3">
-                                       <xsl:choose>
-                                               <xsl:when 
test="number_of_delegates &lt; delegate_limit">
-                                                       <img 
src="frontend/templates/base/images/16x16/group_add.png" 
class="list_image"/><xsl:value-of select="php:function('lang', 'find_user')"/>
-                                                   <xsl:variable 
name="btn_add"><xsl:value-of select="php:function('lang', 
'btn_add')"/></xsl:variable>
-                                                   <xsl:variable 
name="btn_search"><xsl:value-of select="php:function('lang', 
'btn_search')"/></xsl:variable>
+                               <xsl:choose>
+                                  <xsl:when test="msgbox_data != ''">
+                                       <xsl:call-template name="msgbox"/>
+                                  </xsl:when>
+                          </xsl:choose>
 
-                                                       <input type="hidden" 
name="account_id" value="{search/account_id}"/>
-                                                       <dl>
-                                                               
<dt><xsl:value-of select="php:function('lang', 'username')"/></dt>
-                                                               <dd><input 
type="text" name="username" value="{search/username}"/><input type="submit" 
name="search" value="{$btn_search}"/></dd>
-                                                               
<dt><xsl:value-of select="php:function('lang', 'firstname')"/></dt>
-                                                               <dd><input 
type="text" name="firstname" readonly="" value="{search/firstname}" 
style="background-color: #CCCCCC;"/></dd>
-                                                               
<dt><xsl:value-of select="php:function('lang', 'lastname')"/></dt>
-                                                               <dd><input 
type="text" name="lastname" readonly="" value="{search/lastname}" 
style="background-color: #CCCCCC;"/></dd>
-                                                               
<dt><xsl:value-of select="php:function('lang', 'email')"/></dt>
-                                                               <dd><input 
type="text" name="email" readonly="" value="{search/email}" 
style="background-color: #CCCCCC;"/></dd>
-                                                               <!-- 
<dt><xsl:value-of select="php:function('lang', 'password')"/></dt>
-                                                               <dd><input 
type="password" name="password1"/></dd>
-                                                               
<dt><xsl:value-of select="php:function('lang', 'repeat_password')"/></dt>
-                                                               <dd><input 
type="password" name="password2"/></dd> -->
-                                                               <dt></dt>
-                                                               <dd><input 
type="submit" name="add" value="{$btn_add}"/></dd>
-                                                       </dl>
-                                       
-                                               </xsl:when>
-                                               <xsl:otherwise>
-                                                       <xsl:value-of 
select="error_message"/>
-                                               </xsl:otherwise>
-                                       </xsl:choose>
-                               </div>
-                       </xsl:when>
-               </xsl:choose>
-                       
-                       
-               <xsl:choose>
-           <xsl:when test="msgbox_data != ''">
-               <xsl:call-template name="msgbox"/>
-           </xsl:when>
-       </xsl:choose>
-               
-                       <xsl:choose>
-                                       <xsl:when test="//selected_org_unit != 
'all'">
-                                               <div class="pure-u-1 
pure-u-md-1-2 pure-u-lg-1-3">
+                               <xsl:choose>
+                                       <xsl:when test="//selected_org_unit != 
'all'">
+                                               <div class="pure-u-1 
pure-u-md-1-2 pure-u-lg-1-3">
                                                        <h3><xsl:value-of 
select="php:function('lang', 'delegates_for_res_unit')"/> (<xsl:value-of 
select="number_of_delegates"/>)</h3>
                                                        <xsl:choose>
-                                                               <xsl:when 
test="not(normalize-space(delegate)) and (count(delegate) &lt;= 1)">
-                                                                        <em 
style="margin-left: 1em; "><xsl:value-of select="php:function('lang', 
'no_delegates')"/></em>
-                                                               </xsl:when>
+                                                               <xsl:when 
test="not(normalize-space(delegate)) and (count(delegate) &lt;= 1)">
+                                                                        <em 
style="margin-left: 1em; "><xsl:value-of select="php:function('lang', 
'no_delegates')"/></em>
+                                                               </xsl:when>
                                                                <xsl:otherwise>
-                                                                <xsl:variable 
name="btn_remove"><xsl:value-of select="php:function('lang', 
'btn_remove')"/></xsl:variable>
-                                                                       
+                                                               <xsl:variable 
name="btn_remove"><xsl:value-of select="php:function('lang', 
'btn_remove')"/></xsl:variable>
                                                                        <ul>
                                                                                
<xsl:for-each select="delegate">
                                                                                
        <li>
                                                                                
                 <xsl:choose>
-                                                                               
                        <xsl:when test="$unit_leader = '1'">
-                                                               
-                                                                               
                                        <input type="hidden" name="account_id" 
value="{account_id}"/>
+                                                                               
                        <xsl:when test="$unit_leader = '1'">
+                                                                               
                                <form ENCTYPE="multipart/form-data" name="form" 
method="post" action="{form_action}">
+                                                                               
                                        <input type="hidden" name="account_id" 
value="{account_id}"/>
                                                                                
                                         <img 
src="frontend/templates/base/images/16x16/user_gray.png" 
class="list_image"/><xsl:value-of select="account_lastname"/>, <xsl:value-of 
select="account_firstname"/> 
                                                                                
                                        (<xsl:value-of select="account_lid"/>)
                                                                                
                                        <input type="submit" 
name="remove_specific" value="{$btn_remove}"/>
-                                                                               
                
+                                                                               
                                </form>
                                                                                
                        </xsl:when>
                                                                                
                        <xsl:otherwise>
                                                                                
                                <img 
src="frontend/templates/base/images/16x16/user_gray.png" 
class="list_image"/><xsl:value-of select="account_lastname"/>, <xsl:value-of 
select="account_firstname"/> 
                                                                                
                                        (<xsl:value-of select="account_lid"/>)
                                                                                
                        </xsl:otherwise>
                                                                                
                </xsl:choose>
-                                                                               
                
+
                                                                                
        </li>
                                                                                
</xsl:for-each>
                                                                        </ul>
                                                                </xsl:otherwise>
                                                        </xsl:choose>
                                                </div>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <div class="pure-u-1 
pure-u-md-1-2 pure-u-lg-1-3">
-                                                       <h3 style="color: 
red;"><xsl:value-of select="php:function('lang', 
'deletage_to_all_res_units')"/></h3>
-                                               </div>
-                                       </xsl:otherwise>
-                       </xsl:choose>
-                                                               
-                       <xsl:choose>
-                               <xsl:when 
test="normalize-space(//user_delegate) != ''">               
-                                       <div class="pure-u-1 pure-u-md-1-2 
pure-u-lg-1-3">
-                                               <h3><xsl:value-of 
select="php:function('lang', 'delegates_for_user')"/> (<xsl:value-of 
select="number_of_user_delegates"/>)</h3>
-                                               <xsl:choose>
-                                                       <xsl:when 
test="not(normalize-space(user_delegate)) and (count(user_delegate) &lt;= 1)">
-                                                                <em 
style="margin-left: 1em;"><xsl:value-of select="php:function('lang', 
'no_delegates')"/></em>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                       <xsl:variable 
name="btn_remove"><xsl:value-of select="php:function('lang', 
'btn_remove')"/></xsl:variable>
-                                                               <ul>
-                                                                       
<xsl:for-each select="user_delegate">
-                                                                               
<li>
-                                                                       
-                                                                               
                <input type="hidden" name="account_id" value="{account_id}"/>
-                                                                               
                 <img src="frontend/templates/base/images/16x16/user_gray.png" 
class="list_image"/><xsl:value-of select="account_lastname"/>, <xsl:value-of 
select="account_firstname"/> 
-                                                                               
                (<xsl:value-of select="account_lid"/>)
-                                                                               
                <input type="submit" name="remove" value="{$btn_remove}"/>
-                                                                       
-                                                                               
</li>
-                                                                       
</xsl:for-each>
-                                                               </ul>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </div>
-                               </xsl:when>
-                       </xsl:choose>
+                                       </xsl:when>
+                                       <xsl:otherwise>
+                                               <div class="pure-u-1 
pure-u-md-1-2 pure-u-lg-1-3">
+                                                       <h3 style="color: 
red;"><xsl:value-of select="php:function('lang', 
'deletage_to_all_res_units')"/></h3>
+                                               </div>
+                                       </xsl:otherwise>
+                               </xsl:choose>
+
+                               <xsl:choose>
+                                       <xsl:when 
test="normalize-space(//user_delegate) != ''">               
+                                               <div class="pure-u-1 
pure-u-md-1-2 pure-u-lg-1-3">
+                                                       <h3><xsl:value-of 
select="php:function('lang', 'delegates_for_user')"/> (<xsl:value-of 
select="number_of_user_delegates"/>)</h3>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="not(normalize-space(user_delegate)) and (count(user_delegate) &lt;= 1)">
+                                                                        <em 
style="margin-left: 1em;"><xsl:value-of select="php:function('lang', 
'no_delegates')"/></em>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                               <xsl:variable 
name="btn_remove"><xsl:value-of select="php:function('lang', 
'btn_remove')"/></xsl:variable>
+                                                                       <ul>
+                                                                               
<xsl:for-each select="user_delegate">
+                                                                               
        <li>
+                                                                               
                <form ENCTYPE="multipart/form-data" name="form" method="post" 
action="{form_action}">
+                                                                               
                        <input type="hidden" name="account_id" 
value="{account_id}"/>
+                                                                               
                         <img 
src="frontend/templates/base/images/16x16/user_gray.png" 
class="list_image"/><xsl:value-of select="account_lastname"/>, <xsl:value-of 
select="account_firstname"/> 
+                                                                               
                        (<xsl:value-of select="account_lid"/>)
+                                                                               
                        <input type="submit" name="remove" 
value="{$btn_remove}"/>
+                                                                               
                </form>
+                                                                               
        </li>
+                                                                               
</xsl:for-each>
+                                                                       </ul>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                               </div>
+                                       </xsl:when>
+                               </xsl:choose>
                        </div>
                </div>  
-       </form>
+       </div>
 </xsl:template>
 
 




reply via email to

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