fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14148] fixing forms


From: Saul
Subject: [Fmsystem-commits] [14148] fixing forms
Date: Thu, 08 Oct 2015 00:36:02 +0000

Revision: 14148
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14148
Author:   psaul
Date:     2015-10-08 00:36:01 +0000 (Thu, 08 Oct 2015)
Log Message:
-----------
fixing forms

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

Modified: branches/dev-syncromind/booking/templates/base/organization_edit.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/organization_edit.xsl        
2015-10-08 00:35:53 UTC (rev 14147)
+++ branches/dev-syncromind/booking/templates/base/organization_edit.xsl        
2015-10-08 00:36:01 UTC (rev 14148)
@@ -16,26 +16,12 @@
 </func:function>
 
 <xsl:template match="data" xmlns:php="http://php.net/xsl";>
-
-    <!--dl class="form">
-    <dt class="heading">
-        <xsl:if test="new_form">
-            <xsl:value-of select="php:function('lang', 'New Organization')" />
-        </xsl:if>
-        <xsl:if test="not(new_form)">
-            <xsl:value-of select="php:function('lang', 'Edit Organization')" />
-        </xsl:if>
-    </dt>
-    </dl-->
-       
     <xsl:call-template name="msgbox"/>
-       <!--xsl:call-template name="yui_booking_i18n"/-->
-
     <form action="" method="POST" class="pure-form pure-form-stacked" 
id="form" name="form" >
         <input type="hidden" name="tab" value=""/>
         <div id="tab-content">
             <xsl:value-of disable-output-escaping="yes" 
select="organization/tabs"/>
-            <div id="organization_edit">
+            <div id="organization_edit" class="booking-container">
                 <fieldset>
                     <div class="heading">
                         <legend><h3>
@@ -50,9 +36,7 @@
                     <div class="pure-g">
                         <div class="pure-u-1 pure-u-sm-1-2 pure-u-md-1-3 
pure-u-lg-1-4">
                             <div class="pure-control-group">
-                                <label for="field_name">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Organization')" /></h4>
-                                </label>
+                                <label for="field_name"><xsl:value-of 
select="php:function('lang', 'Organization')" /></label>
                                  <xsl:if test="currentapp = 'booking'">
                                     <input id="inputs" name="name" type="text" 
class="pure-u-1">
                                         <xsl:attribute 
name="value"><xsl:value-of select="organization/name"/></xsl:attribute>
@@ -63,11 +47,9 @@
                                         <xsl:attribute 
name="value"><xsl:value-of select="organization/name"/></xsl:attribute>
                                     </input>
                                 </xsl:if>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_shortname">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Organization shortname')" /></h4>
-                                </label>
+                                <label for="field_shortname"><xsl:value-of 
select="php:function('lang', 'Organization shortname')" /></label>
                                 <xsl:if test="currentapp = 'booking'">
                                     <input id="field_shortname" 
name="shortname" type="text" class="pure-u-1">
                                         <xsl:attribute 
name="value"><xsl:value-of select="organization/shortname"/></xsl:attribute>
@@ -78,55 +60,44 @@
                                         <xsl:attribute 
name="value"><xsl:value-of select="organization/shortname"/></xsl:attribute>
                                     </input>
                                 </xsl:if>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_organization_number">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Organization number')" /></h4>
-                                </label>
+                                <label 
for="field_organization_number"><xsl:value-of select="php:function('lang', 
'Organization number')" /></label>
                                 <xsl:if test="currentapp = 'booking'">
                                     <input id="field_organization_number" 
name="organization_number" type="text" 
value="{organization/organization_number}" class="pure-u-1"/>
                                 </xsl:if>
                                 <xsl:if test="currentapp != 'booking'">
                                     <input id="field_organization_number" 
name="organization_number" type="text" readonly="true" 
value="{organization/organization_number}" class="pure-u-1"/>
                                 </xsl:if>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_customer_number">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Customer number')" /></h4>
-                                </label>
+                                <label 
for="field_customer_number"><xsl:value-of select="php:function('lang', 
'Customer number')" /></label>
                                 <xsl:if test="currentapp = 'booking'">
                                     <input name="customer_number" type="text" 
id="field_customer_number" value="{organization/customer_number}" 
class="pure-u-1"/>
                                 </xsl:if>
                                 <xsl:if test="currentapp != 'booking'">
                                     <input name="customer_number" type="text" 
id="field_customer_number" readonly="true" 
value="{organization/customer_number}" class="pure-u-1"/>
                                 </xsl:if>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_homepage">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Homepage')" /></h4>
