fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8452]


From: Torstein
Subject: [Fmsystem-commits] [8452]
Date: Wed, 28 Dec 2011 11:24:36 +0000

Revision: 8452
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8452
Author:   vator
Date:     2011-12-28 11:24:36 +0000 (Wed, 28 Dec 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/controller/templates/base/create_error_report_message.xsl

Added Paths:
-----------
    trunk/controller/templates/base/view_error_report_message.xsl

Modified: trunk/controller/templates/base/create_error_report_message.xsl
===================================================================
--- trunk/controller/templates/base/create_error_report_message.xsl     
2011-12-28 11:19:38 UTC (rev 8451)
+++ trunk/controller/templates/base/create_error_report_message.xsl     
2011-12-28 11:24:36 UTC (rev 8452)
@@ -33,7 +33,17 @@
                                    
                                        <label style="font-size: 
15px;font-weight: bold;">Tittel på melding</label>
                                        <input name="message_title" type="text" 
/>
+                                       
+                                        <select>
+                                               <xsl:for-each 
select="categories/cat_list">
+                                                       <xsl:variable 
name="cat_id"><xsl:value-of select="./cat_id"/></xsl:variable>
+                                                       <option 
value="{$cat_id}">
+                                                               <xsl:value-of 
select="./name"/>
+                                                       </option>               
        
+                                               </xsl:for-each>
+                                       </select>
                        
+                       
                                        <h3 class="check_item_details">Velg 
sjekkpunkter som skal være med i avviksmelding</h3>                             
    
                                        <ul class="check_items expand_list">
                                                <xsl:for-each 
select="check_list/check_item_array">

Added: trunk/controller/templates/base/view_error_report_message.xsl
===================================================================
--- trunk/controller/templates/base/view_error_report_message.xsl               
                (rev 0)
+++ trunk/controller/templates/base/view_error_report_message.xsl       
2011-12-28 11:24:36 UTC (rev 8452)
@@ -0,0 +1,76 @@
+<!-- $Id: edit_check_list.xsl 8374 2011-12-20 07:45:04Z vator $ -->
+<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">
+       
+               <h1>Send avviksmelding på bygg: <xsl:value-of 
select="location_array/loc1_name"/></h1>
+               
+               <h2>Kontroll <xsl:value-of select="control_array/title"/></h2>
+               <h2>Utført dato <xsl:value-of select="php:function('date', 
$date_format, number(check_list/completed_date))"/></h2>
+                               
+               <div id="error_report_message_details">
+                       
+
+                       <xsl:choose>
+                               <xsl:when 
test="check_list/check_item_array/child::node()">
+                                       
+                               <form class="frm_save_error_report_message" 
action="index.php?menuaction=controller.uierror_report_message.save_error_report_message"
 method="post">
+                                       <input>
+                                     <xsl:attribute 
name="name">check_list_id</xsl:attribute>
+                                     <xsl:attribute 
name="type">hidden</xsl:attribute>
+                                     <xsl:attribute name="value">
+                                       <xsl:value-of select="check_list/id"/>
+                                     </xsl:attribute>
+                                   </input>
+                                   <input>
+                                     <xsl:attribute 
name="name">location_code</xsl:attribute>
+                                     <xsl:attribute 
name="type">hidden</xsl:attribute>
+                                     <xsl:attribute name="value">
+                                       <xsl:value-of 
select="location_array/location_code"/>
+                                     </xsl:attribute>
+                                   </input>
+                                   
+                                       <label style="font-size: 
15px;font-weight: bold;">Tittel på melding</label>
+                                       <xsl:value-of 
select="message_ticket/subject"/>
+                       
+                                       <h3 class="check_item_details">Velg 
sjekkpunkter som skal være med i avviksmelding</h3>                             
    
+                                       <ul class="check_items expand_list">
+                                               <xsl:for-each 
select="check_list/check_item_array">
+                                                       <li>
+                                                               <xsl:variable 
name="check_item_id"><xsl:value-of select="id" /></xsl:variable>
+                                                               
<h4><xsl:value-of select="control_item/title"/></h4>                            
                
+                                                       </li>
+                                               </xsl:for-each>
+                                       </ul>
+                                       
+                                       <a>
+                                               <xsl:attribute name="href">
+                                                       
<xsl:text>index.php?menuaction=controller.uierror_report_message.create_error_report_message</xsl:text>
+                                                       
<xsl:text>&amp;check_list_id=</xsl:text>
+                                                       <xsl:value-of 
select="check_list/id"/>
+                                               </xsl:attribute>
+                                     Registrer ny melding
+                                   </a>
+                                   
+                                   <a>
+                                               <xsl:attribute name="href">
+                                                       
<xsl:text>index.php?menuaction=controller.uicheck_list_for_location.edit_check_list_for_location</xsl:text>
+                                                       
<xsl:text>&amp;check_list_id=</xsl:text>
+                                                       <xsl:value-of 
select="check_list/id"/>
+                                               </xsl:attribute>
+                                     Endre sjekkliste
+                                   </a>
+                                       
+                               </form>                 
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       Ingen sjekkpunkter
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </div>
+               
+               
+                       
+</div>
+</xsl:template>


Property changes on: 
trunk/controller/templates/base/view_error_report_message.xsl
___________________________________________________________________
Added: svn:mime-type
   + text/plain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]