fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14182] fixing form


From: Saul
Subject: [Fmsystem-commits] [14182] fixing form
Date: Fri, 16 Oct 2015 00:06:12 +0000

Revision: 14182
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14182
Author:   psaul
Date:     2015-10-16 00:06:11 +0000 (Fri, 16 Oct 2015)
Log Message:
-----------
fixing form

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

Modified: branches/dev-syncromind/booking/templates/base/application_edit.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/application_edit.xsl 
2015-10-16 00:05:28 UTC (rev 14181)
+++ branches/dev-syncromind/booking/templates/base/application_edit.xsl 
2015-10-16 00:06:11 UTC (rev 14182)
@@ -96,28 +96,18 @@
                                                 <a href="javascript:void(0);" 
class="close-btn btnclose">-</a>
                                                 <div 
class="pure-control-group">
                                                     <label 
for="start_date_{$index}"><xsl:value-of select="php:function('lang', 'From')" 
/></label>
-                                                    <input 
id="alt_start_date_{$index}" name="from_[]" type="hidden">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="from_" />
-                                                        </xsl:attribute>
-                                                    </input>
-                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="start_date_{$index}" 
type="text">
+                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="start_date_{$index}" 
type="text" name="from_[]">
                                                     <!--input 
id="field_{position()}_from" name="from_[]" type="text"-->
                                                         <xsl:attribute 
name="value"><xsl:value-of select="from_"/></xsl:attribute>
                                                     </input>
                                                 </div>
                                                 <div 
class="pure-control-group">
                                                     <label 
for="end_date"><xsl:value-of select="php:function('lang', 'To')" /></label>
-                                                    <input 
id="alt_end_date_{$index}" name="to_[]" type="hidden">
+                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="end_date_{$index}" 
type="text" name="to_[]">
                                                         <xsl:attribute 
name="value">
                                                             <xsl:value-of 
select="to_"/>
                                                         </xsl:attribute>
                                                     </input>
-                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="end_date_{$index}" 
type="text">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="to_"/>
-                                                        </xsl:attribute>
-                                                    </input>
                                                 </div>
                                             </div>
                                         </xsl:when>
@@ -126,23 +116,13 @@
                                                 <a href="javascript:void(0);" 
class="close-btn btnclose">-</a>
                                                 <div 
class="pure-control-group">
                                                     <label 
for="start_date"><xsl:value-of select="php:function('lang', 'From')" /></label>
-                                                    <input id="alt_start_date" 
name="from_[]" type="hidden">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="from_"/>
-                                                        </xsl:attribute>
-                                                    </input>
-                                                    <input class="datetime 
pure-input-2-3" id="start_date" type="text">
+                                                    <input class="datetime 
pure-input-2-3" id="start_date" type="text" name="from_[]">
                                                         <xsl:attribute 
name="value"><xsl:value-of select="from_"/></xsl:attribute>
                                                     </input>
                                                 </div>
                                                 <div 
class="pure-control-group">
                                                     <label 
for="end_date"><xsl:value-of select="php:function('lang', 'To')" /></label>
-                                                    <input id="alt_end_date" 
name="to_[]" type="hidden">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="to_"/>
-                                                        </xsl:attribute>
-                                                    </input>
-                                                    <input class="datetime 
pure-input-2-3" id="end_date" type="text">
+                                                    <input class="datetime 
pure-input-2-3" id="end_date" type="text" name="to_[]">
                                                         <xsl:attribute 
name="value"><xsl:value-of select="to_"/></xsl:attribute>
                                                     </input>
                                                 </div>
@@ -262,7 +242,7 @@
         </div>
         <div class="pure-control-group">
             <input type="submit" class="pure-button pure-button-primary">
-                <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Create')"/></xsl:attribute>
+                <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Save')"/></xsl:attribute>
             </input>
             <a class="cancel pure-button pure-button-primary">
                 <xsl:attribute name="href"><xsl:value-of 
select="application/cancel_link"/></xsl:attribute>

Modified: branches/dev-syncromind/booking/templates/base/application_new.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/application_new.xsl  
2015-10-16 00:05:28 UTC (rev 14181)
+++ branches/dev-syncromind/booking/templates/base/application_new.xsl  
2015-10-16 00:06:11 UTC (rev 14182)
@@ -127,15 +127,10 @@
                                                 <a href="javascript:void(0);" 
class="close-btn btnclose">-</a>
                                                 <div 
class="pure-control-group">
                                                     <label 
for="start_date_{$index}"><xsl:value-of select="php:function('lang', 'From')" 
/></label>
-                                                    <input 
id="alt_start_date_{$index}" name="from_[]" type="hidden">
+                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="start_date_{$index}" 
type="text" name="from_[]">
                                                         <xsl:attribute 
