fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13485] event_edit.xsl


From: Saul
Subject: [Fmsystem-commits] [13485] event_edit.xsl
Date: Tue, 23 Jun 2015 21:24:06 +0000

Revision: 13485
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13485
Author:   psaul
Date:     2015-06-23 21:24:06 +0000 (Tue, 23 Jun 2015)
Log Message:
-----------
event_edit.xsl

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

Modified: branches/dev-syncromind/booking/templates/base/event_edit.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/event_edit.xsl       
2015-06-23 21:23:38 UTC (rev 13484)
+++ branches/dev-syncromind/booking/templates/base/event_edit.xsl       
2015-06-23 21:24:06 UTC (rev 13485)
@@ -1,43 +1,53 @@
 <xsl:template match="data" xmlns:php="http://php.net/xsl";>
-    <div id="content">
-        <ul class="pathway">
+    <!--div id="content"-->
+        <!--ul class="pathway">
             <li><xsl:value-of select="php:function('lang', 'Events')" /></li>
             <li>#<xsl:value-of select="event/id"/></li>
-        </ul>
+        </ul-->
     <xsl:call-template name="msgbox"/>
-       <xsl:call-template name="yui_booking_i18n"/>
+       <!--xsl:call-template name="yui_booking_i18n"/-->
 
-    <form action="" method="POST">
-               <dl class="form-col">
-      <dt><label for="field_active"><xsl:value-of select="php:function('lang', 
'Active')"/></label></dt>
-      <dd>
-          <select id="field_active" name="active">
-              <option value="1">
-                <xsl:if test="event/active=1">
-                  <xsl:attribute name="selected">checked</xsl:attribute>
-                </xsl:if>
-                  <xsl:value-of select="php:function('lang', 'Active')"/>
-              </option>
-              <option value="0">
-                <xsl:if test="event/active=0">
-                  <xsl:attribute name="selected">checked</xsl:attribute>
-                </xsl:if>
-                  <xsl:value-of select="php:function('lang', 'Inactive')"/>
-              </option>
-          </select>
-      </dd>
-               </dl>
-               <dl class="form-col">
-            <dt><label><xsl:value-of select="php:function('lang', 
'Application')"/></label></dt>
-            <dd>
-                               <xsl:if test="event/application_id != ''">
-                                       <a 
href="{event/application_link}">#<xsl:value-of 
select="event/application_id"/></a>
-                               </xsl:if>
-            </dd>
-               </dl>
+    <form action="" method="POST" 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="event/tabs"/>
+            <div id="event_edit">
+                <fieldset>
+                    
+                    <h1>
+                        #<xsl:value-of select="event/id"/>
+                    </h1>
+                    
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 'Active')"/>
+                    </label>
+                        <select id="field_active" name="active">
+                            <option value="1">
+                              <xsl:if test="event/active=1">
+                                <xsl:attribute 
name="selected">checked</xsl:attribute>
+                              </xsl:if>
+                                <xsl:value-of select="php:function('lang', 
'Active')"/>
+                            </option>
+                            <option value="0">
+                              <xsl:if test="event/active=0">
+                                <xsl:attribute 
name="selected">checked</xsl:attribute>
+                              </xsl:if>
+                                <xsl:value-of select="php:function('lang', 
'Inactive')"/>
+                            </option>
+                        </select>
+                </div>
+               <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 
'Application')"/>
+                    </label>
+                                        <xsl:if test="event/application_id != 
''">
+                                                <a 
href="{event/application_link}">#<xsl:value-of 
select="event/application_id"/></a>
+                                        </xsl:if>
+                </div>
                <div class="clr"/>
                <dl class="proplist">
-            <dt class="heading"><xsl:value-of select="php:function('lang', 
'History and comments (%1)', count(comments/author))" /></dt>
+                    <dt class="heading"><xsl:value-of 
select="php:function('lang', 'History and comments (%1)', 
count(comments/author))" /></dt>
                        <xsl:for-each select="comments[author]">
                                <dt>
                                        <xsl:value-of 
