fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13500] document_form.xsl


From: Saul
Subject: [Fmsystem-commits] [13500] document_form.xsl
Date: Wed, 24 Jun 2015 22:58:18 +0000

Revision: 13500
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13500
Author:   psaul
Date:     2015-06-24 22:58:17 +0000 (Wed, 24 Jun 2015)
Log Message:
-----------
document_form.xsl

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

Modified: branches/dev-syncromind/booking/templates/base/document_form.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/document_form.xsl    
2015-06-24 22:57:52 UTC (rev 13499)
+++ branches/dev-syncromind/booking/templates/base/document_form.xsl    
2015-06-24 22:58:17 UTC (rev 13500)
@@ -1,10 +1,10 @@
 <xsl:template match="data" xmlns:php="http://php.net/xsl";>
-       <script type="text/javascript">
+       <!--script type="text/javascript">
                YAHOO.booking.documentOwnerType = "<xsl:value-of 
select="document/owner_type"/>";
                YAHOO.booking.documentOwnerAutocomplete = <xsl:value-of 
select="document/inline"/> == 0;
-       </script>
+       </script-->
        
-    <div id="content">
+    <!--div id="content"-->
         
                <!-- Add pathway later -->
                <!--ul class="pathway">
@@ -18,10 +18,15 @@
         </ul-->
 
        <xsl:call-template name="msgbox"/>
-               <xsl:call-template name="yui_booking_i18n"/>
+               <!--xsl:call-template name="yui_booking_i18n"/-->
 
-       <form action="" method="POST" enctype='multipart/form-data'>
-                       <dl class="form">
+       <form action="" method="POST" enctype='multipart/form-data' id='form' 
class="pure-form pure-form-aligned" name="form">
+            <input type="hidden" name="tab" value=""/>
+            <div id="tab-content">
+                <xsl:value-of disable-output-escaping="yes" 
select="document/tabs"/>
+                <div id="document_edit">     
+           
+                       <div class="pure-control-group">
                                <xsl:if test="document/id">
                                        <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Edit document')" /></dt>
                                </xsl:if>
@@ -34,91 +39,93 @@
                                                <xsl:attribute 
name="value"><xsl:value-of select="document/id"/></xsl:attribute>
                                        </input>
                                </xsl:if>
-                               <dt><label for="field_name"><xsl:value-of 
select="php:function('lang', 'Document')" /></label></dt>
-                   <dd>
-                       <input name="name" id='field_name'>
-                                               <xsl:attribute 
name="value"><xsl:value-of select="document/name"/></xsl:attribute>
-                                               <xsl:attribute name="type">
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="document/id">text</xsl:when>
-                                                               
<xsl:otherwise>file</xsl:otherwise>
-                                                       </xsl:choose>
-                                               </xsl:attribute>
-                           
-                                               <xsl:if test="document/id">
-                                                       <xsl:attribute 
name="disabled" value="disabled"/>
-                                               </xsl:if>
-                                               
-                                               <xsl:attribute 
name='title'><xsl:value-of select="document/name"/></xsl:attribute>
-                       </input>
-                   </dd>
-                       </dl>
-                       <dl class="form-col">
+                        </div>
+                        <div class="pure-control-group">
+                               <label>
+                                    <xsl:value-of select="php:function('lang', 
'Document')" />
+                                </label>
+                                    <input name="name" id='field_name'>
+                                                            <xsl:attribute 
name="value"><xsl:value-of select="document/name"/></xsl:attribute>
+                                                            <xsl:attribute 
name="type">
+                                                                    
<xsl:choose>
+                                                                            
<xsl:when test="document/id">text</xsl:when>
+                                                                            
<xsl:otherwise>file</xsl:otherwise>
+                                                                    
</xsl:choose>
+                                                            </xsl:attribute>
 
-                   <dt><label for="field_description"><xsl:value-of 
select="php:function('lang', 'Description')" /></label></dt>
-                   <dd>
-                       <textarea name="description" 
id='field_description'><xsl:value-of select="document/description"/></textarea>
-                   </dd>
-               </dl>
+                                                            <xsl:if 
test="document/id">
+                                                                    
<xsl:attribute name="disabled" value="disabled"/>
+                                                            </xsl:if>
+
+                                                            <xsl:attribute 
name='title'><xsl:value-of select="document/name"/></xsl:attribute>
+                                    </input>
+                        </div>
+                        <div class="pure-control-group">
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'Description')" />
+                            </label>
+                                <textarea name="description" 
id='field_description'><xsl:value-of select="document/description"/></textarea>
+                        </div>
        