-                                </label>
+                                <label for="field_homepage"><xsl:value-of 
select="php:function('lang', 'Homepage')" /></label>
                                 <input id="field_homepage" name="homepage" 
type="text" class="pure-u-1">
                                     <xsl:attribute name="value"><xsl:value-of 
select="organization/homepage"/></xsl:attribute>
                                 </input>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_phone">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Phone')" /></h4>
-                                </label>
+                                <label for="field_phone"><xsl:value-of 
select="php:function('lang', 'Phone')" /></label>
                                 <input id="field_phone" name="phone" 
type="text" class="pure-u-1">
                                     <xsl:attribute name="value"><xsl:value-of 
select="organization/phone"/></xsl:attribute>
                                 </input>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_email">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Email')" /></h4>
-                                </label>
+                                <label for="field_email"><xsl:value-of 
select="php:function('lang', 'Email')" /></label>
                                 <input id="field_email" name="email" 
type="text" class="pure-u-1">
                                     <xsl:attribute name="value"><xsl:value-of 
select="organization/email"/></xsl:attribute>
                                 </input>
                             </div>
                         </div>
-                        
                         <div class="pure-u-1 pure-u-sm-1-2 pure-u-md-1-3 
pure-u-lg-1-4">
                             <div class="pure-control-group">
                                 <xsl:if test="currentapp = 'booking'">
@@ -134,50 +105,38 @@
                                 </xsl:if>
                                 <xsl:if test="currentapp != 'booking'">
                                     <xsl:copy-of 
select="phpgw:booking_customer_identifier_show(organization)"/>
-                                </xsl:if>                      
+                                </xsl:if>
                             </div>
                             <div class="pure-control-group">
                                 <xsl:if test="currentapp = 'booking'">
-                                    <label for="field_customer_internal">
-                                        <h4><xsl:value-of 
select="php:function('lang', 'Internal Customer')"/></h4>
-                                    </label>
+                                    <label 
for="field_customer_internal"><xsl:value-of select="php:function('lang', 
'Internal Customer')"/></label>
                                     <xsl:copy-of 
select="phpgw:option_checkbox(organization/customer_internal, 
'customer_internal')"/>
                                 </xsl:if>
                             </div>
                             <div class="pure-control-group">
-                                <label for="field_street">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Street')"/></h4>
-                                </label>
+                                <label for="field_street"><xsl:value-of 
select="php:function('lang', 'Street')"/></label>
                                 <input id="field_street" name="street" 
type="text" value="{organization/street}" class="pure-u-1"/>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_zip_code">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Zip code')"/></h4>
-                                </label>
+                                <label for="field_zip_code"><xsl:value-of 
select="php:function('lang', 'Zip code')"/></label>
                                 <input type="text" name="zip_code" 
id="field_zip_code" value="{organization/zip_code}" class="pure-u-1"/>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_city">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Postal City')"/></h4>
-                                </label>
+                                <label for="field_city"><xsl:value-of 
select="php:function('lang', 'Postal City')"/></label>
                                 <input type="text" name="city" id="field_city" 
value="{organization/city}" class="pure-u-1"/>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for='field_district'>
-                                    <h4><xsl:value-of 
select="php:function('lang', 'District')"/></h4>
-                                </label>
+                                <label for='field_district'><xsl:value-of 
select="php:function('lang', 'District')"/></label>
                                 <xsl:if test="currentapp = 'booking'">
-                                        <input type="text" name="district" 
id="field_district" value="{organization/district}" class="pure-u-1"/>
+                                    <input type="text" name="district" 
id="field_district" value="{organization/district}" class="pure-u-1"/>
                                 </xsl:if>
                                 <xsl:if test="currentapp != 'booking'">
-                                        <input type="text" name="district" 
id="field_district" readonly="true" value="{organization/district}" 
class="pure-u-1"/>
+                                    <input type="text" name="district" 
id="field_district" readonly="true" value="{organization/district}" 
class="pure-u-1"/>
                                 </xsl:if>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
                                 <xsl:if test="not(new_form) and (currentapp = 
'booking')">
-                                    <label for="field_active">
-                                        <h4><xsl:value-of 
select="php:function('lang', 'Active')"/></h4>
-                                    </label>
+                                    <label for="field_active"><xsl:value-of 
select="php:function('lang', 'Active')"/></label>
                                     <select id="field_active" name="active" 
class="pure-u-1">
                                         <option value="1">
                                          <xsl:if test="organization/active=1">
