fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14215]


From: Nelson Guerra
Subject: [Fmsystem-commits] [14215]
Date: Tue, 20 Oct 2015 00:35:47 +0000

Revision: 14215
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14215
Author:   nelson224
Date:     2015-10-20 00:35:47 +0000 (Tue, 20 Oct 2015)
Log Message:
-----------


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-10-20 00:35:31 UTC (rev 14214)
+++ branches/dev-syncromind/booking/templates/base/report_freetime.xsl  
2015-10-20 00:35:47 UTC (rev 14215)
@@ -3,115 +3,120 @@
         #field_weekday label{margin:0px;text.align:left;width:auto;}
     </style>
     <xsl:call-template name="msgbox"/>
-    <xsl:choose>
-        <xsl:when test="show = 'gui'">
-            <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 for="start_date">
-                                <h4><xsl:value-of select="php:function('lang', 
'From')" /></h4>
-                            </label>
-                            <input class="datetime" id="from" name="from" 
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 for="end_date">
-                                <h4><xsl:value-of select="php:function('lang', 
'To')" /></h4>
-                            </label>
-                            <input class="datetime" id="to" name="to" 
type="text">
-                                <xsl:attribute name="value"><xsl:value-of 
select="to"/></xsl:attribute>
-                            </input>
-                        </div>
-                        <div class="pure-control-group">
-                            <label for="field_building" 
style="vertical-align:top;">
-                                <h4><xsl:value-of select="php:function('lang', 
'buildings')"/></h4>
-                            </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">
-                            <label for="field_weekday" 
style="vertical-align:top;">
-                                <h4><xsl:value-of select="php:function('lang', 
'Weekdays')" /></h4>
-                            </label>
-                            <ul id="field_weekday" 
style="display:inline-block;list-style:none;padding:0px;margin:0px;">
-                                <li><label><input type="checkbox" value="1" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Monday')" 
/></label></li>
-                                <li><label><input type="checkbox" value="2" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Tuesday')" 
/></label></li>
-                                <li><label><input type="checkbox" value="3" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Wednesday')" 
/></label></li>
-                                <li><label><input type="checkbox" value="4" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Thursday')" 
/></label></li>
-                                <li><label><input type="checkbox" value="5" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Friday')" 
/></label></li>
-                                <li><label><input type="checkbox" value="6" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Saturday')" 
/></label></li>
-                                <li><label><input type="checkbox" value="0" 
name="weekdays[]" /> <xsl:value-of select="php:function('lang', 'Sunday')" 
/></label></li>
-                            </ul>
-                        </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>
-            <div class="heading">
-                <xsl:value-of select="php:function('lang', 'Free time')" />
-            </div>
-            <script type="text/javascript">
-                var eventParams = {};
-            </script>
-            <table id="report" class="pure-table pure-table-bordered">
-                <thead>
-                    <tr>
-                        <th><xsl:value-of select="php:function('lang', 
'Building')"/></th>
-                        <th><xsl:value-of select="php:function('lang', 
'Resource')"/></th>
-                        <th><xsl:value-of select="php:function('lang', 
'From')"/></th>
-                        <th><xsl:value-of select="php:function('lang', 
'To')"/></th>
-                        <th><xsl:value-of select="php:function('lang', 
'actions')"/></th>
-                    </tr>
-                </thead>
-                <tbody>
-                    <xsl:for-each select="allocations">
-                        <tr>
-                            <td><xsl:value-of select="building_name"/></td>
-                            <td><xsl:value-of select="resource_name"/></td>
-                            <td><xsl:value-of 
select="php:function('pretty_timestamp', from_)"/></td>
-                            <td><xsl:value-of 
select="php:function('pretty_timestamp', to_)"/></td>
-                            <td>
-                                <script type="text/javascript">
-                                    eventParams[<xsl:value-of 
select="counter"/>] = <xsl:value-of select="event_params"/>;
-                                </script>
-                                <a href="#" 
onclick="YAHOO.booking.postToUrl('index.php?menuaction=booking.uievent.add', 
eventParams[{counter}]);">Lag arrangement</a>
-                            </td>
-                        </tr>
-                    </xsl:for-each>
-                </tbody>
-            </table>
-        </xsl:otherwise>
-    </xsl:choose>
+       <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">
+                               <xsl:choose>
+                                       <xsl:when test="show = 'gui'">          
                                