-               <dl class="form-col">
-                               
-                               <dt><label for="field_category"><xsl:value-of 
select="php:function('lang', 'Category')" /></label></dt>
-                               <dd>
-                                       <select name='category' 
id='field_category'>
-                                               <option value=''><xsl:value-of 
select="php:function('lang', 'Select Category...')" /></option>
-                                               <xsl:for-each 
select="document/document_types/*">
-                                                       <option>
-                                                               <xsl:if 
test="../../category = local-name()">
-                                                                       
<xsl:attribute name="selected">selected</xsl:attribute>
-                                                               </xsl:if>
-                                               
-                                                               <xsl:attribute 
name="value"><xsl:value-of select="local-name()"/></xsl:attribute>
-                                                               <xsl:value-of 
select="php:function('lang', string(node()))"/>
-                                                       </option>
-                                               </xsl:for-each>
-                                       </select>
-                               </dd>
-                       
-                               
-                               <dt>
-                                       <label 
for="field_owner_name"><xsl:value-of select="php:function('lang', 
string(document/owner_type_label))" /></label>
-                               </dt>
-                               <dd>
-                                       <div class="autocomplete">
-                                               <input id="field_owner_name" 
name="owner_name" type="text">
-                                                       <xsl:attribute 
name="value"><xsl:value-of select="document/owner_name"/></xsl:attribute>
-                                                       <xsl:if 
test="document/inline = '1'">
-                                                               <xsl:attribute 
name="disabled">disabled</xsl:attribute>
-                                                       </xsl:if>
-                                               </input>
-                                               <input id="field_owner_id" 
name="owner_id" type="hidden">
-                                                       <xsl:attribute 
name="value"><xsl:value-of select="document/owner_id"/></xsl:attribute>
-                                               </input>
-                                               <div id="owner_container"/>
-                                       </div>
-                               </dd>
-                       </dl>
+                        <div class="pure-control-group">
+                                <label>
+                                    <xsl:value-of select="php:function('lang', 
'Category')" />
+                                </label>
+                                    <select name='category' 
id='field_category'>
+                                            <option value=''><xsl:value-of 
select="php:function('lang', 'Select Category...')" /></option>
+                                            <xsl:for-each 
select="document/document_types/*">
+                                                    <option>
+                                                            <xsl:if 
test="../../category = local-name()">
+                                                                    
<xsl:attribute name="selected">selected</xsl:attribute>
+                                                            </xsl:if>
 
-               <div class="clr"/>
-               <div class="form-buttons">
-            <input type="submit">
-                               <xsl:attribute name="value">
-                                       <xsl:choose>
-                                               <xsl:when test="document/id">
-                                                       <xsl:value-of 
select="php:function('lang', 'Update')"/>
-                                               </xsl:when>
-                                               <xsl:otherwise>
-                                                       <xsl:value-of 
select="php:function('lang', 'Create')"/>
-                                               </xsl:otherwise>
-                                       </xsl:choose>
-                               </xsl:attribute>
-                       </input>
-            <a class="cancel">
-                <xsl:attribute name="href"><xsl:value-of 
select="document/cancel_link"/></xsl:attribute>
-                               <xsl:value-of select="php:function('lang', 
'Cancel')" />
-            </a>
-        </div>
+                                                            <xsl:attribute 
name="value"><xsl:value-of select="local-name()"/></xsl:attribute>
+                                                            <xsl:value-of 
select="php:function('lang', string(node()))"/>
+                                                    </option>
+                                            </xsl:for-each>
+                                    </select>
+                        </div>
+                
+                        <div class="pure-control-group">       
+
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
string(document/owner_type_label))" />
+                            </label>
+                                    <!--div class="autocomplete"-->
+                                            <input id="field_owner_name" 
name="owner_name" type="text">
+                                                    <xsl:attribute 
name="value"><xsl:value-of select="document/owner_name"/></xsl:attribute>
+                                                    <xsl:if 
test="document/inline = '1'">
+                                                            <xsl:attribute 
name="disabled">disabled</xsl:attribute>
+                                                    </xsl:if>
+                                            </input>
+                                            <input id="field_owner_id" 
name="owner_id" type="hidden">
+                                                    <xsl:attribute 
name="value"><xsl:value-of select="document/owner_id"/></xsl:attribute>
+                                            </input>
+                                            <div id="owner_container"/>
+                                    <!--/div-->
+                        </div>
+
+                        <div class="clr"/>
+                </div>
+            </div>
+             <div class="form-buttons">
+                            <input type="submit" class="pure-button 
pure-button-primary">
+                                                <xsl:attribute name="value">
+                                                        <xsl:choose>
+                                                                <xsl:when 
test="document/id">
+                                                                        
<xsl:value-of select="php:function('lang', 'Update')"/>
+                                                                </xsl:when>
+                                                                <xsl:otherwise>
+                                                                        
<xsl:value-of select="php:function('lang', 'Create')"/>
+                                                                
</xsl:otherwise>
+                                                        </xsl:choose>
+                                                </xsl:attribute>
+                                        </input>
+                            <a class="cancel">
+                                <xsl:attribute name="href"><xsl:value-of 
select="document/cancel_link"/></xsl:attribute>
+                                                <xsl:value-of 
select="php:function('lang', 'Cancel')" />
+                            </a>
+            </div>
        </form>
-    </div>
+    <!--/div-->
 </xsl:template>




reply via email to

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