@@ -193,11 +152,9 @@
                                         </option>
                                     </select>
                                 </xsl:if>
-                            </div>                            
+                            </div>
                             <div class="pure-control-group">
-                                <label for="field_show_in_portal">
-                                    <h4><xsl:value-of 
select="php:function('lang', 'Show in portal')"/></h4>
-                                </label>
+                                <label 
for="field_show_in_portal"><xsl:value-of select="php:function('lang', 'Show in 
portal')"/></label>
                                 <select id="field_show_in_portal" 
name="show_in_portal">
                                     <option value="0">
                                         <xsl:if 
test="organization/show_in_portal=0">
@@ -213,15 +170,13 @@
                                     </option>
                                 </select>
                             </div>
-                        </div>                    
-                    </div>                    
+                        </div>
+                    </div>
                     <div class="pure-g">
                         <div class="pure-u-1">
                             <div class="pure-g">
                                 <div class="pure-control-group pure-u-sm-1-1 
pure-u-md-2-3 pure-u-lg-1-2">
-                                    <label for="field_activity">
-                                        <h4><xsl:value-of 
select="php:function('lang', 'Activity')" /></h4>
-                                    </label>
+                                    <label for="field_activity"><xsl:value-of 
select="php:function('lang', 'Activity')" /></label>
                                     <select name="activity_id" 
id="field_activity" class="pure-u-2-3">
                                         <option value=""><xsl:value-of 
select="php:function('lang', '-- select an activity --')" /></option>
                                         <xsl:for-each select="activities">
@@ -236,16 +191,12 @@
                                     </select>
                                 </div>
                                 <div class="pure-control-group pure-u-1">
-                                    <label for="field_description">
-                                        <h4><xsl:value-of 
select="php:function('lang', 'Description')" /></h4>
-                                    </label>
+                                    <label 
for="field_description"><xsl:value-of select="php:function('lang', 
'Description')" /></label>
                                     <div style="max-width:650px;">
                                         <textarea rows="4" 
id="field_description" name="description" type="text" 
class="pure-u-2-3"><xsl:value-of select="organization/description"/></textarea>
                                     </div>
                                 </div>
                             </div>
-                            
-                                
                         </div>
                     </div>
                     <xsl:if test='new_form or organization/permission/write'>
@@ -273,7 +224,6 @@
                                 </label>
                                 <input type='text' id='field_admin_phone_1' 
name="contacts[0][phone]" value='{organization/contacts[1]/phone}' 
class="pure-u-1"/>
                             </div>
-                                    
                         </div>
                         <div class="pure-u-1 pure-u-sm-1-2 pure-u-md-1-3 
pure-u-lg-1-4">
                             <div class="heading">
@@ -298,11 +248,11 @@
                                 </label>
                                 <input type='text' id='field_admin_phone_2' 
name="contacts[1][phone]" value='{organization/contacts[2]/phone}' 
class="pure-u-1"/>
                             </div>
-                        </div>                        
+                        </div>
                     </div>
                     </xsl:if>
                 </fieldset>
-            </div>            
+            </div>
         </div>
         <div class="form-buttons">
             <input type="submit" class="pure-button pure-button-primary">
@@ -313,41 +263,10 @@
                     <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Save')" /></xsl:attribute>
                 </xsl:if>
             </input>
-            <a class="cancel">
+            <a class="cancel pure-button pure-button-primary">
                 <xsl:attribute name="href"><xsl:value-of 
select="organization/cancel_link"/></xsl:attribute>
                 <xsl:value-of select="php:function('lang', 'Cancel')" />
             </a>
         </div>
     </form>
-
-<script type="text/javascript">
-    var endpoint = '<xsl:value-of select="module" />';
-    /*
-    <![CDATA[
-    var descEdit = new YAHOO.widget.SimpleEditor('field-description', {
-        height: '300px',
-        width: '522px',
-        dompath: true,
-        animate: true,
-            handleSubmit: true,
-            toolbar: {
-                titlebar: '',
-                buttons: [
-                   { group: 'textstyle', label: ' ',
-                        buttons: [
-                            { type: 'push', label: 'Bold', value: 'bold' },
-                            { type: 'separator' },
-                            { type: 'push', label: 'HTML Link CTRL + SHIFT + 
L', value: 'createlink'}
-                        ]
-                    }
-                ]
-            }
-    });
-    descEdit.render();
-
-    ]]>
-    */
-</script>
 </xsl:template>
-
-




reply via email to

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