[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8060]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [8060] |
Date: |
Wed, 09 Nov 2011 07:11:59 +0000 |
Revision: 8060
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8060
Author: vator
Date: 2011-11-09 07:11:58 +0000 (Wed, 09 Nov 2011)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/templates/base/control_tabs.xsl
trunk/controller/templates/base/view_check_lists.xsl
Added Paths:
-----------
trunk/controller/templates/base/edit_check_list.xsl
trunk/controller/templates/base/tab_view_check_lists.xsl
Modified: trunk/controller/templates/base/control_tabs.xsl
===================================================================
--- trunk/controller/templates/base/control_tabs.xsl 2011-11-09 06:55:28 UTC
(rev 8059)
+++ trunk/controller/templates/base/control_tabs.xsl 2011-11-09 07:11:58 UTC
(rev 8060)
@@ -4,7 +4,7 @@
<div class="yui-navset yui-navset-top" id="control_tabview">
<xsl:choose>
<xsl:when test="view = 'control_details'">
- <xsl:call-template name="yui_booking_i18n"/>
+ <xsl:call-template name="yui_booking_i18n"/>
<div class="identifier-header">
<h1><xsl:value-of select="php:function('lang',
'Control')"/></h1>
</div>
@@ -51,7 +51,7 @@
<h1><xsl:value-of select="php:function('lang',
'Check_list')"/> for <xsl:value-of select="control_title" /></h1>
</div>
<xsl:value-of disable-output-escaping="yes"
select="tabs" />
- <xsl:call-template name="view_check_lists" />
+ <xsl:call-template name="tab_view_check_lists" />
</xsl:when>
</xsl:choose>
</div>
Added: trunk/controller/templates/base/edit_check_list.xsl
===================================================================
--- trunk/controller/templates/base/edit_check_list.xsl
(rev 0)
+++ trunk/controller/templates/base/edit_check_list.xsl 2011-11-09 07:11:58 UTC
(rev 8060)
@@ -0,0 +1,91 @@
+<xsl:template match="data" name="view_check_list"
xmlns:php="http://php.net/xsl">
+<xsl:variable name="date_format">d/m-Y</xsl:variable>
+
+<div id="main_content">
+
+ <!-- =========================== SHOWS CONTROL ITEMS RECEIPT
=============================== -->
+
+ <form id="frm_save_check_items"
action="index.php?menuaction=controller.uicheck_list.save_check_items"
method="post">
+ <h1>Sjekkliste</h1>
+ <div class="form-buttons-top">
+ <xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'save')" /></xsl:variable>
+ <input type="submit" name="save_control"
value="{$lang_save}" title = "{$lang_save}" />
+ </div>
+ <fieldset class="check_list_details">
+ <div>
+ <label>Tittel</label>
+ <input>
+ <xsl:attribute
name="name">check_list_status</xsl:attribute>
+ <xsl:attribute name="value"><xsl:value-of
select="check_list/status"/></xsl:attribute>
+ </input>
+ </div>
+ <div>
+ <label>Skal utføres innen</label>
+ <xsl:if test="check_list/deadline != ''">
+ <xsl:value-of
select="php:function('date', $date_format, number(check_list/deadline))"/><br/>
+ </xsl:if>
+ </div>
+ <div>
+ <label>Kommentar</label>
+ <textarea>
+ <xsl:attribute
name="name">check_list_comment</xsl:attribute>
+ <xsl:value-of select="check_list/comment"/>
+ </textarea>
+ </div>
+
+ </fieldset>
+
+ <h2 class="check_item_details">Sjekkpunkter</h2>
+
+ <fieldset class="check_item_details">
+ <xsl:variable name="check_list_id"><xsl:value-of
select="check_list/id"/></xsl:variable>
+ <input type="hidden" name="check_list_id"
value="{$check_list_id}" />
+
+ <xsl:for-each select="check_list/check_item_array">
+ <xsl:variable
name="check_item_id"><xsl:value-of select="id"/></xsl:variable>
+ <input type="hidden" name="check_item_ids[]"
value="{$check_item_id}" />
+ </xsl:for-each>
+
+ <xsl:choose>
+ <xsl:when
test="check_list/check_item_array/child::node()">
+ <xsl:for-each
select="check_list/check_item_array">
+ <xsl:variable
name="check_item_id"><xsl:value-of select="id"/></xsl:variable>
+
+ <div class="check_item">
+ <h3
class="order_nr"><xsl:number/>. <xsl:value-of select="control_item/title"/></h3>
+ <div>
+ <label>Status</label>
+ <span>
+ <select
name="status_{$check_item_id}">
+
<option value="true">Utført</option>
+
<option value="false">Ikke utført</option>
+ </select>
+ </span>
+ </div>
+ <div>
+ <label>Kommentar</label>
+ <span>
+ <textarea
name="comment_{$check_item_id}">
+
<xsl:value-of select="comment"/>
+ </textarea>
+ </span>
+ </div>
+ <div>
+ <label>Hva skal
gjøres</label><span><xsl:value-of select="control_item/what_to_do"/></span>
+ </div>
+ <div>
+
<label>Utførelsesbeskrivelse</label><span><xsl:value-of
select="control_item/what_to_do"/></span>
+ </div>
+ </div>
+ </xsl:for-each>
+ </xsl:when>
+ </xsl:choose>
+
+ <div class="form-buttons">
+ <xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'save')" /></xsl:variable>
+ <input type="submit" name="save_control"
value="{$lang_save}" title = "{$lang_save}" />
+ </div>
+ </fieldset>
+ </form>
+</div>
+</xsl:template>
\ No newline at end of file
Property changes on: trunk/controller/templates/base/edit_check_list.xsl
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/controller/templates/base/tab_view_check_lists.xsl
===================================================================
--- trunk/controller/templates/base/tab_view_check_lists.xsl
(rev 0)
+++ trunk/controller/templates/base/tab_view_check_lists.xsl 2011-11-09
07:11:58 UTC (rev 8060)
@@ -0,0 +1,81 @@
+<xsl:template name="tab_view_check_lists" xmlns:php="http://php.net/xsl">
+<xsl:variable name="date_format">d/m-Y</xsl:variable>
+
+<div class="yui-content tab_content">
+
+ <!-- =========================== SHOWS CONTROL ITEMS RECEIPT
=============================== -->
+ <xsl:variable name="control_id"><xsl:value-of
select="control_id"/></xsl:variable>
+ <input type="hidden" id="control_id" name="control_id"
value="{control_id}" />
+
+ <h2>Sjekklister</h2>
+
+ <fieldset class="control_details">
+ <label>Startdato</label>
+ <xsl:if test="control_as_array/start_date != ''">
+ <xsl:value-of select="php:function('date',
$date_format, number(control_as_array/start_date))"/><br/>
+ </xsl:if>
+ <label>Sluttdato</label>
+ <xsl:if test="control_as_array/end_date != ''">
+ <xsl:value-of select="php:function('date',
$date_format, number(control_as_array/end_date))"/><br/>
+ </xsl:if>
+ <label>Syklustype</label><xsl:value-of
select="control_as_array/repeat_type"/><br/>
+ <label>Syklusfrekvens</label><xsl:value-of
select="control_as_array/repeat_interval"/><br/>
+ </fieldset>
+
+ <ul class="check_list">
+ <li class="heading">
+ <div class="status">Status</div>
+ <div>Skal utføres innen dato</div>
+ <div>Planlagt utført dato</div>
+ <div>Ble utført dato</div>
+ <div>Kommentar</div>
+ </li>
+ <xsl:choose>
+ <xsl:when test="check_list_array/child::node()">
+ <xsl:for-each select="check_list_array">
+ <li>
+ <div
class="order_nr"><xsl:number/>.</div>
+ <div class="status">
+ <xsl:variable
name="status"><xsl:value-of select="status"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when
test="status = 1">
+ <img
height="15" src="controller/images/status_icon_light_green.png" />
+ </xsl:when>
+ <xsl:otherwise>
+ <img
height="15" src="controller/images/status_icon_red.png" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ <div>
+ <a>
+
<xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=controller.uicheck_list.view_check_list</xsl:text>
+
<xsl:text>&check_list_id=</xsl:text>
+
<xsl:value-of select="id"/>
+
</xsl:attribute>
+ <xsl:if
test="deadline != ''">
+
<xsl:value-of select="php:function('date', $date_format, number(deadline))"/>
+ </xsl:if>
+ </a>
+ </div>
+ <div>
+ <xsl:if
test="planned_date != ''">
+ <xsl:value-of
select="php:function('date', $date_format, number(planned_date))"/>
+ </xsl:if>
+ </div>
+ <div>
+ <xsl:if
test="completed_date != ''">
+ <xsl:value-of
select="php:function('date', $date_format, number(completed_date))"/>
+ </xsl:if>
+ </div>
+ <div><xsl:value-of
select="comment"/></div>
+ </li>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ Ingen sjekklister for denne kontrollen
+ </xsl:otherwise>
+ </xsl:choose>
+ </ul>
+</div>
+</xsl:template>
\ No newline at end of file
Property changes on: trunk/controller/templates/base/tab_view_check_lists.xsl
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/controller/templates/base/view_check_lists.xsl
===================================================================
--- trunk/controller/templates/base/view_check_lists.xsl 2011-11-09
06:55:28 UTC (rev 8059)
+++ trunk/controller/templates/base/view_check_lists.xsl 2011-11-09
07:11:58 UTC (rev 8060)
@@ -1,4 +1,4 @@
-<xsl:template name="view_check_lists" xmlns:php="http://php.net/xsl">
+<xsl:template match="data" name="view_check_lists"
xmlns:php="http://php.net/xsl">
<xsl:variable name="date_format">d/m-Y</xsl:variable>
<div id="main_content">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8060],
Torstein <=