select="php:function('pretty_timestamp', time)"/>: <xsl:value-of 
select="author"/>
@@ -46,84 +56,124 @@
                        </xsl:for-each>
                </dl>
                <div class="clr"/>
-        <dl class="form">
-                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Why')" /></dt>
-                       <dt><label for="field_activity"><xsl:value-of 
select="php:function('lang', 'Activity')" /></label></dt>
-                       <dd>
-                               <select name="activity_id" id="field_activity">
-                                       <option value=""><xsl:value-of 
select="php:function('lang', '-- select an activity --')" /></option>
-                                       <xsl:for-each select="activities">
-                                               <option>
-                                                       <xsl:if 
test="../event/activity_id = 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>
-                       </dd>
-                       <dt><label for="field_description"><xsl:value-of 
select="php:function('lang', 'Description')" /></label></dt>
-                       <dd>
-                               <textarea id="field_description" 
class="full-width" name="description"><xsl:value-of 
select="event/description"/></textarea>
-                       </dd>
-                       <dt><label for="field_public"><xsl:value-of 
select="php:function('lang', 'Event type')"/></label></dt>
-                       <dd>
-                         <select id="field_public" name="is_public">
-                                 <option value="1">
-                                       <xsl:if test="event/is_public=1">
-                                         <xsl:attribute 
name="selected">checked</xsl:attribute>
-                                       </xsl:if>
-                                         <xsl:value-of 
select="php:function('lang', 'Public event')"/>
-                                 </option>
-                                 <option value="0">
-                                       <xsl:if test="event/is_public=0">
-                                         <xsl:attribute 
name="selected">checked</xsl:attribute>
-                                       </xsl:if>
-                                         <xsl:value-of 
select="php:function('lang', 'Private event')"/>
-                                 </option>
-                         </select>
-                       </dd>
-               </dl>
-               <dl class="form-col">
-                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Where')" /></dt>
-            <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Building')" /></label></dt>
-            <dd>
-                <div class="autocomplete">
-                    <input id="field_building_id" name="building_id" 
type="hidden">
-                        <xsl:attribute name="value"><xsl:value-of 
select="event/building_id"/></xsl:attribute>
-                    </input>
-                    <input id="field_building_name" name="building_name" 
type="text">
-                        <xsl:attribute name="value"><xsl:value-of 
select="event/building_name"/></xsl:attribute>
-                    </input>
-                    <div id="building_container"/>
+                <div class="pure-control-group">
+                    <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Why')" /></dt>
                 </div>
-            </dd>
-            <dt><label for="field_resources"><xsl:value-of 
select="php:function('lang', 'Resources')" /></label></dt>
-            <dd>
-                <div id="resources_container"><xsl:value-of 
select="php:function('lang', 'Select a building first')" /></div>
-            </dd>
-        </dl>
-        <dl class="form-col">
-                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'When')" /></dt>
-            <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')" /></label></dt>
-            <dd>
-                <div class="datetime-picker">
-                <input id="field_from" name="from_" type="text">
-                    <xsl:attribute name="value"><xsl:value-of 
select="event/from_"/></xsl:attribute>
-                </input>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 
'Activity')" />
+                    </label>
+                            <select name="activity_id" id="field_activity">
+                                    <option value=""><xsl:value-of 
select="php:function('lang', '-- select an activity --')" /></option>
+                                    <xsl:for-each select="activities">
+                                            <option>
+                                                    <xsl:if 
test="../event/activity_id = 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>
-            </dd>
-            <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')" /></label></dt>
-            <dd>
-                <div class="datetime-picker">
-                <input id="field_to" name="to_" type="text">
-                    <xsl:attribute name="value"><xsl:value-of 
select="event/to_"/></xsl:attribute>
-                </input>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 
'Description')" />
+                    </label>
+                            <textarea id="field_description" 
class="full-width" name="description"><xsl:value-of 
select="event/description"/></textarea>
                 </div>
