[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14325]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [14325] |
Date: |
Wed, 11 Nov 2015 00:24:36 +0000 |
Revision: 14325
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14325
Author: nelson224
Date: 2015-11-11 00:24:35 +0000 (Wed, 11 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-11 00:23:53 UTC (rev 14324)
+++ branches/dev-syncromind/frontend/templates/base/delegate.xsl
2015-11-11 00:24:35 UTC (rev 14325)
@@ -1,18 +1,20 @@
<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}">
+
<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-3">
+ <div class="pure-u-1 pure-u-md-1-2
pure-u-lg-1-3">
<xsl:choose>
<xsl:when
test="number_of_delegates < 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>
@@ -30,7 +32,7 @@
<dt></dt>
<dd><input
type="submit" name="add" value="{$btn_add}"/></dd>
</dl>
- </form>
+
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="error_message"/>
@@ -49,7 +51,7 @@
<xsl:choose>
<xsl:when test="//selected_org_unit !=
'all'">
- <div class="pure-u-1-3">
+ <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) <= 1)">
@@ -63,12 +65,12 @@
<li>
<xsl:choose>
<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"/>
@@ -84,7 +86,7 @@
</div>
</xsl:when>
<xsl:otherwise>
- <div class="pure-u-1-3">
+ <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>
@@ -92,7 +94,7 @@
<xsl:choose>
<xsl:when
test="normalize-space(//user_delegate) != ''">
- <div class="pure-u-1-3">
+ <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) <= 1)">
@@ -103,12 +105,12 @@
<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>
@@ -117,8 +119,9 @@
</div>
</xsl:when>
</xsl:choose>
+ </div>
</div>
- </div>
+ </form>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14325],
Nelson Guerra <=