+                                               <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 for="start_date">
+                                                               
<h4><xsl:value-of select="php:function('lang', 'From')" /></h4>
+                                                       </label>
+                                                       <input class="datetime" 
id="from" name="from" 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 for="end_date">
+                                                               
<h4><xsl:value-of select="php:function('lang', 'To')" /></h4>
+                                                       </label>
+                                                       <input class="datetime" 
id="to" name="to" type="text">
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="to"/></xsl:attribute>
+                                                       </input>
+                                               </div>
+                                               <div class="pure-control-group">
+                                                       <label 
for="field_building" style="vertical-align:top;">
+                                                               
<h4><xsl:value-of select="php:function('lang', 'buildings')"/></h4>
+                                                       </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">
+                                                       <label 
for="field_weekday" style="vertical-align:top;">
+                                                               
<h4><xsl:value-of select="php:function('lang', 'Weekdays')" /></h4>
+                                                       </label>
+                                                       <ul id="field_weekday" 
style="display:inline-block;list-style:none;padding:0px;margin:0px;">
+                                                               
<li><label><input type="checkbox" value="1" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Monday')" /></label></li>
+                                                               
<li><label><input type="checkbox" value="2" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Tuesday')" /></label></li>
+                                                               
<li><label><input type="checkbox" value="3" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Wednesday')" /></label></li>
+                                                               
<li><label><input type="checkbox" value="4" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Thursday')" /></label></li>
+                                                               
<li><label><input type="checkbox" value="5" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Friday')" /></label></li>
+                                                               
<li><label><input type="checkbox" value="6" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Saturday')" /></label></li>
+                                                               
<li><label><input type="checkbox" value="0" name="weekdays[]" /> <xsl:value-of 
select="php:function('lang', 'Sunday')" /></label></li>
+                                                       </ul>
+                                               </div>                          
                                        
+                                       </xsl:when>
+                                       <xsl:otherwise>
+                                               <script type="text/javascript">
+                                                       var eventParams = {};
+                                               </script>
+                                               <table id="report" 
class="pure-table pure-table-bordered">
+                                                       <thead>
+                                                               <tr>
+                                                                       
<th><xsl:value-of select="php:function('lang', 'Building')"/></th>
+                                                                       
<th><xsl:value-of select="php:function('lang', 'Resource')"/></th>
+                                                                       
<th><xsl:value-of select="php:function('lang', 'From')"/></th>
+                                                                       
<th><xsl:value-of select="php:function('lang', 'To')"/></th>
+                                                                       
<th><xsl:value-of select="php:function('lang', 'actions')"/></th>
+                                                               </tr>
+                                                       </thead>
+                                                       <tbody>
+                                                               <xsl:for-each 
select="allocations">
+                                                                       <tr>
+                                                                               
<td><xsl:value-of select="building_name"/></td>
+                                                                               
<td><xsl:value-of select="resource_name"/></td>
+                                                                               
<td><xsl:value-of select="php:function('pretty_timestamp', from_)"/></td>
+                                                                               
<td><xsl:value-of select="php:function('pretty_timestamp', to_)"/></td>
+                                                                               
<td>
+                                                                               
        <script type="text/javascript">
+                                                                               
                eventParams[<xsl:value-of select="counter"/>] = <xsl:value-of 
select="event_params"/>;
+                                                                               
        </script>
+                                                                               
        <a href="#" 
onclick="JqueryPortico.booking.postToUrl('index.php?menuaction=booking.uievent.add',
 eventParams[{counter}]);">Lag arrangement</a>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:for-each>
+                                                       </tbody>
+                                               </table>
+                                       </xsl:otherwise>
+                               </xsl:choose>
+                       </div>                          
+               </div>
+               <div class="form-buttons">
+                       <xsl:if test="show = 'gui'">
+                               <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>
+                       </xsl:if>
+                       <xsl:if test="show != 'gui'">
+                               <input type="button" class="pure-button 
pure-button-primary" name="cancel">
+                                       <xsl:attribute 
name="onclick">window.location="<xsl:value-of 
select="allocations/cancel_link"/>"</xsl:attribute>
+                                       <xsl:attribute 
name="value"><xsl:value-of select="php:function('lang', 'Cancel')" 
/></xsl:attribute>
+                               </input>
+                       </xsl:if>
+               </div>
+       </form>
 </xsl:template>




reply via email to

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