-            </dd>
-        </dl>
-               <dl class="form-col">
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 'Event 
type')"/>
+                    </label>
+                      <select id="field_public" name="is_public">
+                              <option value="1">
+                                    <xsl:if test="event/is_public=1">
+                                      <xsl:attribute 
name="selected">checked</xsl:attribute>
+                                    </xsl:if>
+                                      <xsl:value-of 
select="php:function('lang', 'Public event')"/>
+                              </option>
+                              <option value="0">
+                                    <xsl:if test="event/is_public=0">
+                                      <xsl:attribute 
name="selected">checked</xsl:attribute>
+                                    </xsl:if>
+                                      <xsl:value-of 
select="php:function('lang', 'Private event')"/>
+                              </option>
+                      </select>
+                </div>
+                <div class="pure-control-group">
+                    <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Where')" /></dt>
+                </div>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 
'Building')" />
+                    </label>
+                        <!--div class="autocomplete"-->
+                            <input id="field_building_id" name="building_id" 
type="hidden">
+                                <xsl:attribute name="value"><xsl:value-of 
select="event/building_id"/></xsl:attribute>
+                            </input>
+                            <input id="field_building_name" 
name="building_name" type="text">
+                                <xsl:attribute name="value"><xsl:value-of 
select="event/building_name"/></xsl:attribute>
+                            </input>
+                            <div id="building_container"/>
+                        <!--/div-->
+                </div>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 
'Resources')" />
+                    </label>
+                        <xsl:value-of select="php:function('lang', 'Select a 
building first')" />
+                </div>
+                <div class="pure-control-group">
+                    <dt class="heading"><xsl:value-of 
select="php:function('lang', 'When')" /></dt>
+                </div>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang','Start 
date')" />
+                    </label>
+                        <input class="datetime" id="from_" name="from_" 
type="text">
+                                <xsl:if test="event/from_ != ''">
+                                        <xsl:attribute name="value">
+                                                <!--xsl:value-of 
select="php:function('date', $datetime_format, number(event/from_))"/-->
+                                                <xsl:value-of 
select="event/from_"/>
+                                        </xsl:attribute>
+                                </xsl:if>
+                                <xsl:attribute name="data-validation">
+                                        <xsl:text>required</xsl:text>
+                                </xsl:attribute>
+                        </input>
+                    <!--dd>
+                        <div class="datetime-picker">
+                        <input id="field_from" name="from_" type="text">
+                            <xsl:attribute name="value"><xsl:value-of 
select="event/from_"/></xsl:attribute>
+                        </input>
+                        </div>
+                    </dd-->
+                </div>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 'End 
date')" />
+                    </label>
+                    <!--dd>
+                        <div class="datetime-picker">
+                        <input id="field_to" name="to_" type="text">
+                            <xsl:attribute name="value"><xsl:value-of 
select="event/to_"/></xsl:attribute>
+                        </input>
+                        </div>
+                    </dd-->
+                        <input class="datetime" id="to_" name="to_" 
type="text">
+                                <xsl:if test="event/to_ != ''">
+                                        <xsl:attribute name="value">
+                                                <!--xsl:value-of 
select="php:function('date', $datetime_format, number(event/from_))"/-->
+                                                <xsl:value-of 
select="event/to_"/>
+                                        </xsl:attribute>
+                                </xsl:if>
+                                <xsl:attribute name="data-validation">
+                                        <xsl:text>required</xsl:text>
+                                </xsl:attribute>
+                        </input>
+                </div>
+               <div class="pure-control-group">
                        <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Who')" /></dt>
                        <dt><label><xsl:value-of select="php:function('lang', 
'Target audience')" /></label></dt>
                        <dd>
@@ -166,53 +216,68 @@
                                        </xsl:for-each>
                                </table>
                        </dd>
