[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7862]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7862] |
Date: |
Wed, 12 Oct 2011 10:21:58 +0000 |
Revision: 7862
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7862
Author: vator
Date: 2011-10-12 10:21:54 +0000 (Wed, 12 Oct 2011)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/templates/base/control_items_receipt.xsl
Modified: trunk/controller/templates/base/control_items_receipt.xsl
===================================================================
--- trunk/controller/templates/base/control_items_receipt.xsl 2011-10-12
10:14:56 UTC (rev 7861)
+++ trunk/controller/templates/base/control_items_receipt.xsl 2011-10-12
10:21:54 UTC (rev 7862)
@@ -4,37 +4,48 @@
<div>
<!-- =========================== SHOW CONTROL ITEMS RECEIPT
=============================== -->
-
- <h2>Kvittering</h2>
- <form action="#" method="post">
-
+
<xsl:variable name="control_id"><xsl:value-of
select="control_id"/></xsl:variable>
- <input type="hidden" name="control_id" value="{control_id}" />
+ <input type="hidden" id="control_id" name="control_id"
value="{control_id}" />
- <ul class="proplist-col control_items">
+ <ul>
<xsl:for-each select="control_receipt_items">
- <ul>
- <li>
- <h3><xsl:value-of
select="control_group/group_name"/></h3>
- <div id="play">
- <ul>
- <xsl:for-each
select="control_items">
- <xsl:variable
name="control_item_id"><xsl:value-of select="id"/></xsl:variable>
- <li><xsl:number/>.
<xsl:value-of select="title"/></li>
- </xsl:for-each>
- </ul>
- </div>
- </li>
- </ul>
+ <form action="" class="save_order">
+ <ul class="itemlist control_items">
+ <li>
+ <h3><xsl:value-of
select="control_group/group_name"/></h3>
+
+ <xsl:variable
name="control_group_id"><xsl:value-of select="control_group/id"/></xsl:variable>
+ <input type="hidden"
name="control_group_id" value="{$control_group_id}" />
+
+ <ul id="list">
+ <xsl:for-each
select="control_items">
+ <xsl:variable
name="control_item_id"><xsl:value-of select="id"/></xsl:variable>
+
+ <xsl:variable
name="order_tag">
+
<xsl:choose>
+
<xsl:when test="order_nr > 0">
+
<xsl:value-of select="order_nr"/>
+
</xsl:when>
+
<xsl:otherwise>
+
<xsl:number/>
+
</xsl:otherwise>
+
</xsl:choose>:<xsl:value-of select="id"/>
+ </xsl:variable>
+
+ <li
class="list_item"><span class="order_nr"><xsl:number/></span>. <xsl:value-of
select="title"/><input type="hidden" name="order_nr[]" value="{$order_tag}"
/></li>
+ </xsl:for-each>
+ </ul>
+
+ </li>
+ </ul>
+ <div>
+ <xsl:variable
name="lang_save"><xsl:value-of select="php:function('lang', 'save')"
/></xsl:variable>
+ <input type="submit" id="save_order"
name="save_order" value="{$lang_save}" title = "{$lang_save}" />
+ </div>
+ </form>
</xsl:for-each>
- </ul>
-
- <div class="form-buttons">
- <xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'save')" /></xsl:variable>
- <input type="submit" name="show_receipt" value="{$lang_save}"
title = "{$lang_save}" />
- </div>
- </form>
-
+ </ul>
</div>
</div>
</xsl:template>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7862],
Torstein <=