fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13630] report_freetime.xsl


From: Saul
Subject: [Fmsystem-commits] [13630] report_freetime.xsl
Date: Fri, 10 Jul 2015 22:55:43 +0000

Revision: 13630
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13630
Author:   psaul
Date:     2015-07-10 22:55:42 +0000 (Fri, 10 Jul 2015)
Log Message:
-----------
report_freetime.xsl

Modified Paths:
--------------
    branches/dev-syncromind/booking/templates/base/report_freetime.xsl

Modified: branches/dev-syncromind/booking/templates/base/report_freetime.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/report_freetime.xsl  
2015-07-10 22:55:14 UTC (rev 13629)
+++ branches/dev-syncromind/booking/templates/base/report_freetime.xsl  
2015-07-10 22:55:42 UTC (rev 13630)
@@ -1,73 +1,86 @@
 <xsl:template match="data" xmlns:php="http://php.net/xsl";>
-       <div id="content">
+       <!--div id="content"-->
 
                <xsl:call-template name="msgbox"/>
-               <xsl:call-template name="yui_booking_i18n"/>
+               <!--xsl:call-template name="yui_booking_i18n"/-->
 
                <xsl:choose>
                        <xsl:when test="show = 'gui'">
-                               <dl class="form">
+                               <!--dl class="form">
                                        <dt class="heading">
                                                <xsl:value-of 
select="php:function('lang', 'Free time')" />
                                        </dt>
-                               </dl>
+                               </dl-->
 
-                               <form action="" method="POST">
-                                       <dl class="form-col">
-                                               <dt><label 
for="field_from"><xsl:value-of select="php:function('lang', 'From')" 
/></label></dt>
-                                               <dd>
-                                                       <div 
class="date-picker">
-                                                               <input 
id="field_from" name="from" type="text">
-                                                                       
<xsl:attribute name="value"><xsl:value-of select="from"/></xsl:attribute>
-                                                               </input>
-                                                       </div>
-                                               </dd>
-                                       </dl>
-                                       <dl class="form-col">
-                                               <dt><label 
for="field_to"><xsl:value-of select="php:function('lang', 'To')" /></label></dt>
-                                               <dd>
-                                                       <div 
class="date-picker">
-                                                               <input 
id="field_to" name="to" type="text">
-                                                                       
<xsl:attribute name="value"><xsl:value-of select="to"/></xsl:attribute>
-                                                               </input>
-                                                       </div>
-                                               </dd>
-                                       </dl>
-                                       <div class="clr" />
-                                       <dl class="form-col">
-                                               <dt><label><xsl:value-of 
select="php:function('lang', 'buildings')"/></label></dt>
-                                               <dd>
-                                                       <select 
id="field_building" name="building[]" size="10" multiple="multiple" 
class="full-width">
-                                                               <xsl:for-each 
select="buildings">
-                                                                       
<xsl:sort select="name"/>
-                                                                       <option>
-                                                                               
<xsl:if test="../building = id">
-                                                                               
        <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>