-                       <dt><xsl:value-of select="php:function('lang', 'SMS 
total')" /></dt>
-                       <dd>
+                </div>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 'SMS 
total')" />
+                    </label>
                                <input type="text" name="sms_total">
                                        <xsl:attribute 
name="value"><xsl:value-of select="event/sms_total"/></xsl:attribute>
                                </input>
-                       </dd>
-               </dl>
+                </div>
                <div class="clr"/>
-        <dl class="form-col">
-                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Contact information')" /></dt>
-                       <dt><label for="field_contact_name"><xsl:value-of 
select="php:function('lang', 'Name')" /></label></dt>
-                       <dd>
-                               <input id="field_contact_name" 
name="contact_name" type="text">
-                                       <xsl:attribute 
name="value"><xsl:value-of select="event/contact_name"/></xsl:attribute>
-                               </input>
-                       </dd>
-                       <dt><label for="field_contact_email"><xsl:value-of 
select="php:function('lang', 'Email')" /></label></dt>
-                       <dd>
-                               <input id="field_contact_mail" 
name="contact_email" type="text">
-                                       <xsl:attribute 
name="value"><xsl:value-of select="event/contact_email"/></xsl:attribute>
-                               </input>
-                       </dd>
-                       <dt><label for="field_contact_phone"><xsl:value-of 
select="php:function('lang', 'Phone')" /></label></dt>
-                       <dd>
-                               <input id="field_contact_phone" 
name="contact_phone" type="text">
-                                       <xsl:attribute 
name="value"><xsl:value-of select="event/contact_phone"/></xsl:attribute>
-                               </input>
-                       </dd>
-            <dt><label for="field_cost"><xsl:value-of 
select="php:function('lang', 'Cost')" /></label></dt>
-            <dd>
-                <input id="field_cost" name="cost" type="text">
-                    <xsl:attribute name="value"><xsl:value-of 
select="event/cost"/></xsl:attribute>
-                </input>
-            </dd>
-        </dl>
-               <dl class="form-col">
+                <div class="pure-control-group">
+                                <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Contact information')" /></dt>
+                </div>
+                <div class="pure-control-group">        
+                                <label>
+                                    <xsl:value-of select="php:function('lang', 
'Name')" />
+                                </label>
+                                        <input id="field_contact_name" 
name="contact_name" type="text">
+                                                <xsl:attribute 
name="value"><xsl:value-of select="event/contact_name"/></xsl:attribute>
+                                        </input>
+                </div>
+                <div class="pure-control-group">
+                                <label>
+                                    <xsl:value-of select="php:function('lang', 
'Email')" />
+                                </label>
+                                        <input id="field_contact_mail" 
name="contact_email" type="text">
+                                                <xsl:attribute 
name="value"><xsl:value-of select="event/contact_email"/></xsl:attribute>
+                                        </input>
+                </div>
+                <div class="pure-control-group">
+                                <label>
+                                    <xsl:value-of select="php:function('lang', 
'Phone')" />
+                                </label>
+                                        <input id="field_contact_phone" 
name="contact_phone" type="text">
+                                                <xsl:attribute 
name="value"><xsl:value-of select="event/contact_phone"/></xsl:attribute>
+                                        </input>
+                </div>
+                <div class="pure-control-group">
+                    <label>
+                        <xsl:value-of select="php:function('lang', 'Cost')" />
+                    </label>
+                        <input id="field_cost" name="cost" type="text">
+                            <xsl:attribute name="value"><xsl:value-of 
select="event/cost"/></xsl:attribute>
+                        </input>
+                </div>
+               <div class="pure-control-group">
                        <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Invoice information')" /></dt>
 
                        <xsl:copy-of 
select="phpgw:booking_customer_identifier(event, '')"/>
+                </div>
+                <div class="pure-control-group">
+                       <label>
+                            <xsl:value-of select="php:function('lang', 
'Internal Customer')"/>
+                        </label>
                        
