fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14824] readonly date input


From: Sigurd Nes
Subject: [Fmsystem-commits] [14824] readonly date input
Date: Thu, 10 Mar 2016 15:25:26 +0000

Revision: 14824
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14824
Author:   sigurdne
Date:     2016-03-10 15:25:26 +0000 (Thu, 10 Mar 2016)
Log Message:
-----------
readonly date input

Modified Paths:
--------------
    trunk/booking/inc/class.uicommon.inc.php
    trunk/booking/templates/base/application_edit.xsl
    trunk/booking/templates/base/application_new.xsl
    trunk/booking/templates/base/event_new.xsl
    trunk/bookingfrontend/templates/base/application_edit.xsl
    trunk/bookingfrontend/templates/base/application_new.xsl

Modified: trunk/booking/inc/class.uicommon.inc.php
===================================================================
--- trunk/booking/inc/class.uicommon.inc.php    2016-03-08 14:48:03 UTC (rev 
14823)
+++ trunk/booking/inc/class.uicommon.inc.php    2016-03-10 15:25:26 UTC (rev 
14824)
@@ -744,10 +744,10 @@
                                $html = 'var html = "<div 
class=\'date-container\'>"+
                             "<a class=\'close-btn btnclose\' 
href=\'javascript:void(0);\'>-</a>"+
                             "<dt><label 
for=\'new_start_date_"+this.counter+"\'>' . $lang_from . '</label></dt>"+
-                            "<dd><input class=\'new_datepicker time\' 
name=\'from_[]\' id=\'new_start_date_"+this.counter+"\' type=\'text\'>"+
+                            "<dd><input class=\'new_datepicker time\' 
readonly=\'readonly\' name=\'from_[]\' id=\'new_start_date_"+this.counter+"\' 
type=\'text\'>"+
                             "</input></dd>"+
                             "<dt><label for=\'new_end_date_"+this.counter+"\' 
>' . $lang_to . '</label></dt>"+
-                            "<dd><input class=\'new_datepicker time\' 
name=\'to_[]\' id=\'new_end_date_"+this.counter+"\' type=\'text\'>"+
+                            "<dd><input class=\'new_datepicker time\' 
readonly=\'readonly\' name=\'to_[]\' id=\'new_end_date_"+this.counter+"\' 
type=\'text\'>"+
                             "</input></dd>"+
                         "</div>"';
                        }
@@ -757,12 +757,12 @@
                                                "<a class=\'close-btn 
btnclose\' href=\'javascript:void(0);\'>-</a>"+
                                                "<div 
class=\'pure-control-group\'>"+
                                                        "<label 
for=\'new_start_date_"+this.counter+"\'><h4>' . $lang_from . '</h4></label>"+
-                                                       "<input 
class=\'new_datepicker time pure-input-2-3\' name=\'from_[]\' 
id=\'new_start_date_"+this.counter+"\' type=\'text\'>"+
+                                                       "<input 
class=\'new_datepicker time pure-input-2-3\' readonly=\'readonly\' 
name=\'from_[]\' id=\'new_start_date_"+this.counter+"\' type=\'text\'>"+
                                                        "</input>"+
                                                "</div>"+
                                                "<div 
class=\'pure-control-group\'>"+
                                                        "<label 
for=\'new_end_date_"+this.counter+"\' ><h4>' . $lang_to . '</h4></label>"+
-                                                       "<input 
class=\'new_datepicker time pure-input-2-3\' name=\'to_[]\' 
id=\'new_end_date_"+this.counter+"\' type=\'text\'>"+
+                                                       "<input 
class=\'new_datepicker time pure-input-2-3\' readonly=\'readonly\' 
name=\'to_[]\' id=\'new_end_date_"+this.counter+"\' type=\'text\'>"+
                                                        "</input>"+
                                                "</div>"+
                                        "</div>"';

