[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10849] New files
From: |
Torstein |
Subject: |
[Fmsystem-commits] [10849] New files |
Date: |
Fri, 15 Feb 2013 12:50:16 +0000 |
Revision: 10849
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10849
Author: vator
Date: 2013-02-15 12:50:16 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
New files
Added Paths:
-----------
trunk/controller/templates/mobilefrontend/case/
trunk/controller/templates/mobilefrontend/case/add_case.xsl
trunk/controller/templates/mobilefrontend/case/fragments/
trunk/controller/templates/mobilefrontend/check_list/
trunk/controller/templates/mobilefrontend/check_list/edit_check_list.xsl
trunk/controller/templates/mobilefrontend/check_list/fragments/
trunk/controller/templates/mobilefrontend/check_list/fragments/cases_menu.xsl
trunk/controller/templates/mobilefrontend/check_list/fragments/select_buildings_on_property.xsl
trunk/controller/templates/mobilefrontend/css/
trunk/controller/templates/mobilefrontend/css/base.css
Added: trunk/controller/templates/mobilefrontend/case/add_case.xsl
===================================================================
--- trunk/controller/templates/mobilefrontend/case/add_case.xsl
(rev 0)
+++ trunk/controller/templates/mobilefrontend/case/add_case.xsl 2013-02-15
12:50:16 UTC (rev 10849)
@@ -0,0 +1,208 @@
+<!-- $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>
+
+ <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/mobilefrontend/check_list/edit_check_list.xsl (from
rev 10844, trunk/controller/templates/base/check_list/edit_check_list.xsl)
===================================================================
--- trunk/controller/templates/mobilefrontend/check_list/edit_check_list.xsl
(rev 0)
+++ trunk/controller/templates/mobilefrontend/check_list/edit_check_list.xsl
2013-02-15 12:50:16 UTC (rev 10849)
@@ -0,0 +1,133 @@
+<!-- $Id$ -->
+<xsl:template match="data" name="edit_check_list"
xmlns:php="http://php.net/xsl">
+<xsl:variable name="date_format"><xsl:value-of
select="php:function('get_phpgw_info', 'user|preferences|common|dateformat')"
/></xsl:variable>
+<xsl:variable name="session_url">&<xsl:value-of
select="php:function('get_phpgw_session_url')" /></xsl:variable>
+
+<div id="main_content" class="medium">
+
+ <!-- ================== EDIT CHECKLIST ========================= -->
+
+ <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>
+
+ <!-- ================== CHECKLIST TAB MENU
===================== -->
+ <xsl:call-template name="cases_menu">
+ <xsl:with-param
name="active_tab">reg_case</xsl:with-param>
+ </xsl:call-template>
+ </div>
+
+ <!-- ================== CHECKLIST DETAILS ===================== -->
+ <div id="check_list_details">
+ <h3 class="box_header">Sjekklistedetaljer</h3>
+ <xsl:variable name="action_url"><xsl:value-of
select="php:function('get_phpgw_link', '/index.php',
'menuaction:controller.uicheck_list.save_check_list')" /></xsl:variable>
+ <form id="frm_update_check_list" action="{$action_url}"
method="post">
+ <xsl:variable name="check_list_id"><xsl:value-of
select="check_list/id"/></xsl:variable>
+ <input id="check_list_id" type="hidden"
name="check_list_id" value="{$check_list_id}" />
+
+ <fieldset class="col_1">
+ <div class="row">
+ <label>Status</label>
+ <xsl:variable name="status"><xsl:value-of
select="check_list/status"/></xsl:variable>
+ <select id="status" name="status">
+ <xsl:choose>
+ <xsl:when
test="check_list/status = 0">
+ <option
value="1">Utført</option>
+ <option
value="0" SELECTED="SELECTED">Ikke utført</option>
+ <option value="3">Kansellert</option>
+ </xsl:when>
+ <xsl:when
test="check_list/status = 1">
+ <option
value="1" SELECTED="SELECTED">Utført</option>
+ <option
value="0">Ikke utført</option>
+ <option value="3">Kansellert</option>
+ </xsl:when>
+ <xsl:when test="check_list/status = 3">
+ <option
value="3" SELECTED="SELECTED">Kansellert</option>
+ <option
value="0">Ikke utført</option>
+ <option value="1">Utført</option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option
value="0" SELECTED="SELECTED">Ikke utført</option>
+ <option
value="1">Utført</option>
+ <option value="3">Kansellert</option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </select>
+ </div>
+ <div class="row">
+ <label>Skal utføres innen</label>
+ <input class="date">
+ <xsl:attribute
name="id">deadline_date</xsl:attribute>
+ <xsl:attribute
name="name">deadline_date</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:if test="check_list/deadline != 0 or
check_list/deadline != ''">
+ <xsl:attribute name="value"><xsl:value-of
select="php:function('date', $date_format,
number(check_list/deadline))"/></xsl:attribute>
+ </xsl:if>
+ </input>
+ </div>
+ <div class="row">
+ <label>Planlagt dato</label>
+ <input class="date">
+ <xsl:attribute
name="id">planned_date</xsl:attribute>
+ <xsl:attribute
name="name">planned_date</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:if test="check_list/planned_date != 0 and
check_list/planned_date != ''">
+ <xsl:attribute name="value"><xsl:value-of
select="php:function('date', $date_format,
number(check_list/planned_date))"/></xsl:attribute>
+ </xsl:if>
+ </input>
+ </div>
+ <div class="row">
+ <label>Utført dato</label>
+ <input class="date">
+ <xsl:attribute
name="id">completed_date</xsl:attribute>
+ <xsl:attribute
name="name">completed_date</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:if test="check_list/completed_date != 0
and check_list/completed_date != ''">
+ <xsl:attribute name="value"><xsl:value-of
select="php:function('date', $date_format,
number(check_list/completed_date))"/></xsl:attribute>
+ </xsl:if>
+ </input>
+ </div>
+ </fieldset>
+ <fieldset class="col_2">
+ <div class="row">
+ <label>Antall åpne saker</label>
+ <xsl:value-of
select="check_list/num_open_cases"/>
+ </div>
+ <div class="row">
+ <label>Antall ventende saker</label>
+ <xsl:value-of
select="check_list/num_pending_cases"/>
+ </div>
+ </fieldset>
+
+ <div class="comment">
+ <label>Kommentar</label>
+ <textarea>
+ <xsl:attribute
name="name">comment</xsl:attribute>
+ <xsl:value-of select="check_list/comment"/>
+ </textarea>
+ </div>
+
+ <div class="form-buttons">
+ <xsl:variable name="lang_save"><xsl:value-of
select="php:function('lang', 'save_check_list')" /></xsl:variable>
+ <input class="btn" type="submit"
name="save_control" value="Lagre detaljer" />
+ </div>
+ </form>
+ </div>
+ </div>
+</xsl:template>
\ No newline at end of file
Copied:
trunk/controller/templates/mobilefrontend/check_list/fragments/cases_menu.xsl
(from rev 10844,
trunk/controller/templates/base/check_list/fragments/check_list_tab_menu.xsl)
===================================================================
---
trunk/controller/templates/mobilefrontend/check_list/fragments/cases_menu.xsl
(rev 0)
+++
trunk/controller/templates/mobilefrontend/check_list/fragments/cases_menu.xsl
2013-02-15 12:50:16 UTC (rev 10849)
@@ -0,0 +1,43 @@
+<xsl:template name="cases_menu" xmlns:php="http://php.net/xsl">
+<xsl:param name="active_tab" />
+<xsl:variable name="session_url">&<xsl:value-of
select="php:function('get_phpgw_session_url')" /></xsl:variable>
+
+<div id="check_list_menu">
+ <a class="btn focus first">
+ <xsl:if test="$active_tab = 'reg_cases'">
+ <xsl:attribute name="class">active</xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=controller.uicheck_list.add_case</xsl:text>
+ <xsl:text>&check_list_id=</xsl:text>
+ <xsl:value-of select="check_list/id"/>
+ <xsl:value-of select="$session_url"/>
+ </xsl:attribute>
+ Registrer sak
+ </a>
+ <a>
+ <xsl:if test="$active_tab = 'view_cases'">
+ <xsl:attribute name="class">active</xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=controller.uicheck_list.view_cases_for_check_list</xsl:text>
+ <xsl:text>&check_list_id=</xsl:text>
+ <xsl:value-of select="check_list/id"/>
+ <xsl:value-of select="$session_url"/>
+ </xsl:attribute>
+ Vis åpne saker
+ </a>
+ <a>
+ <xsl:if test="$active_tab = 'view_cases'">
+ <xsl:attribute name="class">active</xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="href">
+
<xsl:text>index.php?menuaction=controller.uicheck_list.view_cases_for_check_list</xsl:text>
+ <xsl:text>&check_list_id=</xsl:text>
+ <xsl:value-of select="check_list/id"/>
+ <xsl:value-of select="$session_url"/>
+ </xsl:attribute>
+ Vis lukkede saker
+ </a>
+</div>
+</xsl:template>
Copied:
trunk/controller/templates/mobilefrontend/check_list/fragments/select_buildings_on_property.xsl
(from rev 10844,
trunk/controller/templates/base/check_list/fragments/select_buildings_on_property.xsl)
===================================================================
---
trunk/controller/templates/mobilefrontend/check_list/fragments/select_buildings_on_property.xsl
(rev 0)
+++
trunk/controller/templates/mobilefrontend/check_list/fragments/select_buildings_on_property.xsl
2013-02-15 12:50:16 UTC (rev 10849)
@@ -0,0 +1,19 @@
+<!-- $Id: view_calendar_month.xsl 9200 2012-04-21 20:05:34Z vator $ -->
+<xsl:template name="select_buildings_on_property">
+
+ <select id="choose_building_on_property" class="selectLocation">
+ <option value="">Velg bygg</option>
+ <xsl:for-each select="buildings_on_property">
+ <option>
+ <xsl:if test="id = //current_location/location_code">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="value">
+ <xsl:value-of select="id"/>
+ </xsl:attribute>
+ <xsl:value-of select="name" />
+ </option>
+ </xsl:for-each>
+ </select>
+
+</xsl:template>
Added: trunk/controller/templates/mobilefrontend/css/base.css
===================================================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10849] New files,
Torstein <=