-                       <dt><label for="field_customer_internal"><xsl:value-of 
select="php:function('lang', 'Internal Customer')"/></label></dt>
-                       <dd><xsl:copy-of 
select="phpgw:option_checkbox(event/customer_internal, 
'customer_internal')"/></dd>
-               </dl>
-               <dl class="form-col">
+                        <xsl:copy-of 
select="phpgw:option_checkbox(event/customer_internal, 'customer_internal')"/>
+                </div>
+               <div class="pure-control-group">
                        <dt class="heading"><xsl:value-of 
select="php:function('lang', 'send reminder for participants statistics')" 
/></dt>
-                       <dt style="visibility: hidden;">!</dt>
-                       <dd>
+                </div>
+                <div class="pure-control-group">
+                    <label>!</label>
                                <select name="reminder" id="field_reminder">
                                        <xsl:if test="event/reminder = 0">
                                                <option value="1"><xsl:value-of 
select="php:function('lang', 'Send reminder')" /></option>
@@ -239,33 +304,35 @@
                                                <option value="3" 
selected="selected"><xsl:value-of select="php:function('lang', 'Reminder sent. 
Not responded to')" /></option>
                                        </xsl:if>
                                </select>
-                       </dd>
-               </dl>
+                </div>
                <div class="clr"/>
-               <dl class="form">
+               <div class="pure-control-group">
                        <dt><label for="field_mail"><xsl:value-of 
select="php:function('lang', 'Inform contact persons')" /></label></dt>
                        <dd>
-                               <label><xsl:value-of 
select="php:function('lang', 'Text written in the text area below will be sent 
as an email to all registered contact persons.')" /></label><br />
+                        <label><xsl:value-of select="php:function('lang', 
'Text written in the text area below will be sent as an email to all registered 
contact persons.')" /></label><br />
                        <textarea id="field_mail" name="mail" 
class="full-width"></textarea><br />
                        <label><input type="checkbox" value="1" 
name="sendtocontact" /> <xsl:value-of select="php:function('lang', 'Send to 
contact')" /></label><br />
                        <label><input type="checkbox" value="1" 
name="sendtocollision" /> <xsl:value-of select="php:function('lang', 'Send to 
contact for overlaping allocations/bookings')" /></label><br />
                        <label><input type="checkbox" value="1" 
name="sendtorbuilding" /> <xsl:value-of select="php:function('lang', 'Send 
warning to building responsible')" /></label><br />
                        <label><input type="text" name="sendtorbuilding_email1" 
/> <xsl:value-of select="php:function('lang', 'Optional e-mail adress')" 
/></label><br />
-                       <label><input type="text" name="sendtorbuilding_email2" 
/> <xsl:value-of select="php:function('lang', 'Optional e-mail adress')" 
/></label><br />                       </dd>
-               </dl>
+                       <label><input type="text" name="sendtorbuilding_email2" 
/> <xsl:value-of select="php:function('lang', 'Optional e-mail adress')" 
/></label><br /></dd>
+                </div>
+            </fieldset>
+            </div>
+        </div>
         <div class="form-buttons">
-            <input type="submit">
-                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Send')"/></xsl:attribute>
-                       </input>
+            <input type="submit" class="pure-button pure-button-primary">
+                                <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Send')"/></xsl:attribute>
+                        </input>
             <a class="cancel">
                 <xsl:attribute name="href"><xsl:value-of 
select="event/cancel_link"/></xsl:attribute>
                 <xsl:value-of select="php:function('lang', 'Cancel')" />
             </a>
         </div>
     </form>
-    </div>
-    <script type="text/javascript">
+    <!--/div-->
+    <!--script type="text/javascript">
         YAHOO.booking.initialSelection = <xsl:value-of 
select="event/resources_json"/>;
                var lang = <xsl:value-of select="php:function('js_lang', 
'Resource Type')"/>;
-    </script>
+    </script-->
 </xsl:template>




reply via email to

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