-                                               </dd>
-                                       </dl>
-                                       <dl class="form-col">
-                                               <dt><label 
for="field_weekday"><xsl:value-of select="php:function('lang', 'Weekdays')" 
/></label></dt>
-                                               <dd>
-                                                       <label><input 
type="checkbox" value="1" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Monday')" /></label><br />
-                                                       <label><input 
type="checkbox" value="2" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Tuesday')" /></label><br />
-                                                       <label><input 
type="checkbox" value="3" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Wednesday')" /></label><br />
-                                                       <label><input 
type="checkbox" value="4" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Thursday')" /></label><br />
-                                                       <label><input 
type="checkbox" value="5" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Friday')" /></label><br />
-                                                       <label><input 
type="checkbox" value="6" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Saturday')" /></label><br />
-                                                       <label><input 
type="checkbox" value="0" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Sunday')" /></label><br />
-                                               </dd>
-                                       </dl>
-                                       <div class="form-buttons">
-                                               <input type="submit">
-                                                       <xsl:attribute 
name="value"><xsl:value-of select="php:function('lang', 'Create 
report')"/></xsl:attribute>
-                                               </input>
-                                       </div>
+                               <form action="" method="POST" class="pure-form 
pure-form-aligned" id="form" name="form">
+                                    <input type="hidden" name="tab" value=""/>
+                                    <div id="tab-content">
+                                        <xsl:value-of 
disable-output-escaping="yes" select="data/tabs"/>
+                                        <div id="report_freetime">
+                                            <div class="pure-control-group">
+                                                    <!--label><xsl:value-of 
select="php:function('lang', 'From')" /></label>
+                                                        <div 
class="date-picker">
+                                                                <input 
id="field_from" name="from" type="text">
+                                                                        
<xsl:attribute name="value"><xsl:value-of select="from"/></xsl:attribute>
+                                                                </input>
+                                                        </div-->
+                                                        <label>
+                                                            <xsl:value-of 
select="php:function('lang', 'From')" />
+                                                        </label>
+                                                        <input 
class="datetime" id="start_date" name="start_date" type="text">
+                                                            <xsl:attribute 
name="value"><xsl:value-of select="from"/></xsl:attribute>
+                                                        </input>
+                                            </div>
+                                            <div class="pure-control-group">
+                                                    <!--label><xsl:value-of 
select="php:function('lang', 'To')" /></label>
+                                                            <div 
class="date-picker">
+                                                                    <input 
id="field_to" name="to" type="text">
+                                                                            
<xsl:attribute name="value"><xsl:value-of select="to"/></xsl:attribute>
+                                                                    </input>
+                                                            </div-->
+                                                        <label>
+                                                            <xsl:value-of 
select="php:function('lang', 'To')" />
+                                                        </label>
+                                                        <input 
class="datetime" id="end_date" name="end_date" type="text">
+                                                            <xsl:attribute 
name="value"><xsl:value-of select="to"/></xsl:attribute>
+                                                        </input>
+
+                                            </div>
+                                            <div class="clr" />
+                                            <div class="pure-control-group">
+                                                    <label><xsl:value-of 
select="php:function('lang', 'buildings')"/></label>
+                                                            <select 
id="field_building" name="building[]" size="10" multiple="multiple" 
class="full-width">
+                                                                    
<xsl:for-each select="buildings">
+                                                                            
<xsl:sort select="name"/>
+                                                                            
<option>
+                                                                               
     <xsl:if test="../building = id">
+                                                                               
             <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>
+                                            </div>
+                                            <div class="pure-control-group">
+                                                    <dt><label 
for="field_weekday"><xsl:value-of select="php:function('lang', 'Weekdays')" 
/></label></dt>
+                                                    <dd>
+                                                            <label><input 
type="checkbox" value="1" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Monday')" /></label><br />
+                                                            <label><input 
type="checkbox" value="2" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Tuesday')" /></label><br />
+                                                            <label><input 
type="checkbox" value="3" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Wednesday')" /></label><br />
+                                                            <label><input 
type="checkbox" value="4" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Thursday')" /></label><br />
+                                                            <label><input 
type="checkbox" value="5" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Friday')" /></label><br />
+                                                            <label><input 
type="checkbox" value="6" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Saturday')" /></label><br />
+                                                            <label><input 
type="checkbox" value="0" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Sunday')" /></label><br />
+                                                    </dd>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="form-buttons">
+                                        <input type="submit" 
class="pure-button pure-button-primary">
+                                                <xsl:attribute 
name="value"><xsl:value-of select="php:function('lang', 'Create 
report')"/></xsl:attribute>
+                                        </input>
+                                    </div>
                                </form>
                        </xsl:when>
                        <xsl:otherwise>
@@ -109,5 +122,5 @@
                                </table>
                        </xsl:otherwise>
                </xsl:choose>
-       </div>
+       <!--/div-->
 </xsl:template>




reply via email to

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