name="value">
                                                             <xsl:value-of 
select="from_" />
                                                         </xsl:attribute>
-                                                    </input>
-                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="start_date_{$index}" 
type="text">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="from_" />
-                                                        </xsl:attribute>
                                                         <!--xsl:if 
test="activity/start_date != ''">
                                                             <xsl:attribute 
name="value">
                                                                 <xsl:value-of 
select="php:function('date', $datetime_format, number(activity/start_date))"/>
@@ -156,15 +151,10 @@
                                                             <xsl:value-of 
select="php:function('lang', $error_msg)" />
                                                         </div>
                                                     </xsl:if>
-                                                    <input 
id="alt_end_date_{$index}" name="to_[]" type="hidden">
+                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="end_date_{$index}" 
type="text" name="to_[]">
                                                         <xsl:attribute 
name="value">
                                                             <xsl:value-of 
select="to_"/>
                                                         </xsl:attribute>
-                                                    </input>
-                                                    <input 
class="newaddedpicker datetime pure-input-2-3" id="end_date_{$index}" 
type="text">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="to_"/>
-                                                        </xsl:attribute>
                                                         <!--xsl:if 
test="activity/end_date != ''">
                                                             <xsl:attribute 
name="value">
                                                                 <xsl:value-of 
select="php:function('date', $datetime_format, number(activity/end_date))"/>
@@ -182,15 +172,10 @@
                                                 <a href="javascript:void(0);" 
class="close-btn btnclose">-</a>
                                                 <div 
class="pure-control-group">
                                                     <label 
for="start_date"><xsl:value-of select="php:function('lang', 'From')" /></label>
-                                                    <input id="alt_start_date" 
name="from_[]" type="hidden">
+                                                    <input class="datetime 
pure-input-2-3" id="start_date" type="text" name="from_[]">
                                                         <xsl:attribute 
name="value">
                                                             <xsl:value-of 
select="from_"/>
                                                         </xsl:attribute>
-                                                    </input>
-                                                    <input class="datetime 
pure-input-2-3" id="start_date" type="text">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="from_"/>
-                                                        </xsl:attribute>
                                                         <!--xsl:if 
test="activity/start_date != ''">
                                                             <xsl:attribute 
name="value">
                                                                 <xsl:value-of 
select="php:function('date', $datetime_format, number(activity/start_date))"/>
@@ -213,15 +198,10 @@
                                                             <xsl:value-of 
select="php:function('lang', $error_msg)" />
                                                         </div>
                                                     </xsl:if>
-                                                    <input id="alt_end_date" 
name="to_[]" type="hidden">
+                                                    <input class="datetime 
pure-input-2-3" id="end_date" type="text" name="to_[]">
                                                         <xsl:attribute 
name="value">
                                                             <xsl:value-of 
select="to_"/>
                                                         </xsl:attribute>
-                                                    </input>
-                                                    <input class="datetime 
pure-input-2-3" id="end_date" type="text">
-                                                        <xsl:attribute 
name="value">
-                                                            <xsl:value-of 
select="to_"/>
-                                                        </xsl:attribute>
                                                         <!--xsl:if 
test="activity/end_date != ''">
                                                             <xsl:attribute 
name="value">
                                                                 <xsl:value-of 
select="php:function('date', $datetime_format, number(activity/end_date))"/>
@@ -363,18 +343,6 @@
         var initialAcceptAllTerms = false;
         var initialSelection = <xsl:value-of 
select="application/resources_json"/>;
         var initialAudience = <xsl:value-of 
select="application/audience_json"/>;
-        var lang = <xsl:value-of select="php:function('js_lang', 'From', 'To', 
'Resource Type', 'Name', 'Accepted', 'Document', 'You must accept to follow all 
terms and conditions of lease first.')"/>;
-    /*
-        $(window).load(function(){
-            var date_format = $('#date_format').val();
-            var time_format = 'HH:mm:ss';
-            $("#start_date").datepicker( "refresh" );
-            var datex = $('#start_date').datepicker('getDate');
-            console.log(datex);
-            var date = $.datepicker.formatDate(date_format, datex);
-            var time = $.datepicker.formatTime(time_format, datex);
-            //$('#start_date').val(date+" "+time);
-        });
-    */
+        var lang = <xsl:value-of select="php:function('js_lang', 'From', 'To', 
'Resource Type', 'Name', 'Accepted', 'Document', 'You must accept to follow all 
terms and conditions of lease first.')"/>
     </script>
 </xsl:template>




reply via email to

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