[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10854] Moved view_closed_cases and view_open_cases t
From: |
Torstein |
Subject: |
[Fmsystem-commits] [10854] Moved view_closed_cases and view_open_cases to case folder |
Date: |
Fri, 15 Feb 2013 13:27:26 +0000 |
Revision: 10854
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10854
Author: vator
Date: 2013-02-15 13:27:23 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
Moved view_closed_cases and view_open_cases to case folder
Added Paths:
-----------
trunk/controller/templates/base/case/add_case.xsl
trunk/controller/templates/base/case/view_closed_cases.xsl
trunk/controller/templates/base/case/view_open_cases.xsl
Removed Paths:
-------------
trunk/controller/templates/base/check_list/add_case.xsl
trunk/controller/templates/base/check_list/view_closed_cases.xsl
trunk/controller/templates/base/check_list/view_open_cases.xsl
Copied: trunk/controller/templates/base/case/add_case.xsl (from rev 10844,
trunk/controller/templates/base/check_list/add_case.xsl)
===================================================================
--- trunk/controller/templates/base/case/add_case.xsl
(rev 0)
+++ trunk/controller/templates/base/case/add_case.xsl 2013-02-15 13:27:23 UTC
(rev 10854)
@@ -0,0 +1,214 @@
+<!-- $Id: choose_control_items.xsl 8267 2011-12-11 12:27:18Z sigurdne $ -->
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+<xsl:variable name="session_url">&<xsl:value-of
select="php:function('get_phpgw_session_url')" /></xsl:variable>
+
+<div id="main_content" class="medium">
+ <div id="check-list-heading">
+ <div class="box-1">
+ <h1>Kontroll: <xsl:value-of
select="control/title"/></h1>
+ <xsl:choose>
+ <xsl:when test="type = 'component'">
+ <h2><xsl:value-of
select="component_array/xml_short_desc"/></h2>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="location_level
= 1">
+ <h2>Eiendom:
<xsl:value-of select="location_array/loc1_name"/></h2>
+ </xsl:when>
+ <xsl:otherwise>
+ <h2>Bygg:
<xsl:value-of select="location_array/loc2_name"/></h2>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ <div class="box-2 select-box">
+ <xsl:call-template name="nav_control_plan" />
+ </div>
+
+ <!-- ================== CHECKLIST TAB MENU
===================== -->
+ <xsl:call-template name="check_list_tab_menu" />
+ </div>
+
+ <div style="margin:20px 0;">
+ <xsl:call-template name="select_buildings_on_property"
/>
+ </div>
+
+ <div id="view_cases">
+
+ <h3 class="box_header ext">Registrer sak/måling</h3>
+ <div class="tab_item active ext">
+
+ <xsl:variable name="action_url"><xsl:value-of
select="php:function('get_phpgw_link', '/index.php',
'menuaction:controller.uicase.add_case,phpgw_return_as:json')" /></xsl:variable>
+
+ <ul class="add-cases">
+ <xsl:for-each select="control_groups_with_items_array">
+ <xsl:choose>
+ <xsl:when test="control_items/child::node()">
+ <li>
+ <h3 class="expand-trigger"><img
src="controller/images/arrow_right.png" /><xsl:value-of
select="control_group/group_name"/></h3>
+ <ul class="expand_list"
style="display:none;">
+ <xsl:for-each
select="control_items">
+ <li>
+
<h4><img src="controller/images/arrow_right.png" /><span><xsl:value-of
select="title"/></span></h4>
+
<xsl:choose>
+
<xsl:when test="type = 'control_item_type_1'">
+
<form class="frm_register_case expand_item"
action="{$action_url}" method="post">
+
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
+
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
+
<input type="hidden"
name="check_list_id"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
+
<input type="hidden" name="status" value="0" />
+ <input type="hidden" name="type"
value="control_item_type_1" />
+ <input type="hidden" name="location_code" value=""
class="required" />
+
+ <!-- WHAT TO DO -->
+ <div class="row what-to-do">
+ <label>Hva skal sjekkes:</label>
+ <div>
+ <xsl:value-of select="what_to_do"/>
+ </div>
+ </div>
+
+ <!-- HOW TO DO -->
+ <div class="row how-to-do">
+ <label>Utførelsesbeskrivelse:</label>
+ <div>
+ <xsl:value-of select="how_to_do"/>
+ </div>
+ </div>
+
+
<div>
+ <label class="comment">Beskrivelse av sak</label>
+
<textarea name="case_descr" class="required">
+
<xsl:value-of select="comment"/>
+
</textarea>
+
</div>
+
<input type="submit" class="btn" name="save_control"
value="Lagre sak" />
+
</form>
+
</xsl:when>
+
<xsl:when test="type = 'control_item_type_2'">
+
<form class="frm_register_case expand_item" action="{$action_url}"
method="post">
+
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
+
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
+
<input name="check_list_id"
type="hidden"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
+
<input name="type" type="hidden"
value="control_item_type_2" />
+
+
<div class="row">
+
<label>Status</label>
+
<select name="status">
+
<option value="0"
SELECTED="SELECTED">Åpen</option>
+
<option value="1" >Lukket</option>
+
<option value="2" >Venter på
tilbakemelding</option>
+
</select>
+
</div>
+
<div class="row">
+
<label class="comment">Registrer målingsverdi</label>
+
<input>
+
<xsl:attribute
name="name">measurement</xsl:attribute>
+
<xsl:attribute name="type">text</xsl:attribute>
+
<xsl:attribute name="value">
+
<xsl:value-of select="measurement"/>
+
</xsl:attribute>
+
</input>
+
</div>
+
<div class="row">
+
<label class="comment">Beskrivelse av sak</label>
+
<textarea name="case_descr">
+
<xsl:value-of select="comment"/>
+
</textarea>
+
</div>
+
<xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'register_error')" /></xsl:variable>
+
<input type="submit" name="save_control" value="Lagre
måling" title="{$lang_save}" />
+
</form>
+
</xsl:when>
+
<xsl:when test="type = 'control_item_type_3'">
+
<form class="frm_register_case expand_item"
action="{$action_url}" method="post">
+
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
+
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
+
<input name="check_list_id"
type="hidden"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
+
<input name="type" type="hidden"
value="control_item_type_3" />
+
+
<div class="row">
+
<label>Status</label>
+
<select name="status">
+
<option value="0"
SELECTED="SELECTED">Åpen</option>
+
<option value="1" >Lukket</option>
+
<option value="2" >Venter på
tilbakemelding</option>
+
</select>
+
</div>
+
<div class="row">
+
<label class="comment">Velg verdi fra liste</label>
+
<select name="option_value">
+
<xsl:for-each select="options_array">
+
<option>
+
<xsl:attribute
name="value"><xsl:value-of select="option_value"/></xsl:attribute>
+
<xsl:value-of
select="option_value"/>
+
</option>
+
</xsl:for-each>
+
</select>
+
</div>
+
<div class="row">
+
<label class="comment">Beskrivelse av sak</label>
+
<textarea name="case_descr">
+
<xsl:value-of select="comment"/>
+
</textarea>
+
</div>
+
<xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'register_error')" /></xsl:variable>
+
<input type="submit" name="save_control" value="Lagre
sak/måling" title="{$lang_save}" />
+
</form>
+
</xsl:when>
+
<xsl:when test="type = 'control_item_type_4'">
+
<form class="frm_register_case expand_item"
action="{$action_url}" method="post">
+
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
+
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
+
<input name="check_list_id"
type="hidden"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
+
<input name="type" type="hidden"
value="control_item_type_4" />
+
+
<div class="row">
+
<label>Status</label>
+
<select name="status">
+
<option value="0"
SELECTED="SELECTED">Åpen</option>
+
<option value="1" >Lukket</option>
+
<option value="2" >Venter på
tilbakemelding</option>
+
</select>
+
</div>
+
<div class="row">
+
<label class="comment">Velg verdi fra liste</label>
+
<select name="option_value">
+
<xsl:for-each select="options_array">
+
<option>
+
<xsl:attribute
name="value"><xsl:value-of select="option_value"/></xsl:attribute>
+
<xsl:value-of
select="option_value"/>
+
</option>
+
</xsl:for-each>
+
</select>
+
</div>
+
<div class="row">
+
<label class="comment">Beskrivelse av sak</label>
+
<textarea name="case_descr">
+
<xsl:value-of select="comment"/>
+
</textarea>
+
</div>
+
<xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'register_error')" /></xsl:variable>
+
<input type="submit" name="save_control" value="Lagre
sak/måling" title="{$lang_save}" />
+
</form>
+
</xsl:when>
+
</xsl:choose>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </li>
+ </xsl:when>
+ <xsl:otherwise>
+ <li class="list_item">
+ <h3><xsl:value-of
select="control_group/group_name"/></h3>
+ <div>Ingen kontrollpunkt for
denne gruppen</div>
+ </li>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </ul>
+ </div>
+</div>
+</div>
+</xsl:template>
Copied: trunk/controller/templates/base/case/view_closed_cases.xsl (from rev
10844, trunk/controller/templates/base/check_list/view_closed_cases.xsl)
===================================================================
--- trunk/controller/templates/base/case/view_closed_cases.xsl
(rev 0)
+++ trunk/controller/templates/base/case/view_closed_cases.xsl 2013-02-15
13:27:23 UTC (rev 10854)
@@ -0,0 +1,105 @@
+<!-- $Id: choose_control_items.xsl 8267 2011-12-11 12:27:18Z sigurdne $ -->
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+<xsl:variable name="session_url">&<xsl:value-of
select="php:function('get_phpgw_session_url')" /></xsl:variable>
+
+<div id="view_cases">
+ <xsl:call-template name="cases_tab_menu">
+ <xsl:with-param
name="active_tab">view_closed_cases</xsl:with-param>
+ </xsl:call-template>
+
+ <div class="tab_item active">
+ <xsl:choose>
+ <xsl:when
test="closed_check_items_and_cases/child::node()">
+ <ul class="check_items">
+ <xsl:for-each
select="closed_check_items_and_cases">
+ <xsl:choose>
+ <xsl:when
test="cases_array/child::node()">
+ <li
class="check_item_case">
+
<h4><span><xsl:value-of select="control_item/title"/></span></h4>
+ <ul>
+
<xsl:for-each select="cases_array">
+
<xsl:variable name="cases_id"><xsl:value-of select="id"/></xsl:variable>
+
<li>
+
<!-- ==================== COL1: ORDERNR ===================== -->
+
<div class="col_1">
+
<span class="order_nr"><xsl:number /></span>.
+
</div>
+
+
<!-- ==================== COL2: CASE CONTENT ===================== -->
+
<div class="col_2">
+
+
<!-- =============== SHOW CASE INFO ============= -->
+
<div class="case_info">
+
+
<!-- DESCRIPTION -->
+
<div class="case_descr"><xsl:value-of select="descr"/></div>
+
<!-- === QUICK EDIT MENU === -->
+
<div class="quick_menu">
+
<a class="open_case">
+
<xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=controller.uicase.open_case</xsl:text>
+
<xsl:text>&case_id=</xsl:text>
+
<xsl:value-of select="id"/>
+
<xsl:text>&check_list_id=</xsl:text>
+
<xsl:value-of select="//check_list/id"/>
+
<xsl:text>&phpgw_return_as=json</xsl:text>
+
<xsl:value-of select="$session_url"/>
+
</xsl:attribute>
+
åpne
+
</a>
+
<xsl:choose>
+
<xsl:when test="location_item_id = 0">
+
<a class="delete_case">
+
<xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=controller.uicase.delete_case</xsl:text>
+
<xsl:text>&case_id=</xsl:text>
+
<xsl:value-of
select="id"/>
+
<xsl:text>&check_list_id=</xsl:text>
+
<xsl:value-of
select="//check_list/id"/>
+
<xsl:text>&phpgw_return_as=json</xsl:text>
+
<xsl:value-of
select="$session_url"/>
+
</xsl:attribute>
+
slett
+
</a>
+
</xsl:when>
+
</xsl:choose>
+
</div>
+
</div>
+
</div>
+
<!-- ==================== COL3: MESSAGE LINK ===================== -->
+
<div class="col_3">
+
<xsl:choose>
+
<xsl:when test="location_item_id > 0">
+
<a target="_blank">
+
<xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=property.uitts.view</xsl:text>
+
<xsl:text>&id=</xsl:text>
+
<xsl:value-of
select="location_item_id"/>
+
<xsl:value-of
select="$session_url"/>
+
</xsl:attribute>
+
Vis melding
+
</a>
+
</xsl:when>
+
<xsl:otherwise>
+
<span class="message">Ingen melding</span>
+
</xsl:otherwise>
+
</xsl:choose>
+
</div>
+
+
</li>
+
</xsl:for-each>
+ </ul>
+ </li>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>
+ </ul>
+
+ </xsl:when>
+ <xsl:otherwise>
+ <p>Ingen lukkede saker</p>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+</div>
+</xsl:template>
Copied: trunk/controller/templates/base/case/view_open_cases.xsl (from rev
10844, trunk/controller/templates/base/check_list/view_open_cases.xsl)
===================================================================
--- trunk/controller/templates/base/case/view_open_cases.xsl
(rev 0)
+++ trunk/controller/templates/base/case/view_open_cases.xsl 2013-02-15
13:27:23 UTC (rev 10854)
@@ -0,0 +1,43 @@
+<!-- $Id: choose_control_items.xsl 8267 2011-12-11 12:27:18Z sigurdne $ -->
+<xsl:template match="data" xmlns:php="http://php.net/xsl">
+
+ <div id="view_cases">
+ <xsl:call-template name="cases_tab_menu">
+ <xsl:with-param name="active_tab">view_open_cases</xsl:with-param>
+ </xsl:call-template>
+
+ <div class="tab_item active">
+ <xsl:choose>
+ <xsl:when test="open_check_items_and_cases/child::node()">
+ <ul class="check_items">
+ <xsl:for-each select="open_check_items_and_cases">
+ <xsl:choose>
+ <!-- ==================== CONTROL TYPE 1
===================== -->
+ <xsl:when test="control_item/type = 'control_item_type_1'">
+ <xsl:call-template name="case_row">
+ <xsl:with-param
name="control_item_type">control_item_type_1</xsl:with-param>
+
</xsl:call-template>
+ </xsl:when>
+ <!-- ==================== CONTROL TYPE 2
===================== -->
+ <xsl:when test="control_item/type = 'control_item_type_2'">
+ <xsl:call-template name="case_row">
+ <xsl:with-param
name="control_item_type">control_item_type_2</xsl:with-param>
+
</xsl:call-template>
+ </xsl:when>
+ <!-- ==================== CONTROL TYPE 3 ELLER CONTROL TYPE
4 ===================== -->
+ <xsl:when test="control_item/type = 'control_item_type_3' or
control_item/type = 'control_item_type_4'">
+ <xsl:call-template name="case_row">
+ <xsl:with-param
name="control_item_type">control_item_type_3</xsl:with-param>
+
</xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:for-each>
+ </ul>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>Ingen åpne saker eller målinger</p>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </div>
+</xsl:template>
Deleted: trunk/controller/templates/base/check_list/add_case.xsl
===================================================================
--- trunk/controller/templates/base/check_list/add_case.xsl 2013-02-15
13:14:54 UTC (rev 10853)
+++ trunk/controller/templates/base/check_list/add_case.xsl 2013-02-15
13:27:23 UTC (rev 10854)
@@ -1,214 +0,0 @@
-<!-- $Id: choose_control_items.xsl 8267 2011-12-11 12:27:18Z sigurdne $ -->
-<xsl:template match="data" xmlns:php="http://php.net/xsl">
-<xsl:variable name="session_url">&<xsl:value-of
select="php:function('get_phpgw_session_url')" /></xsl:variable>
-
-<div id="main_content" class="medium">
- <div id="check-list-heading">
- <div class="box-1">
- <h1>Kontroll: <xsl:value-of
select="control/title"/></h1>
- <xsl:choose>
- <xsl:when test="type = 'component'">
- <h2><xsl:value-of
select="component_array/xml_short_desc"/></h2>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="location_level
= 1">
- <h2>Eiendom:
<xsl:value-of select="location_array/loc1_name"/></h2>
- </xsl:when>
- <xsl:otherwise>
- <h2>Bygg:
<xsl:value-of select="location_array/loc2_name"/></h2>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <div class="box-2 select-box">
- <xsl:call-template name="nav_control_plan" />
- </div>
-
- <!-- ================== CHECKLIST TAB MENU
===================== -->
- <xsl:call-template name="check_list_tab_menu" />
- </div>
-
- <div style="margin:20px 0;">
- <xsl:call-template name="select_buildings_on_property"
/>
- </div>
-
- <div id="view_cases">
-
- <h3 class="box_header ext">Registrer sak/måling</h3>
- <div class="tab_item active ext">
-
- <xsl:variable name="action_url"><xsl:value-of
select="php:function('get_phpgw_link', '/index.php',
'menuaction:controller.uicase.add_case,phpgw_return_as:json')" /></xsl:variable>
-
- <ul class="add-cases">
- <xsl:for-each select="control_groups_with_items_array">
- <xsl:choose>
- <xsl:when test="control_items/child::node()">
- <li>
- <h3 class="expand-trigger"><img
src="controller/images/arrow_right.png" /><xsl:value-of
select="control_group/group_name"/></h3>
- <ul class="expand_list"
style="display:none;">
- <xsl:for-each
select="control_items">
- <li>
-
<h4><img src="controller/images/arrow_right.png" /><span><xsl:value-of
select="title"/></span></h4>
-
<xsl:choose>
-
<xsl:when test="type = 'control_item_type_1'">
-
<form class="frm_register_case expand_item"
action="{$action_url}" method="post">
-
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
-
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
-
<input type="hidden"
name="check_list_id"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
-
<input type="hidden" name="status" value="0" />
- <input type="hidden" name="type"
value="control_item_type_1" />
- <input type="hidden" name="location_code" value=""
class="required" />
-
- <!-- WHAT TO DO -->
- <div class="row what-to-do">
- <label>Hva skal sjekkes:</label>
- <div>
- <xsl:value-of select="what_to_do"/>
- </div>
- </div>
-
- <!-- HOW TO DO -->
- <div class="row how-to-do">
- <label>Utførelsesbeskrivelse:</label>
- <div>
- <xsl:value-of select="how_to_do"/>
- </div>
- </div>
-
-
<div>
- <label class="comment">Beskrivelse av sak</label>
-
<textarea name="case_descr" class="required">
-
<xsl:value-of select="comment"/>
-
</textarea>
-
</div>
-
<input type="submit" class="btn" name="save_control"
value="Lagre sak" />
-
</form>
-
</xsl:when>
-
<xsl:when test="type = 'control_item_type_2'">
-
<form class="frm_register_case expand_item" action="{$action_url}"
method="post">
-
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
-
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
-
<input name="check_list_id"
type="hidden"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
-
<input name="type" type="hidden"
value="control_item_type_2" />
-
-
<div class="row">
-
<label>Status</label>
-
<select name="status">
-
<option value="0"
SELECTED="SELECTED">Åpen</option>
-
<option value="1" >Lukket</option>
-
<option value="2" >Venter på
tilbakemelding</option>
-
</select>
-
</div>
-
<div class="row">
-
<label class="comment">Registrer målingsverdi</label>
-
<input>
-
<xsl:attribute
name="name">measurement</xsl:attribute>
-
<xsl:attribute name="type">text</xsl:attribute>
-
<xsl:attribute name="value">
-
<xsl:value-of select="measurement"/>
-
</xsl:attribute>
-
</input>
-
</div>
-
<div class="row">
-
<label class="comment">Beskrivelse av sak</label>
-
<textarea name="case_descr">
-
<xsl:value-of select="comment"/>
-
</textarea>
-
</div>
-
<xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'register_error')" /></xsl:variable>
-
<input type="submit" name="save_control" value="Lagre
måling" title="{$lang_save}" />
-
</form>
-
</xsl:when>
-
<xsl:when test="type = 'control_item_type_3'">
-
<form class="frm_register_case expand_item"
action="{$action_url}" method="post">
-
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
-
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
-
<input name="check_list_id"
type="hidden"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
-
<input name="type" type="hidden"
value="control_item_type_3" />
-
-
<div class="row">
-
<label>Status</label>
-
<select name="status">
-
<option value="0"
SELECTED="SELECTED">Åpen</option>
-
<option value="1" >Lukket</option>
-
<option value="2" >Venter på
tilbakemelding</option>
-
</select>
-
</div>
-
<div class="row">
-
<label class="comment">Velg verdi fra liste</label>
-
<select name="option_value">
-
<xsl:for-each select="options_array">
-
<option>
-
<xsl:attribute
name="value"><xsl:value-of select="option_value"/></xsl:attribute>
-
<xsl:value-of
select="option_value"/>
-
</option>
-
</xsl:for-each>
-
</select>
-
</div>
-
<div class="row">
-
<label class="comment">Beskrivelse av sak</label>
-
<textarea name="case_descr">
-
<xsl:value-of select="comment"/>
-
</textarea>
-
</div>
-
<xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'register_error')" /></xsl:variable>
-
<input type="submit" name="save_control" value="Lagre
sak/måling" title="{$lang_save}" />
-
</form>
-
</xsl:when>
-
<xsl:when test="type = 'control_item_type_4'">
-
<form class="frm_register_case expand_item"
action="{$action_url}" method="post">
-
<xsl:variable name="control_item_id"><xsl:value-of
select="id"/></xsl:variable>
-
<input type="hidden" name="control_item_id"
value="{$control_item_id}" />
-
<input name="check_list_id"
type="hidden"><xsl:attribute name="value"><xsl:value-of
select="//check_list/id"/></xsl:attribute></input>
-
<input name="type" type="hidden"
value="control_item_type_4" />
-
-
<div class="row">
-
<label>Status</label>
-
<select name="status">
-
<option value="0"
SELECTED="SELECTED">Åpen</option>
-
<option value="1" >Lukket</option>
-
<option value="2" >Venter på
tilbakemelding</option>
-
</select>
-
</div>
-
<div class="row">
-
<label class="comment">Velg verdi fra liste</label>
-
<select name="option_value">
-
<xsl:for-each select="options_array">
-
<option>
-
<xsl:attribute
name="value"><xsl:value-of select="option_value"/></xsl:attribute>
-
<xsl:value-of
select="option_value"/>
-
</option>
-
</xsl:for-each>
-
</select>
-
</div>
-
<div class="row">
-
<label class="comment">Beskrivelse av sak</label>
-
<textarea name="case_descr">
-
<xsl:value-of select="comment"/>
-
</textarea>
-
</div>
-
<xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'register_error')" /></xsl:variable>
-
<input type="submit" name="save_control" value="Lagre
sak/måling" title="{$lang_save}" />
-
</form>
-
</xsl:when>
-
</xsl:choose>
- </li>
- </xsl:for-each>
- </ul>
- </li>
- </xsl:when>
- <xsl:otherwise>
- <li class="list_item">
- <h3><xsl:value-of
select="control_group/group_name"/></h3>
- <div>Ingen kontrollpunkt for
denne gruppen</div>
- </li>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </ul>
- </div>
-</div>
-</div>
-</xsl:template>
Deleted: trunk/controller/templates/base/check_list/view_closed_cases.xsl
===================================================================
--- trunk/controller/templates/base/check_list/view_closed_cases.xsl
2013-02-15 13:14:54 UTC (rev 10853)
+++ trunk/controller/templates/base/check_list/view_closed_cases.xsl
2013-02-15 13:27:23 UTC (rev 10854)
@@ -1,105 +0,0 @@
-<!-- $Id: choose_control_items.xsl 8267 2011-12-11 12:27:18Z sigurdne $ -->
-<xsl:template match="data" xmlns:php="http://php.net/xsl">
-<xsl:variable name="session_url">&<xsl:value-of
select="php:function('get_phpgw_session_url')" /></xsl:variable>
-
-<div id="view_cases">
- <xsl:call-template name="cases_tab_menu">
- <xsl:with-param
name="active_tab">view_closed_cases</xsl:with-param>
- </xsl:call-template>
-
- <div class="tab_item active">
- <xsl:choose>
- <xsl:when
test="closed_check_items_and_cases/child::node()">
- <ul class="check_items">
- <xsl:for-each
select="closed_check_items_and_cases">
- <xsl:choose>
- <xsl:when
test="cases_array/child::node()">
- <li
class="check_item_case">
-
<h4><span><xsl:value-of select="control_item/title"/></span></h4>
- <ul>
-
<xsl:for-each select="cases_array">
-
<xsl:variable name="cases_id"><xsl:value-of select="id"/></xsl:variable>
-
<li>
-
<!-- ==================== COL1: ORDERNR ===================== -->
-
<div class="col_1">
-
<span class="order_nr"><xsl:number /></span>.
-
</div>
-
-
<!-- ==================== COL2: CASE CONTENT ===================== -->
-
<div class="col_2">
-
-
<!-- =============== SHOW CASE INFO ============= -->
-
<div class="case_info">
-
-
<!-- DESCRIPTION -->
-
<div class="case_descr"><xsl:value-of select="descr"/></div>
-
<!-- === QUICK EDIT MENU === -->
-
<div class="quick_menu">
-
<a class="open_case">
-
<xsl:attribute name="href">
-
<xsl:text>index.php?menuaction=controller.uicase.open_case</xsl:text>
-
<xsl:text>&case_id=</xsl:text>
-
<xsl:value-of select="id"/>
-
<xsl:text>&check_list_id=</xsl:text>
-
<xsl:value-of select="//check_list/id"/>
-
<xsl:text>&phpgw_return_as=json</xsl:text>
-
<xsl:value-of select="$session_url"/>
-
</xsl:attribute>
-
åpne
-
</a>
-
<xsl:choose>
-
<xsl:when test="location_item_id = 0">
-
<a class="delete_case">
-
<xsl:attribute name="href">
-
<xsl:text>index.php?menuaction=controller.uicase.delete_case</xsl:text>
-
<xsl:text>&case_id=</xsl:text>
-
<xsl:value-of
select="id"/>
-
<xsl:text>&check_list_id=</xsl:text>
-
<xsl:value-of
select="//check_list/id"/>
-
<xsl:text>&phpgw_return_as=json</xsl:text>
-
<xsl:value-of
select="$session_url"/>
-
</xsl:attribute>
-
slett
-
</a>
-
</xsl:when>
-
</xsl:choose>
-
</div>
-
</div>
-
</div>
-
<!-- ==================== COL3: MESSAGE LINK ===================== -->
-
<div class="col_3">
-
<xsl:choose>
-
<xsl:when test="location_item_id > 0">
-
<a target="_blank">
-
<xsl:attribute name="href">
-
<xsl:text>index.php?menuaction=property.uitts.view</xsl:text>
-
<xsl:text>&id=</xsl:text>
-
<xsl:value-of
select="location_item_id"/>
-
<xsl:value-of
select="$session_url"/>
-
</xsl:attribute>
-
Vis melding
-
</a>
-
</xsl:when>
-
<xsl:otherwise>
-
<span class="message">Ingen melding</span>
-
</xsl:otherwise>
-
</xsl:choose>
-
</div>
-
-
</li>
-
</xsl:for-each>
- </ul>
- </li>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </ul>
-
- </xsl:when>
- <xsl:otherwise>
- <p>Ingen lukkede saker</p>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</div>
-</xsl:template>
Deleted: trunk/controller/templates/base/check_list/view_open_cases.xsl
===================================================================
--- trunk/controller/templates/base/check_list/view_open_cases.xsl
2013-02-15 13:14:54 UTC (rev 10853)
+++ trunk/controller/templates/base/check_list/view_open_cases.xsl
2013-02-15 13:27:23 UTC (rev 10854)
@@ -1,43 +0,0 @@
-<!-- $Id: choose_control_items.xsl 8267 2011-12-11 12:27:18Z sigurdne $ -->
-<xsl:template match="data" xmlns:php="http://php.net/xsl">
-
- <div id="view_cases">
- <xsl:call-template name="cases_tab_menu">
- <xsl:with-param name="active_tab">view_open_cases</xsl:with-param>
- </xsl:call-template>
-
- <div class="tab_item active">
- <xsl:choose>
- <xsl:when test="open_check_items_and_cases/child::node()">
- <ul class="check_items">
- <xsl:for-each select="open_check_items_and_cases">
- <xsl:choose>
- <!-- ==================== CONTROL TYPE 1
===================== -->
- <xsl:when test="control_item/type = 'control_item_type_1'">
- <xsl:call-template name="case_row">
- <xsl:with-param
name="control_item_type">control_item_type_1</xsl:with-param>
-
</xsl:call-template>
- </xsl:when>
- <!-- ==================== CONTROL TYPE 2
===================== -->
- <xsl:when test="control_item/type = 'control_item_type_2'">
- <xsl:call-template name="case_row">
- <xsl:with-param
name="control_item_type">control_item_type_2</xsl:with-param>
-
</xsl:call-template>
- </xsl:when>
- <!-- ==================== CONTROL TYPE 3 ELLER CONTROL TYPE
4 ===================== -->
- <xsl:when test="control_item/type = 'control_item_type_3' or
control_item/type = 'control_item_type_4'">
- <xsl:call-template name="case_row">
- <xsl:with-param
name="control_item_type">control_item_type_3</xsl:with-param>
-
</xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </ul>
- </xsl:when>
- <xsl:otherwise>
- <p>Ingen åpne saker eller målinger</p>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </div>
-</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10854] Moved view_closed_cases and view_open_cases to case folder,
Torstein <=