Modified: trunk/booking/templates/base/application_edit.xsl
===================================================================
--- trunk/booking/templates/base/application_edit.xsl   2016-03-08 14:48:03 UTC 
(rev 14823)
+++ trunk/booking/templates/base/application_edit.xsl   2016-03-10 15:25:26 UTC 
(rev 14824)
@@ -166,6 +166,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="from_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
                <div class="pure-control-group">
@@ -176,6 +180,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="to_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
        </div>
@@ -191,6 +199,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="from_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
                <div class="pure-control-group">
@@ -201,6 +213,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="to_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
        </div>

Modified: trunk/booking/templates/base/application_new.xsl
===================================================================
--- trunk/booking/templates/base/application_new.xsl    2016-03-08 14:48:03 UTC 
(rev 14823)
+++ trunk/booking/templates/base/application_new.xsl    2016-03-10 15:25:26 UTC 
(rev 14824)
@@ -227,6 +227,9 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="from_" />
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
                <div class="pure-control-group">
@@ -245,6 +248,9 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="to_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
        </div>
@@ -260,6 +266,9 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="from_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
                <div class="pure-control-group">
@@ -278,6 +287,9 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="to_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
        </div>

Modified: trunk/booking/templates/base/event_new.xsl
===================================================================
--- trunk/booking/templates/base/event_new.xsl  2016-03-08 14:48:03 UTC (rev 
14823)
+++ trunk/booking/templates/base/event_new.xsl  2016-03-10 15:25:26 UTC (rev 
14824)
@@ -162,6 +162,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="from_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
                <div class="pure-control-group">
@@ -172,6 +176,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="to_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
        </div>
@@ -187,6 +195,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="from_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
                <div class="pure-control-group">
@@ -197,6 +209,10 @@
                                                                                
                                <xsl:attribute name="value">
                                                                                
                                        <xsl:value-of select="to_"/>
                                                                                
                                </xsl:attribute>
+                                                                               
                                <xsl:attribute name="readonly">
+                                                                               
                                        <xsl:text>readonly</xsl:text>
+                                                                               
                                </xsl:attribute>
+
                                                                                
                        </input>
                                                                                
                </div>
                                                                                
        </div>

Modified: trunk/bookingfrontend/templates/base/application_edit.xsl
===================================================================
--- trunk/bookingfrontend/templates/base/application_edit.xsl   2016-03-08 
14:48:03 UTC (rev 14823)
+++ trunk/bookingfrontend/templates/base/application_edit.xsl   2016-03-10 
15:25:26 UTC (rev 14824)
@@ -185,6 +185,10 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="from_" />
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
+
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
        <dt>
@@ -197,6 +201,10 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="to_" />
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
+
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
</div>
@@ -214,6 +222,10 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="from_" />
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
+
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
        <dt>
@@ -226,6 +238,10 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="to_" />
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
+
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
</div>

Modified: trunk/bookingfrontend/templates/base/application_new.xsl
===================================================================
--- trunk/bookingfrontend/templates/base/application_new.xsl    2016-03-08 
14:48:03 UTC (rev 14823)
+++ trunk/bookingfrontend/templates/base/application_new.xsl    2016-03-10 
15:25:26 UTC (rev 14824)
@@ -239,6 +239,9 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="from_" />
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
        <dt>
@@ -251,6 +254,9 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="to_"/>
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
</div>
@@ -268,6 +274,10 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="from_" />
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
+
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
        <dt>
@@ -280,6 +290,10 @@
                                                                                
                        <xsl:attribute name="value">
                                                                                
                                <xsl:value-of select="to_"/>
                                                                                
                        </xsl:attribute>
+                                                                               
                        <xsl:attribute name="readonly">
+                                                                               
                                <xsl:text>readonly</xsl:text>
+                                                                               
                        </xsl:attribute>
+
                                                                                
                </input>
                                                                                
        </dd>
                                                                                
</div>




reply via email to

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