[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16956] controller: FDV-193
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16956] controller: FDV-193 |
Date: |
Mon, 7 Aug 2017 12:16:37 -0400 (EDT) |
Revision: 16956
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16956
Author: sigurdne
Date: 2017-08-07 12:16:37 -0400 (Mon, 07 Aug 2017)
Log Message:
-----------
controller: FDV-193
Modified Paths:
--------------
trunk/controller/templates/base/check_list/print_check_list.xsl
Modified: trunk/controller/templates/base/check_list/print_check_list.xsl
===================================================================
--- trunk/controller/templates/base/check_list/print_check_list.xsl
2017-08-07 15:54:42 UTC (rev 16955)
+++ trunk/controller/templates/base/check_list/print_check_list.xsl
2017-08-07 16:16:37 UTC (rev 16956)
@@ -2,27 +2,37 @@
<xsl:template match="data">
- <h1><xsl:value-of select="control/title" /></h1>
- <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>
+ <h1>
+ <xsl:value-of select="control/title" />
+ </h1>
+ <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>
-<ul class="groups">
- <xsl:for-each select="saved_groups_with_items_array">
- <li class="drag_group list_item">
- <h3><span class="group_order_nr"><xsl:number/></span>.
<xsl:value-of select="control_group/group_name"/></h3>
+ <ul class="groups">
+ <xsl:for-each select="saved_groups_with_items_array">
+ <li class="drag_group list_item">
+ <h3>
+ <span class="group_order_nr">
+ <xsl:number/>
+ </span>. <xsl:value-of
select="control_group/group_name"/>
+ </h3>
- <xsl:variable
name="control_group_id"><xsl:value-of select="control_group/id"/></xsl:variable>
+ <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">
+ <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="control_item_id">
+ <xsl:value-of
select="id"/>
+ </xsl:variable>
<xsl:variable name="order_tag">
<xsl:choose>
<xsl:when
test="order_nr > 0">
@@ -34,55 +44,98 @@
</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}" />
- <br/><i>Hva skal
utføres</i><br/><xsl:value-of select="what_to_do"
disable-output-escaping="yes"/>
-
<br/><br/><i>Utførelsesbeskrivelse</i><br/><xsl:value-of select="how_to_do"
disable-output-escaping="yes"/><br/>
- </li>
+ <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}" />
+ <br/>
+ <i>Hva skal utføres</i>
+ <br/>
+ <xsl:value-of
select="what_to_do" disable-output-escaping="yes"/>
+ <br/>
+ <br/>
+
<i>Utførelsesbeskrivelse</i>
+ <br/>
+ <xsl:value-of
select="how_to_do" disable-output-escaping="yes"/>
+ <br/>
+ </li>
</xsl:for-each>
</ul>
- </li>
- </xsl:for-each>
-</ul>
+ </li>
+ </xsl:for-each>
+ </ul>
-<style>
-.btn{
- background: none repeat scroll 0 0 #2647A0;
- color: #FFFFFF;
- display: inline-block;
- margin-right: 5px;
- padding: 5px 10px;
- text-decoration: none;
- border: 1px solid #173073;
- cursor: pointer;
-}
+ <style>
+ html {
+ font-family: arial;
+ }
+ @page {
+ size: A4;
+ }
-ul{
- list-style: none outside none;
-}
+ @media print {
+ li {page-break-inside: avoid;}
+ h1, h2, h3, h4, h5 {
+ page-break-after: avoid;
+ }
-li{
- list-style: none outside none;
-}
+ table, figure {
+ page-break-inside: avoid;
+ }
+ }
-li.list_item ol li{
- list-style: decimal;
-}
+
+ @page:left{
+ @bottom-left {
+ content: "Page " counter(page) " of " counter(pages);
+ }
+ }
+ @media print
+ {
+ .btn
+ {
+ display: none !important;
+ }
+ }
+
+ .btn{
+ background: none repeat scroll 0 0 #2647A0;
+ color: #FFFFFF;
+ display: inline-block;
+ margin-right: 5px;
+ padding: 5px 10px;
+ text-decoration: none;
+ border: 1px solid #173073;
+ cursor: pointer;
+ }
+
+ ul{
+ list-style: none outside none;
+ }
+
+ li{
+ list-style: none outside none;
+ }
+
+ li.list_item ol li{
+ list-style: decimal;
+ }
-ul.groups li {
- padding: 3px 0;
-}
+ ul.groups li {
+ padding: 3px 0;
+ }
-ul.groups li.odd{
- background: none repeat scroll 0 0 #DBE7F5;
-}
+ ul.groups li.odd{
+ background: none repeat scroll 0 0 #DBE7F5;
+ }
-ul.groups h3 {
- font-size: 18px;
- margin: 0 0 5px;
-}
+ ul.groups h3 {
+ font-size: 18px;
+ margin: 0 0 5px;
+ }
-</style>
-<a id="exec-print" href="#print" class="btn" onClick="window.print()">Skriv
ut</a>
+ </style>
+ <a id="exec-print" href="#print" class="btn"
onClick="window.print()">Skriv ut</a>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16956] controller: FDV-193,
sigurdne <=