fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12021] bkbooking: stavanger added fjell layout


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [12021] bkbooking: stavanger added fjell layout
Date: Tue, 24 Jun 2014 06:39:58 +0000

Revision: 12021
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12021
Author:   kjell
Date:     2014-06-24 06:39:56 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
bkbooking: stavanger added fjell layout

Added Paths:
-----------
    branches/stavangerkommune/bookingfrontend/templates/fjell/
    branches/stavangerkommune/bookingfrontend/templates/fjell/access_denied.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_cancel.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete_preview.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_info.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/app_data.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/application_new.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/booking_cancel.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete_preview.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit_preview.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/booking_info.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_massupdate.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new_preview.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/building.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/building_schedule.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/config.tpl
    branches/stavangerkommune/bookingfrontend/templates/fjell/event_delete.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/event_edit.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/event_info.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/group.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/organization.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/report_numbers.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/resource.xsl
    
branches/stavangerkommune/bookingfrontend/templates/fjell/resource_schedule.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/search.xsl
    branches/stavangerkommune/bookingfrontend/templates/fjell/system_message.xsl
    branches/stavangerkommune/phpgwapi/templates/fjell/
    branches/stavangerkommune/phpgwapi/templates/fjell/css/
    branches/stavangerkommune/phpgwapi/templates/fjell/css/font-awesome.min.css
    
branches/stavangerkommune/phpgwapi/templates/fjell/css/font-awesome.min.css.dev
    
branches/stavangerkommune/phpgwapi/templates/fjell/css/font-awesome.min.css.prod
    branches/stavangerkommune/phpgwapi/templates/fjell/css/frontend.css
    branches/stavangerkommune/phpgwapi/templates/fjell/footer.tpl
    branches/stavangerkommune/phpgwapi/templates/fjell/head.inc.php
    branches/stavangerkommune/phpgwapi/templates/fjell/head.tpl
    branches/stavangerkommune/phpgwapi/templates/fjell/images/
    branches/stavangerkommune/phpgwapi/templates/fjell/images/bergen_logo.png
    branches/stavangerkommune/phpgwapi/templates/fjell/images/header_bg.png
    branches/stavangerkommune/phpgwapi/templates/fjell/images/header_fg.png
    branches/stavangerkommune/phpgwapi/templates/fjell/images/info.png
    branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/
    
branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/aktivby_logo.jpg
    
branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/bodyBg.gif
    
branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/footerFjell_inkl_bunnlinje.gif
    
branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/forsidebilde.jpg
    branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/logo.png
    
branches/stavangerkommune/phpgwapi/templates/fjell/images/newlayout/pageContainerBg.gif
    branches/stavangerkommune/phpgwapi/templates/fjell/js/
    branches/stavangerkommune/phpgwapi/templates/fjell/js/minid.js
    branches/stavangerkommune/phpgwapi/templates/fjell/navbar.inc.php
    branches/stavangerkommune/phpgwapi/templates/fjell/navbar.tpl

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/access_denied.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/access_denied.xsl 
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/access_denied.xsl 
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,8 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       
+       <div id="content">
+               <div class="error"><xsl:value-of select="php:function('lang', 
'Access denied')" /></div>
+       </div>
+
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_cancel.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_cancel.xsl 
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_cancel.xsl 
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,157 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'Cancel 
allocation')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+       <dl class="form">
+       <dd><xsl:value-of select="php:function('lang', 'Cancel 
Information')"/></dd>
+       <dd><xsl:value-of select="php:function('lang', 'Cancel 
Information2')"/></dd>
+       </dl>
+    <div class="clr"/>
+    <form action="" method="POST">
+               <input type="hidden" name="application_id" 
value="{allocation/application_id}"/>
+        <input id="field_org_id" name="organization_id" type="hidden" 
value="{allocation/organization_id}" />
+        <input id="field_building_id" name="building_id" type="hidden" 
value="{allocation/building_id}" />
+        <input id="field_from" name="from_" type="hidden" 
value="{allocation/from_}" />
+        <input id="field_to" name="to_" type="hidden" value="{allocation/to_}" 
/>
+
+        <dl class="form-col">
+
+            <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Building')" /></label></dt>
+            <dd>
+                <div class="autocomplete">
+                        <xsl:value-of select="allocation/building_name"/>
+                </div>
+            </dd>
+
+
+            <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')" /></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="allocation/from_"/>
+                </div>
+            </dd>
+                       <dd>
+                <div> </div>
+                       </dd>
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Recurring allocation cancelation')" 
/></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="outseason" 
id="outseason">
+                                               <xsl:if test="outseason='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Out season')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="recurring" 
id="recurring">
+                                               <xsl:if test="recurring='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Cancel until')" />
+                               </label>
+                       </dd>
+                       <dd class="date-picker">
+                               <input id="field_repeat_until" 
name="repeat_until" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="repeat_until"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><xsl:value-of select="php:function('lang', 
'Interval')" /></dt>
+                       <dd>
+                               <xsl:value-of select="../field_interval" />
+                               <select id="field_interval" 
name="field_interval">
+                                       <option value="1">
+                                               <xsl:if test="interval=1">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '1 week')" />
+                                       </option>
+                                       <option value="2">
+                                               <xsl:if test="interval=2">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '2 weeks')" />
+                                       </option>
+                                       <option value="3">
+                                               <xsl:if test="interval=3">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '3 weeks')" />
+                                       </option>
+                                       <option value="4">
+                                               <xsl:if test="interval=4">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '4 weeks')" />
+                                       </option>
+                               </select>
+                       </dd>
+        </dl>
+        <dl class="form-col">
+            <dt><label for="field_org"><xsl:value-of 
select="php:function('lang', 'Organization')" /></label></dt>
+            <dd>
+                <div class="autocomplete">
+                        <xsl:value-of select="allocation/organization_name"/>
+                </div>
+            </dd>
+            <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')" /></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="allocation/to_"/>
+                </div>
+            </dd>
+        </dl>
+
+               <div style='clear:both; padding:0; margin:0'/>
+
+        <dl class="form-col">
+                       <dt><label for="field_message"><xsl:value-of 
select="php:function('lang', 'Message')" /></label></dt>
+                       <dd class="yui-skin-sam">
+                               <textarea id="field-message" name="message" 
type="text"><xsl:value-of select="message"/></textarea>
+                       </dd>
+        </dl>
+
+        <div class="form-buttons">
+            <input type="submit">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Cancel allocation')"/></xsl:attribute>
+                       </input>
+            <a class="cancel">
+                <xsl:attribute name="href"><xsl:value-of 
select="allocation/cancel_link"/></xsl:attribute>
+                <xsl:value-of select="php:function('lang', 'Cancel')" />
+            </a>
+        </div>
+    </form>
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.season_id = '<xsl:value-of 
select="allocation/season_id"/>';
+        <![CDATA[
+        var descEdit = new YAHOO.widget.SimpleEditor('field-message', {
+            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>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete.xsl 
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete.xsl 
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,159 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'Delete 
allocation')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+       <dl class="form">
+       <dd><xsl:value-of select="php:function('lang', 'Delete 
Information')"/></dd>
+       <dd><xsl:value-of select="php:function('lang', 'Delete 
Information2')"/></dd>
+       </dl>
+    <div class="clr"/>
+    <form action="" method="POST">
+               <input type="hidden" name="application_id" 
value="{allocation/application_id}"/>
+        <input id="field_org_id" name="organization_id" type="hidden" 
value="{allocation/organization_id}" />
+        <input id="field_building_id" name="building_id" type="hidden" 
value="{allocation/building_id}" />
+        <input id="field_from" name="from_" type="hidden" 
value="{allocation/from_}" />
+        <input id="field_to" name="to_" type="hidden" value="{allocation/to_}" 
/>
+
+        <dl class="form-col">
+
+            <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Building')" /></label></dt>
+            <dd>
+                <div class="autocomplete">
+                        <xsl:value-of select="allocation/building_name"/>
+                </div>
+            </dd>
+
+
+            <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')" /></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="allocation/from_"/>
+                </div>
+            </dd>
+                       <dd>
+                <div> </div>
+                       </dd>
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Recurring allocation deletion')" /></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="outseason" 
id="outseason">
+                                               <xsl:if test="outseason='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Out season')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="recurring" 
id="recurring">
+                                               <xsl:if test="recurring='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Delete until')" />
+                               </label>
+                       </dd>
+                       <dd class="date-picker">
+                               <input id="field_repeat_until" 
name="repeat_until" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="repeat_until"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><xsl:value-of select="php:function('lang', 
'Interval')" /></dt>
+                       <dd>
+                               <xsl:value-of select="../field_interval" />
+                               <select id="field_interval" 
name="field_interval">
+                                       <option value="1">
+                                               <xsl:if test="interval=1">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '1 week')" />
+                                       </option>
+                                       <option value="2">
+                                               <xsl:if test="interval=2">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '2 weeks')" />
+                                       </option>
+                                       <option value="3">
+                                               <xsl:if test="interval=3">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '3 weeks')" />
+                                       </option>
+                                       <option value="4">
+                                               <xsl:if test="interval=4">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '4 weeks')" />
+                                       </option>
+                               </select>
+                       </dd>
+        </dl>
+        <dl class="form-col">
+            <dt><label for="field_org"><xsl:value-of 
select="php:function('lang', 'Organization')" /></label></dt>
+            <dd>
+                <div class="autocomplete">
+                        <xsl:value-of select="allocation/organization_name"/>
+                </div>
+            </dd>
+            <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')" /></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="allocation/to_"/>
+                </div>
+            </dd>
+        </dl>
+
+               <div style='clear:both; padding:0; margin:0'/>
+
+        <dl class="form-col">
+                       <dt><label for="field_message"><xsl:value-of 
select="php:function('lang', 'Message')" /></label></dt>
+                       <dd class="yui-skin-sam">
+                               <textarea id="field-message" name="message" 
type="text"><xsl:value-of select="system_message/message"/></textarea>
+                       </dd>
+        </dl>
+
+        <div class="form-buttons">
+            <input type="submit">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Delete')"/></xsl:attribute>
+                       </input>
+            <a class="cancel">
+                <xsl:attribute name="href"><xsl:value-of 
select="allocation/cancel_link"/></xsl:attribute>
+                <xsl:value-of select="php:function('lang', 'Cancel')" />
+            </a>
+        </div>
+    </form>
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.season_id = '<xsl:value-of 
select="allocation/season_id"/>';
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="allocation/resources_json"/>;
+               var lang = <xsl:value-of select="php:function('js_lang', 
'Resource Type')"/>;
+        <![CDATA[
+        var descEdit = new YAHOO.widget.SimpleEditor('field-message', {
+            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>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete_preview.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete_preview.xsl
                             (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_delete_preview.xsl
     2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,73 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'Delete 
Allocations')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+       <!-- <xsl:call-template name="xmlsource"/> -->
+
+           <form action="" method="POST">
+                       <input type="hidden" name="allocation_id" 
value="{allocation/id}"/>
+                       <input type="hidden" name="organization_name" 
value="{allocation/organization_name}"/>
+                       <input type="hidden" name="organization_id" 
value="{allocation/organization_id}"/>
+                       <input type="hidden" name="building_name" 
value="{allocation/building_name}"/>
+                       <input type="hidden" name="building_id" 
value="{allocation/building_id}"/>
+                       <input type="hidden" name="from_" value="{from_date}"/>
+                       <input type="hidden" name="to_" value="{to_date}"/>
+                       <input type="hidden" name="building_id" 
value="{allocation/building_id}"/>
+                       <input type="hidden" name="cost" 
value="{allocation/cost}"/>
+                       <input type="hidden" name="season_id" 
value="{allocation/season_id}"/>
+                       <input type="hidden" name="field_building_id" 
value="{allocation/building_id}"/>
+                       <input type="hidden" name="step" value="{step}" />
+                       <input type="hidden" name="repeat_until" 
value="{repeat_until}" />
+                       <input type="hidden" name="field_interval" 
value="{interval}" />
+                       <input type="hidden" name="outseason" 
value="{outseason}" />
+                       <input type="hidden" name="recurring" 
value="{recurring}" />
+                       <input type="hidden" name="message" value="{message}" />
+                       <xsl:for-each select="allocation/resources">
+                               <input type="hidden" name="resources[]" 
value="{.}" />
+                       </xsl:for-each>
+
+                       <h4><xsl:value-of select="php:function('lang', 
'Allocations that will be deleted')" /></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="valid_dates">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+
+                       <h4><xsl:value-of select="php:function('lang', 
'Allocations  with existing bookings (%1)', count(result/invalid[from_]))" 
/></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="invalid_dates">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+               <div class="form-buttons">
+                   <input type="submit" name="create">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Delete')" /></xsl:attribute>
+                               </input>
+                   <a class="cancel">
+                       <xsl:attribute name="href"><xsl:value-of 
select="allocation/cancel_link"/></xsl:attribute>
+                       <xsl:value-of select="php:function('lang', 'Cancel')" />
+                   </a>
+               </div>
+               </form>
+
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="allocation/resources_json"/>;
+    </script>
+</xsl:template>
+<xsl:template name="xmlsource">
+  NODE <xsl:value-of select="name()"/>
+  ATTR { <xsl:for-each select="attribute::*"><xsl:value-of 
select="name()"/>=<xsl:value-of select="."/> </xsl:for-each> }
+  CHILDREN: { <xsl:for-each select="*"><xsl:call-template 
name="xmlsource"/></xsl:for-each> }
+  TEXT <xsl:value-of select="text()"/>
+  <br/>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_info.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_info.xsl   
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/allocation_info.xsl   
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,30 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <div class="close"><a onclick="YAHOO.booking.closeOverlay(); return 
false" href=""><xsl:value-of select="php:function('lang', 'Close')"/></a></div>
+       <h3><xsl:value-of select="php:function('lang', 'Allocation')"/> 
#<xsl:value-of select="allocation/id"/></h3>
+       <dl>
+               <dt><xsl:value-of select="php:function('lang', 'Where')"/></dt>
+               <dd>
+                       <a href="{allocation/building_link}"><xsl:value-of 
select="allocation/resources[position()=1]/building_name"/></a>
+                       (<xsl:value-of select="allocation/resource_info"/>)
+               </dd>
+               <dt><xsl:value-of select="php:function('lang', 'When')"/></dt>
+               <dd><xsl:value-of select="allocation/when"/></dd>
+               <dt><xsl:value-of select="php:function('lang', 'Who')"/></dt>
+               <dd>
+                       <a href="{allocation/org_link}"><xsl:value-of 
select="allocation/organization_name"/></a>
+               </dd>
+       </dl>
+       <xsl:if test="allocation/add_link">
+               <div class="actions">
+                       <button 
onclick="location.href='{allocation/add_link}'"><xsl:value-of 
select="php:function('lang', 'Create new booking')"/></button>
+            <xsl:if test="user_can_delete_allocations!=2">
+                       <xsl:if test="user_can_delete_allocations != 1">
+                       <button 
onclick="location.href='{allocation/cancel_link}'"><xsl:value-of 
select="php:function('lang', 'Cancel allocation')"/></button>
+                       </xsl:if>
+                       <xsl:if test="user_can_delete_allocations != 0">
+                       <button 
onclick="location.href='{allocation/cancel_link}'"><xsl:value-of 
select="php:function('lang', 'Delete allocation')"/></button>
+                       </xsl:if>
+            </xsl:if>
+               </div>
+       </xsl:if>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/app_data.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/app_data.xsl      
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/app_data.xsl      
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,2 @@
+<xsl:template name="dummy">
+</xsl:template>


Property changes on: 
branches/stavangerkommune/bookingfrontend/templates/fjell/app_data.xsl
___________________________________________________________________
Added: svn:executable
   + *

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/application_new.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/application_new.xsl   
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/application_new.xsl   
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,248 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <div id="content">
+
+       <h3><xsl:value-of select="php:function('lang', 'New 
application')"/></h3>
+       <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+       <form action="" method="POST" id='application_form'>
+               <xsl:if test="config/application_new_application">
+               <p style="width: 750px;">
+                       <xsl:value-of 
select="config/application_new_application"/>
+               </p>            
+               </xsl:if>
+
+               <dl class="form-2col">
+                       <div class="heading">1. <xsl:value-of 
select="php:function('lang', 'Why?')" /></div>
+                       <dt>
+                               <label for="field_activity"><xsl:value-of 
select="php:function('lang', 'Activity')" /></label>
+                               <xsl:if test="config/application_activities">
+                               <p>
+                                       <xsl:value-of 
select="config/application_activities"/>
+                               </p>            
+                               </xsl:if>
+                       </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="../application/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', 'Information about the event')" /></label>
+                               <xsl:if test="config/application_description">
+                               <p>
+                                       <xsl:value-of 
select="config/application_description"/>
+                               </p>            
+                               </xsl:if>
+                       </dt>
+                       <dd>
+                <input id="field_description" class="full-width" size="72" 
name="description" type="text">
+                    <xsl:attribute name="value"><xsl:value-of 
select="application/description"/></xsl:attribute>
+                </input>
+                               <!--<textarea id="field_description" 
class="full-width" name="description"><xsl:value-of 
select="application/description"/></textarea>-->
+                       </dd>
+            <dt>
+                <xsl:if test="config/application_equipment">
+                    <p>
+                        <xsl:value-of select="config/application_equipment"/>
+                    </p>
+                </xsl:if>
+            </dt>
+            <dd>
+                <textarea id="field_equipment" class="full-width" 
name="equipment"><xsl:value-of select="application/equipment"/></textarea>
+            </dd>
+               </dl>
+               <dl class="form-col">
+                       <div class="heading">2. <xsl:value-of 
select="php:function('lang', 'How many?')" /></div>
+                       <xsl:if test="config/application_howmany">
+                       <p>
+                               <xsl:value-of 
select="config/application_howmany"/>
+                       </p>            
+                       </xsl:if>
+                       <dt><label for="field_activity"><xsl:value-of 
select="php:function('lang', 'Estimated number of participants')" 
/></label></dt>
+                       <dd>
+                               <table id="agegroup">
+                                       <tr><th/><th><xsl:value-of 
select="php:function('lang', 'Male')" /></th>
+                                           <th><xsl:value-of 
select="php:function('lang', 'Female')" /></th></tr>
+                                       <xsl:for-each select="agegroups">
+                                               <xsl:variable 
name="id"><xsl:value-of select="id"/></xsl:variable>
+                                               <tr>
+                                                       <th><xsl:value-of 
select="name"/></th>
+                                                       <td>
+                                                               <input 
type="text">
+                                                                       
<xsl:attribute name="name">male[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                       
<xsl:attribute name="value"><xsl:value-of 
select="../application/agegroups/male[../agegroup_id = $id]"/></xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                                       <td>
+                                                               <input 
type="text">
+                                                                       
<xsl:attribute name="name">female[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                       
<xsl:attribute name="value"><xsl:value-of 
select="../application/agegroups/female[../agegroup_id = $id]"/></xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                               </tr>
+                                       </xsl:for-each>
+                               </table>
+                       </dd>
+               </dl>
+               <div class="clr"/>
+               <dl class="form-col">
+                       <div class="heading">3. <xsl:value-of 
select="php:function('lang', 'Where?')" /></div>
+                       <xsl:if test="config/application_where">
+                               <p>
+                                       <xsl:value-of 
select="config/application_where"/>
+                               </p>            
+                       </xsl:if>
+                       <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="application/building_id"/></xsl:attribute>
+                                       </input>
+                                       <input id="field_building_name" 
name="building_name" type="text">
+                                               <xsl:attribute 
name="value"><xsl:value-of select="application/building_name"/></xsl:attribute>
+                                       </input>
+                                       <div id="building_container"/>
+                               </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">
+                       <div class="heading">4. <xsl:value-of 
select="php:function('lang', 'When?')" /></div>
+                       <xsl:if test="config/application_when">
+                               <p>
+                                       <xsl:value-of 
select="config/application_when"/>
+                               </p>            
+                       </xsl:if>
+                       <div id="dates-container">
+                               <xsl:for-each select="application/dates">
+                                       <div class="date-container">
+                                               <a href="#" 
class="close-btn">-</a>
+                                               <dt><label 
for="field_from"><xsl:value-of select="php:function('lang', 'From')" 
/></label></dt>
+                                               <dd class="datetime-picker">
+                                                       <input id="field_from" 
name="from_[]" type="text">
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="from_"/></xsl:attribute>
+                                                       </input>
+                                               </dd>
+                                               <dt><label 
for="field_to"><xsl:value-of select="php:function('lang', 'To')" /></label></dt>
+                                               <dd class="datetime-picker">
+                                                       <input id="field_to" 
name="to_[]" type="text">
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="to_"/></xsl:attribute>
+                                                       </input>
+                                               </dd>
+                                       </div>
+                               </xsl:for-each>
+                       </div>
+
+
+                       <dt><a href="#" id="add-date-link"><xsl:value-of 
select="php:function('lang', 'Add another date')" /></a></dt>
+               </dl>
+               <dl class="form-col">
+                       <div class="heading">5. <xsl:value-of 
select="php:function('lang', 'Who?')" /></div>
+                       <xsl:if test="config/application_who">
+                               <p>
+                                       <xsl:value-of 
select="config/application_who"/>
+                               </p>            
+                       </xsl:if>
+                       <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Target audience')" /></label></dt>
+                       <dd>
+                               <div id="audience_container">&nbsp;</div>
+                       </dd>
+               </dl>
+               <div class="clr"/>
+               <dl class="form-col">
+                       <div class="heading"><br />6. <xsl:value-of 
select="php:function('lang', 'Contact information')" /></div>
+                       <xsl:if test="config/application_contact_information">
+                               <p>
+                                       <xsl:value-of 
select="config/application_contact_information"/>
+                               </p>            
+                       </xsl:if>
+                       <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="application/contact_name"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><label for="field_contact_email"><xsl:value-of 
select="php:function('lang', 'E-mail address')" /></label></dt>
+                       <dd>
+                               <input id="field_contact_email" 
name="contact_email" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="application/contact_email"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><label for="field_contact_email2"><xsl:value-of 
select="php:function('lang', 'Confirm e-mail address')" /></label></dt>
+                       <dd>
+                               <input id="field_contact_email2" 
name="contact_email2" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="application/contact_email2"/></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="application/contact_phone"/></xsl:attribute>
+                               </input>
+                       </dd>
+               </dl>
+               <dl class="form-col">
+                       <div class="heading">7. <xsl:value-of 
select="php:function('lang', 'responsible applicant')" /> / <xsl:value-of 
select="php:function('lang', 'invoice information')" /></div>
+                       <xsl:if test="config/application_responsible_applicant">
+                               <p>
+                                       <xsl:value-of 
select="config/application_responsible_applicant"/>
+                               </p>            
+                       </xsl:if>
+                       <xsl:copy-of 
select="phpgw:booking_customer_identifier(application, '')"/>
+                       <br />
+                       <xsl:if test="config/application_invoice_information">
+                               <p>
+                                       <xsl:value-of 
select="config/application_invoice_information"/>
+                               </p>            
+                       </xsl:if>
+               </dl>
+               <dl class="form-col">
+                       <div class="heading"><br />8. <xsl:value-of 
select="php:function('lang', 'Terms and conditions')" /></div>
+                       <xsl:if test="config/application_terms">
+                               <p>
+                                       <xsl:value-of 
select="config/application_terms"/>
+                               </p>            
+                       </xsl:if>
+                       <br />
+                       <div id='regulation_documents'>&nbsp;</div>
+                       <br />
+                       <xsl:if test="config/application_terms2">
+                               <p>
+                                       <xsl:value-of 
select="config/application_terms2"/>
+                               </p>            
+                       </xsl:if>
+               </dl>
+               <div class="form-buttons">
+                       <input type="submit">
+                               <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="application/cancel_link"/></xsl:attribute>
+                               <xsl:value-of select="php:function('lang', 
'Cancel')" />
+                       </a>
+                       <p style="width: 750px; margin-top: 10px;">Trykker du 
<strong>SEND</strong>-knappen får du opp en rød melding øverst om noen 
opplysninger mangler, er alt OK kommer det opp en grønn melding. Det blir sendt 
en bekreftelse til din e-post, og en lenke hvor du kan gå inn og se status og 
legge til ekstra opplysninger i saken.<br /><br />
+                               Trykker du <strong>Avbryt</strong> blir 
søknaden ikke sendt eller lagret, og du går tilbake til kalenderen.</p>
+               </div>
+       </form>
+       </div>
+       <script type="text/javascript">
+               YAHOO.booking.initialDocumentSelection = <xsl:value-of 
select="application/accepted_documents_json"/>;
+               YAHOO.booking.initialAcceptAllTerms = false;
+               YAHOO.booking.initialSelection = <xsl:value-of 
select="application/resources_json"/>;
+               YAHOO.booking.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.')"/>;
+       </script>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_cancel.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_cancel.xsl    
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_cancel.xsl    
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,174 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'Cancel 
bookings')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+       <dl class="form">
+       <dd><xsl:value-of select="php:function('lang', 'Booking Cancel 
Information')"/></dd>
+       <dd><xsl:value-of select="php:function('lang', 'Booking Cancel 
Information2')"/></dd>
+       </dl>
+    <div class="clr"/>
+    <form action="" method="POST">
+               <input type="hidden" name="application_id" 
value="{booking/application_id}"/>
+        <input type="hidden" name="group_id" value="{booking/group_id}" />
+        <input type="hidden" name="building_id" value="{booking/building_id}" 
/>
+        <input type="hidden" name="season_id" value="{booking/season_id}" />
+        <input type="hidden" name="from_" value="{booking/from_}" />
+        <input type="hidden" name="to_" value="{booking/to_}" />
+
+        <dl class="form-col">
+            <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Building')" /></label></dt>
+            <dd>
+                <div>
+                        <xsl:value-of select="booking/building_name"/>
+                </div>
+            </dd>
+            <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')" /></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="booking/from_"/>
+                </div>
+            </dd>
+            <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')"/></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="booking/to_"/>
+                </div>
+            </dd>
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Recurring allocation cancelation')" 
/></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="outseason" 
id="outseason">
+                                               <xsl:if test="outseason='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Out season')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="recurring" 
id="recurring">
+                                               <xsl:if test="recurring='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Cancel until')" />
+                               </label>
+                       </dd>
+                       <dd class="date-picker">
+                               <input id="field_repeat_until" 
name="repeat_until" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="repeat_until"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><xsl:value-of select="php:function('lang', 
'Interval')" /></dt>
+                       <dd>
+                               <xsl:value-of select="../field_interval" />
+                               <select id="field_interval" 
name="field_interval">
+                                       <option value="1">
+                                               <xsl:if test="interval=1">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '1 week')" />
+                                       </option>
+                                       <option value="2">
+                                               <xsl:if test="interval=2">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '2 weeks')" />
+                                       </option>
+                                       <option value="3">
+                                               <xsl:if test="interval=3">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '3 weeks')" />
+                                       </option>
+                                       <option value="4">
+                                               <xsl:if test="interval=4">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '4 weeks')" />
+                                       </option>
+                               </select>
+                       </dd>
+        </dl>
+        <dl class="form-col">
+            <dt><label for="field_group"><xsl:value-of 
select="php:function('lang', 'Group')"/></label></dt>
+            <dd>
+                        <xsl:value-of select="booking/group_name"/>
+            </dd>
+            <dt><label for="field_season"><xsl:value-of 
select="php:function('lang', 'Season')"/></label></dt>
+            <dd>
+                        <xsl:value-of select="booking/season_name"/>
+            </dd>
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Cancel allocation also')" /></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" 
name="delete_booking" id="delete_booking">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                                       <xsl:attribute 
name="disabled">disabled</xsl:attribute>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Cancel bookings')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" 
name="delete_allocation" id="delete_allocation">
+                                               <xsl:if 
test="delete_allocation='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Cancel allocations')" />
+                               </label>
+                       </dd>
+        </dl>
+               <div style='clear:left; padding:0; margin:0'/>
+
+        <dl class="form-col">
+               <dt><label for="field_message"><xsl:value-of 
select="php:function('lang', 'Message')" /></label></dt>
+               <dd class="yui-skin-sam">
+               <textarea id="field-message" name="message" 
type="text"><xsl:value-of select="system_message/message"/></textarea>
+               </dd>
+        </dl>
+
+        <div class="form-buttons">
+            <input type="submit">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Cancel booking')"/></xsl:attribute>
+                       </input>
+            <a class="cancel">
+                <xsl:attribute name="href"><xsl:value-of 
select="booking/cancel_link"/></xsl:attribute>
+                <xsl:value-of select="php:function('lang', 'Cancel')"/>
+            </a>
+        </div>
+    </form>
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.season_id = '<xsl:value-of select="booking/season_id"/>';
+        YAHOO.booking.group_id = '<xsl:value-of select="booking/group_id"/>';
+        <![CDATA[
+        var descEdit = new YAHOO.widget.SimpleEditor('field-message', {
+            height: '150px',
+            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>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete.xsl    
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete.xsl    
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,174 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'Delete 
Booking')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+       <dl class="form">
+       <dd>
+            <xsl:value-of select="php:function('lang', 'Booking Delete 
Information')"/>
+            <xsl:if test="user_can_delete_allocations != 0">
+                <xsl:value-of select="php:function('lang', 'Booking Delete 
Information3')"/>
+            </xsl:if>
+        </dd>
+       <dd><xsl:value-of select="php:function('lang', 'Booking Delete 
Information2')"/></dd>
+       </dl>
+    <div class="clr"/>
+    <form action="" method="POST">
+               <input type="hidden" name="application_id" 
value="{booking/application_id}"/>
+        <input type="hidden" name="group_id" value="{booking/group_id}" />
+        <input type="hidden" name="building_id" value="{booking/building_id}" 
/>
+        <input type="hidden" name="season_id" value="{booking/season_id}" />
+        <input type="hidden" name="from_" value="{booking/from_}" />
+        <input type="hidden" name="to_" value="{booking/to_}" />
+
+        <dl class="form-col">
+            <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Building')" /></label></dt>
+            <dd>
+                <div>
+                        <xsl:value-of select="booking/building_name"/>
+                </div>
+            </dd>
+            <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')" /></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="booking/from_"/>
+                </div>
+            </dd>
+            <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')"/></label></dt>
+            <dd>
+                <div>
+                    <xsl:value-of select="booking/to_"/>
+                </div>
+            </dd>
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Recurring allocation deletion')" /></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="outseason" 
id="outseason">
+                                               <xsl:if test="outseason='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Out season')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="recurring" 
id="recurring">
+                                               <xsl:if test="recurring='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Delete until')" />
+                               </label>
+                       </dd>
+                       <dd class="date-picker">
+                               <input id="field_repeat_until" 
name="repeat_until" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="repeat_until"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><xsl:value-of select="php:function('lang', 
'Interval')" /></dt>
+                       <dd>
+                               <xsl:value-of select="../field_interval" />
+                               <select id="field_interval" 
name="field_interval">
+                                       <option value="1">
+                                               <xsl:if test="interval=1">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '1 week')" />
+                                       </option>
+                                       <option value="2">
+                                               <xsl:if test="interval=2">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '2 weeks')" />
+                                       </option>
+                                       <option value="3">
+                                               <xsl:if test="interval=3">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '3 weeks')" />
+                                       </option>
+                                       <option value="4">
+                                               <xsl:if test="interval=4">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '4 weeks')" />
+                                       </option>
+                               </select>
+                       </dd>
+        </dl>
+        <dl class="form-col">
+            <dt><label for="field_group"><xsl:value-of 
select="php:function('lang', 'Group')"/></label></dt>
+            <dd>
+                        <xsl:value-of select="booking/group_name"/>
+            </dd>
+            <dt><label for="field_season"><xsl:value-of 
select="php:function('lang', 'Season')"/></label></dt>
+            <dd>
+                        <xsl:value-of select="booking/season_name"/>
+            </dd>
+                       <xsl:if test="user_can_delete_allocations != 0">        
                                        
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Delete allocation also')" /></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" 
name="delete_allocation" id="delete_allocation">
+                                               <xsl:if 
test="delete_allocation='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Delete allocations')" />
+                               </label>
+                       </dd>
+                       </xsl:if>
+        </dl>
+       
+               <div style='clear:left; padding:0; margin:0'/>
+
+        <dl class="form-col">
+               <dt><label for="field_message"><xsl:value-of 
select="php:function('lang', 'Message')" /></label></dt>
+               <dd class="yui-skin-sam">
+               <textarea id="field-message" name="message" 
type="text"><xsl:value-of select="system_message/message"/></textarea>
+               </dd>
+        </dl>
+        <div class="form-buttons">
+            <input type="submit">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Delete')"/></xsl:attribute>
+                       </input>
+            <a class="cancel">
+                <xsl:attribute name="href"><xsl:value-of 
select="booking/cancel_link"/></xsl:attribute>
+                <xsl:value-of select="php:function('lang', 'Cancel')"/>
+            </a>
+        </div>
+    </form>
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.season_id = '<xsl:value-of select="booking/season_id"/>';
+        YAHOO.booking.group_id = '<xsl:value-of select="booking/group_id"/>';
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="booking/resources_json"/>;
+               var lang = <xsl:value-of select="php:function('js_lang', 
'Resource Type')"/>;
+        <![CDATA[
+        var descEdit = new YAHOO.widget.SimpleEditor('field-message', {
+            height: '150px',
+            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>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete_preview.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete_preview.xsl
                                (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_delete_preview.xsl
        2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,104 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'Delete 
Booking')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+       <!-- <xsl:call-template name="xmlsource"/> -->
+
+           <form action="" method="POST">
+                       <input type="hidden" name="booking_id" 
value="{booking/id}"/>
+                       <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+                       <input type="hidden" name="building_id" 
value="{booking/building_id}"/>
+                       <input type="hidden" name="building_name" 
value="{booking/building_name}"/>
+                       <input type="hidden" name="organization_id" 
value="{booking/organization_id}"/>
+                       <input type="hidden" name="organization_name" 
value="{booking/organization_name}"/>
+                       <input type="hidden" name="allocation_id" 
value="{booking/allocation_id}"/>
+                       <input type="hidden" name="noallocation" 
value="{noallocation}" />
+                       <input type="hidden" name="delete_allocation" 
value="{delete_allocation}" />
+                       <input type="hidden" name="step" value="{step}" />
+                       <input type="hidden" name="from_" value="{from_date}" />
+                       <input type="hidden" name="to_" value="{to_date}" />
+                       <input type="hidden" name="cost" value="{booking/cost}" 
/>
+                       <input type="hidden" name="repeat_until" 
value="{repeat_until}" />
+                       <input type="hidden" name="field_interval" 
value="{interval}" />
+                       <input type="hidden" name="recurring" 
value="{recurring}" />
+                       <input type="hidden" name="outseason" 
value="{outseason}" />
+                       <input type="hidden" name="message" value="{message}" />
+                       <input type="hidden" name="activity_id" 
value="{booking/activity_id}" />
+                       <input type="hidden" name="group_id" 
value="{booking/group_id}" />
+                       <xsl:for-each select="booking/audience">
+                               <input type="hidden" name="audience[]" 
value="{.}" />
+                       </xsl:for-each>
+                       <xsl:for-each select="booking/resources">
+                               <input type="hidden" name="resources[]" 
value="{.}" />
+                       </xsl:for-each>
+                       <xsl:for-each select="booking/agegroups">
+                               <xsl:variable name="id"><xsl:value-of 
select="id"/></xsl:variable>
+                               <input type="hidden">
+                                       <xsl:attribute 
name="name">male[<xsl:value-of select="agegroup_id"/>]</xsl:attribute>
+                                       <xsl:attribute 
name="value"><xsl:value-of select="male"/></xsl:attribute>
+                               </input>
+                               <input type="hidden">
+                                       <xsl:attribute 
name="name">female[<xsl:value-of select="agegroup_id"/>]</xsl:attribute>
+                                       <xsl:attribute 
name="value"><xsl:value-of select="female"/></xsl:attribute>
+                               </input>
+                       </xsl:for-each>
+
+
+                       <h4><xsl:value-of select="php:function('lang', 
'Bookings to be deleted')" /></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="valid_dates">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+            <xsl:if test="delete_allocation='on'">
+                       <h4><xsl:value-of select="php:function('lang', 
'Allocations that is going to be deleted')" /></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="allocation_delete">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+
+                       <h4><xsl:value-of select="php:function('lang', 
'Allocations with still existing bookings (%1)', 
count(allocation_keep[from_]))" /></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="allocation_keep">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+            </xsl:if>
+               <div class="form-buttons">
+                   <input type="submit" name="delete">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Delete')" /></xsl:attribute>
+                               </input>
+                   <a class="cancel">
+                       <xsl:attribute name="href"><xsl:value-of 
select="season/wtemplate_link"/></xsl:attribute>
+                       <xsl:value-of select="php:function('lang', 'Cancel')" />
+                   </a>
+               </div>
+               </form>
+
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.season_id = '<xsl:value-of select="booking/season_id"/>';
+        YAHOO.booking.group_id = '<xsl:value-of select="booking/group_id"/>';
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="booking/resources_json"/>;
+               var lang = <xsl:value-of select="php:function('js_lang', 
'Resource Type')"/>;
+    </script>
+</xsl:template>
+<xsl:template name="xmlsource">
+  NODE <xsl:value-of select="name()"/>
+  ATTR { <xsl:for-each select="attribute::*"><xsl:value-of 
select="name()"/>=<xsl:value-of select="."/> </xsl:for-each> }
+  CHILDREN: { <xsl:for-each select="*"><xsl:call-template 
name="xmlsource"/></xsl:for-each> }
+  TEXT <xsl:value-of select="text()"/>
+  <br/>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit.xsl  
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit.xsl  
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,175 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 
'Booking')"/> #<xsl:value-of select="booking/id"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+    <form action="" method="POST">
+               <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+               <input type="hidden" name="allocation_id" 
value="{booking/allocation_id}"/>
+               <input type="hidden" name="step" value="1"/>
+        <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="booking/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="booking/active=0">
+                               <xsl:attribute 
name="selected">checked</xsl:attribute>
+                       </xsl:if>
+                        <xsl:value-of select="php:function('lang', 
'Inactive')"/>
+                    </option>
+                </select>
+            </dd>
+                       <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="../booking/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_building"><xsl:value-of 
select="php:function('lang', 'Building')"/></label></dt>
+            <dd>
+                <input id="field_building_id" name="building_id" type="hidden" 
value="{booking/building_id}"/>
+                   <xsl:value-of select="booking/building_name"/>
+            </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 style="margin-top: 100px;"><label 
for="field_org"><xsl:value-of select="php:function('lang', 
'Organization')"/></label></dt>
+            <dd>
+                   <xsl:value-of select="booking/organization_name"/>
+            </dd>
+            <dt><label for="field_group"><xsl:value-of 
select="php:function('lang', 'Group')"/></label></dt>
+            <dd>
+                               <select name="group_id">
+                                               <option value=""><xsl:value-of 
select="php:function('lang', 'Select a group')"/></option>
+                                       <xsl:for-each select="groups">
+                                               <option value="{id}">
+                                                       <xsl:if 
test="../booking/group_id = id">
+                                                               <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                                       </xsl:if>
+                                                       <xsl:value-of 
select="name"/>
+                                               </option>
+                                       </xsl:for-each>
+                               </select>
+            </dd>
+            <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="booking/from_"/></xsl:attribute>
+                </input>
+                </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="booking/to_"/></xsl:attribute>
+                </input>
+                </div>
+            </dd>
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Recurring booking')" /></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="outseason" 
id="outseason">
+                                               <xsl:if test="outseason='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Out season')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="recurring" 
id="recurring">
+                                               <xsl:if test="recurring='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Repeat until')" />
+                               </label>
+                       </dd>
+                       <dd class="date-picker">
+                               <input id="field_repeat_until" 
name="repeat_until" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="repeat_until"/></xsl:attribute>
+                               </input>
+                       </dd>
+        </dl>
+               <dl class="form-col">
+                       <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Target audience')" /></label></dt>
+                       <dd>
+                               <ul>
+                                       <xsl:for-each select="audience">
+                                               <li>
+                                                       <input type="checkbox" 
name="audience[]">
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="id"/></xsl:attribute>
+                                                               <xsl:if 
test="../booking/audience=id">
+                                                                       
<xsl:attribute name="checked">checked</xsl:attribute>
+                                                               </xsl:if>
+                                                       </input>
+                                                       <label><xsl:value-of 
select="name"/></label>
+                                               </li>
+                                       </xsl:for-each>
+                               </ul>
+                       </dd>
+                       <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Number of participants')" /></label></dt>
+                       <dd>
+                               <table id="agegroup">
+                                       <tr><th/><th><xsl:value-of 
select="php:function('lang', 'Male')" /></th>
+                                           <th><xsl:value-of 
select="php:function('lang', 'Female')" /></th></tr>
+                                       <xsl:for-each select="agegroups">
+                                               <xsl:variable 
name="id"><xsl:value-of select="id"/></xsl:variable>
+                                               <tr>
+                                                       <th><xsl:value-of 
select="name"/></th>
+                                                       <td>
+                                                               <input 
type="text">
+                                                                       
<xsl:attribute name="name">male[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                       
<xsl:attribute name="value"><xsl:value-of 
select="../booking/agegroups/male[../agegroup_id = $id]"/></xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                                       <td>
+                                                               <input 
type="text">
+                                                                       
<xsl:attribute name="name">female[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                       
<xsl:attribute name="value"><xsl:value-of 
select="../booking/agegroups/female[../agegroup_id = $id]"/></xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                               </tr>
+                                       </xsl:for-each>
+                               </table>
+                       </dd>
+               </dl>
+        <div class="form-buttons">
+            <input type="submit">
+                       <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Save')"/></xsl:attribute>
+                       </input>
+            <a class="cancel" href="" onclick="history.back(1); return false">
+                <xsl:value-of select="php:function('lang', 'Go back')"/>
+            </a>
+        </div>
+    </form>
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="booking/resources_json"/>;
+    </script>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit_preview.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit_preview.xsl
                          (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_edit_preview.xsl
  2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,54 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+               <dl class="form">
+                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Mass update')"/></dt>
+               </dl>
+               <xsl:call-template name="msgbox"/>
+               <xsl:call-template name="yui_booking_i18n"/>
+               <xsl:choose>
+                       <xsl:when test="step = 2">
+                               <p>
+                                       <xsl:value-of 
select="php:function('lang', '%1 bookings will be updated.', 
count(bookings/results))" />
+                               </p>
+                               <form action="" method="POST">
+                                       <input type="hidden" 
name="repeat_until" value="{repeat_until}"/>
+                                       <input type="hidden" name="recurring" 
value="{recurring}"/>
+                                       <input type="hidden" name="outseason" 
value="{outseason}"/>
+                                       <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+                                       <input type="hidden" name="step" 
value="{step}"/>
+                                       <input type="hidden" name="group_id" 
value="{group_id}"/>
+                                       <input type="hidden" name="activity_id" 
value="{activity_id}"/>
+                                       <input type="hidden" name="building_id" 
value="{booking/building_id}"/>
+                                       <select size="10">
+                                               <xsl:for-each 
select="bookings/results">
+                                                       <option>
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="id"/></xsl:attribute>
+                                                               <xsl:value-of 
select="from_"/> - <xsl:value-of select="to_"/>
+                                                       </option>
+                                               </xsl:for-each>
+                                       </select>
+                                       <xsl:if test="count(bookings/results) 
&gt; 0">
+                                               <div class="form-buttons">
+                                                       <input type="submit" 
style="float: right;">
+                                                       <xsl:attribute 
name="value"><xsl:value-of select="php:function('lang', 
'Update')"/></xsl:attribute>
+                                                       </input>
+                                               </div>
+                                       </xsl:if>
+                               </form>
+                       </xsl:when>
+                       <xsl:when test="step = 3">
+                               <p>
+                                       <xsl:value-of 
select="php:function('lang', '%1 bookings were updated.', update_count)" />
+                                       <div class="form-buttons">
+                                       <a class="cancel">
+                               <xsl:attribute name="href"><xsl:value-of 
select="booking/cancel_link"/></xsl:attribute>
+                               <xsl:value-of select="php:function('lang', 'Go 
back to calendar')" />
+                           </a>
+                                       </div>
+                               </p>
+
+                       </xsl:when>
+               </xsl:choose>
+    </div>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_info.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/booking_info.xsl  
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/booking_info.xsl  
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,31 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <div class="close"><a onclick="YAHOO.booking.closeOverlay(); return 
false" href=""><xsl:value-of select="php:function('lang', 'Close')"/></a></div>
+       <h3><xsl:value-of select="php:function('lang', 'Booking')"/> 
#<xsl:value-of select="booking/id"/></h3>
+       <dl>
+               <dt><xsl:value-of select="php:function('lang', 
'Activity')"/></dt>
+               <dd><xsl:value-of select="booking/activity_name"/></dd>
+               <dt><xsl:value-of select="php:function('lang', 'Where')"/></dt>
+               <dd>
+                       <a href="{booking/building_link}"><xsl:value-of 
select="booking/resources[position()=1]/building_name"/></a>
+                       (<xsl:value-of select="booking/resource_info"/>)
+               </dd>
+               <dt><xsl:value-of select="php:function('lang', 'When')"/></dt>
+               <dd><xsl:value-of select="booking/when"/></dd>
+               <dt><xsl:value-of select="php:function('lang', 'Who')"/></dt>
+               <dd>
+                       <a href="{booking/org_link}"><xsl:value-of 
select="booking/group/organization_name"/></a>:
+                       <a href="{booking/group_link}"><xsl:value-of 
select="booking/group/name"/></a>
+               </dd>
+       </dl>
+       <xsl:if test="booking/edit_link">
+               <div class="actions">
+                       <button 
onclick="location.href='{booking/edit_link}'"><xsl:value-of 
select="php:function('lang', 'Edit booking')"/></button>
+                       <xsl:if test="user_can_delete_bookings != 1">
+                               <button 
onclick="location.href='{booking/cancel_link}'"><xsl:value-of 
select="php:function('lang', 'Cancel booking')"/></button>
+                       </xsl:if>
+                       <xsl:if test="user_can_delete_bookings != 0">
+                               <button 
onclick="location.href='{booking/cancel_link}'"><xsl:value-of 
select="php:function('lang', 'Delete booking')"/></button>
+                       </xsl:if>
+               </div>
+       </xsl:if>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_massupdate.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_massupdate.xsl
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_massupdate.xsl
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,140 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+               <dl class="form">
+                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Mass update')"/></dt>
+               </dl>
+               <xsl:call-template name="msgbox"/>
+               <xsl:call-template name="yui_booking_i18n"/>
+               <xsl:choose>
+                       <xsl:when test="step = 2">
+                               <p>
+                                       <xsl:value-of 
select="php:function('lang', '%1 bookings will be updated.', 
count(booking/results))" />
+                               </p>
+                               <form action="" method="POST">
+                                       <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+                                       <input type="hidden" name="step" 
value="{step}"/>
+                                       <input type="hidden" name="group_id" 
value="{group_id}"/>
+                                       <input type="hidden" name="activity_id" 
value="{activity_id}"/>
+                                       <select size="10">
+                                               <xsl:for-each 
select="booking/results">
+                                                       <option>
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="id"/></xsl:attribute>
+                                                               <xsl:value-of 
select="from_"/> - <xsl:value-of select="to_"/>
+                                                       </option>
+                                               </xsl:for-each>
+                                       </select>
+                                       <xsl:if test="count(booking/results) 
&gt; 0">
+                                               <div class="form-buttons">
+                                                       <input type="submit" 
style="float: right;">
+                                                       <xsl:attribute 
name="value"><xsl:value-of select="php:function('lang', 
'Update')"/></xsl:attribute>
+                                                       </input>
+                                               </div>
+                                       </xsl:if>
+                               </form>
+                       </xsl:when>
+                       <xsl:when test="step = 3">
+                               <p>
+                                       <xsl:value-of 
select="php:function('lang', '%1 bookings were updated.', update_count)" />
+                               </p>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <p>
+                                       <xsl:value-of 
select="php:function('lang', 'You are now about to update all bookings from 
this date and to the end of the season.')" />&nbsp;
+                                       <xsl:value-of 
select="php:function('lang', 'Please update the data and click the 
Next-button.')" />&nbsp;
+                                       <xsl:value-of 
select="php:function('lang', 'When clicking the Next-button you will be 
presented to a list of bookings that will be updated.')" />
+                               </p>
+                               <form action="" method="POST">
+                                       <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+                                       <input type="hidden" 
name="allocation_id" value="{booking/allocation_id}"/>
+                                       <input type="hidden" name="step" 
value="1"/>
+                                       <dl class="form-col">
+                                               <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="../booking/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_group"><xsl:value-of select="php:function('lang', 
'Group')"/></label></dt>
+                                               <dd>
+                                                       <select name="group_id">
+                                                                       <option 
value=""><xsl:value-of select="php:function('lang', 'Select a 
group')"/></option>
+                                                               <xsl:for-each 
select="groups">
+                                                                       <option 
value="{id}">
+                                                                               
<xsl:if test="../booking/group_id = id">
+                                                                               
        <xsl:attribute name="selected">selected</xsl:attribute>
+                                                                               
</xsl:if>
+                                                                               
<xsl:value-of select="name"/>
+                                                                       
</option>
+                                                               </xsl:for-each>
+                                                       </select>
+                                               </dd>
+                                       </dl>
+                                       <dl class="form-col">
+                                               <dt><label 
for="field_from"><xsl:value-of select="php:function('lang', 'Target audience')" 
/></label></dt>
+                                               <dd>
+                                                       <ul>
+                                                               <xsl:for-each 
select="audience">
+                                                                       <li>
+                                                                               
<input type="checkbox" name="audience[]">
+                                                                               
        <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
+                                                                               
        <xsl:if test="../booking/audience=id">
+                                                                               
                <xsl:attribute name="checked">checked</xsl:attribute>
+                                                                               
        </xsl:if>
+                                                                               
</input>
+                                                                               
<label><xsl:value-of select="name"/></label>
+                                                                       </li>
+                                                               </xsl:for-each>
+                                                       </ul>
+                                               </dd>
+                                       </dl>
+                                       <dl class="form-col">
+                                               <dt><label 
for="field_from"><xsl:value-of select="php:function('lang', 'Number of 
participants')" /></label></dt>
+                                               <dd>
+                                                       <table id="agegroup">
+                                                               
<tr><th/><th><xsl:value-of select="php:function('lang', 'Male')" /></th>
+                                                                       
<th><xsl:value-of select="php:function('lang', 'Female')" /></th></tr>
+                                                               <xsl:for-each 
select="agegroups">
+                                                                       
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+                                                                       <tr>
+                                                                               
<th><xsl:value-of select="name"/></th>
+                                                                               
<td>
+                                                                               
        <input type="text">
+                                                                               
                <xsl:attribute name="name">male[<xsl:value-of 
select="id"/>]</xsl:attribute>
+                                                                               
                <xsl:attribute name="value"><xsl:value-of 
select="../booking/agegroups/male[../agegroup_id = $id]"/></xsl:attribute>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="text">
+                                                                               
                <xsl:attribute name="name">female[<xsl:value-of 
select="id"/>]</xsl:attribute>
+                                                                               
                <xsl:attribute name="value"><xsl:value-of 
select="../booking/agegroups/female[../agegroup_id = $id]"/></xsl:attribute>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:for-each>
+                                                       </table>
+                                               </dd>
+
+                                       </dl>
+                                       <div class="form-buttons">
+                                               <input type="submit" 
style="float: right;">
+                                               <xsl:attribute 
name="value"><xsl:value-of select="php:function('lang', 
'Next')"/></xsl:attribute>
+                                               </input>
+                                       </div>
+                               </form>
+                       </xsl:otherwise>
+               </xsl:choose>
+    </div>
+    <script type="text/javascript">
+               YAHOO.util.Dom.setStyle(('header'), 'display', 'none');
+    </script>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new.xsl   
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new.xsl   
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,195 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'New 
Booking')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+    <form action="" method="POST">
+               <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+               <input type="hidden" name="allocation_id" 
value="{booking/allocation_id}"/>
+        <dl class="form-col">
+                       <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="../booking/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_building"><xsl:value-of 
select="php:function('lang', 'Building')"/></label></dt>
+            <dd>
+                <input id="field_building_id" name="building_id" type="hidden" 
value="{booking/building_id}"/>
+                               <xsl:value-of select="booking/building_name"/>
+            </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 style="margin-top: 54px;"><label for="field_org"><xsl:value-of 
select="php:function('lang', 'Organization')"/></label></dt>
+            <dd>
+                   <xsl:value-of select="booking/organization_name"/>
+            </dd>
+            <dt><label for="field_group"><xsl:value-of 
select="php:function('lang', 'Group')"/></label></dt>
+            <dd>
+                               <select name="group_id">
+                                               <option value=""><xsl:value-of 
select="php:function('lang', 'Select a group')"/></option>
+                                       <xsl:for-each select="groups">
+                                               <option value="{id}">
+                                                       <xsl:if 
test="../booking/group_id = id">
+                                                               <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                                       </xsl:if>
+                                                       <xsl:value-of 
select="name"/>
+                                               </option>
+                                       </xsl:for-each>
+                               </select>
+            </dd>
+            <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')"/></label></dt>
+            <dd>
+                <div class="time-picker">
+                               <xsl:value-of select="date_from"/>
+                <input id="field_from" name="from_" type="text">
+                    <xsl:attribute name="value"><xsl:value-of 
select="booking/from_"/></xsl:attribute>
+                </input>
+                </div>
+            </dd>
+            <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')"/></label></dt>
+                       <dd>
+                       </dd>
+            <dd>
+                <div class="time-picker">
+                               <xsl:value-of select="date_to"/>
+                <input id="field_to" name="to_" type="text">
+                    <xsl:attribute name="value"><xsl:value-of 
select="booking/to_"/></xsl:attribute>
+                </input>
+                </div>
+                       </dd>
+
+
+                       <dt><label for="field_repeat_until"><xsl:value-of 
select="php:function('lang', 'Recurring booking')" /></label></dt>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="outseason" 
id="outseason">
+                                               <xsl:if test="outseason='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Out season')" />
+                               </label>
+                       </dd>
+                       <dd>
+                               <label>
+                                       <input type="checkbox" name="recurring" 
id="recurring">
+                                               <xsl:if test="recurring='on'">
+                                                       <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                               </xsl:if>
+                                       </input>
+                                       <xsl:value-of 
select="php:function('lang', 'Repeat until')" />
+                               </label>
+                       </dd>
+                       <dd class="date-picker">
+                               <input id="field_repeat_until" 
name="repeat_until" type="text">
+                                       <xsl:attribute 
name="value"><xsl:value-of select="repeat_until"/></xsl:attribute>
+                               </input>
+                       </dd>
+                       <dt><xsl:value-of select="php:function('lang', 
'Interval')" /></dt>
+                       <dd>
+                               <xsl:value-of select="../field_interval" />
+                               <select id="field_interval" 
name="field_interval">
+                                       <option value="1">
+                                               <xsl:if test="interval=1">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '1 week')" />
+                                       </option>
+                                       <option value="2">
+                                               <xsl:if test="interval=2">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '2 weeks')" />
+                                       </option>
+                                       <option value="3">
+                                               <xsl:if test="interval=3">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '3 weeks')" />
+                                       </option>
+                                       <option value="4">
+                                               <xsl:if test="interval=4">
+                                                       <xsl:attribute 
name="selected">selected</xsl:attribute>
+                                               </xsl:if>
+                                               <xsl:value-of 
select="php:function('lang', '4 weeks')" />
+                                       </option>
+                               </select>
+                       </dd>
+
+
+        </dl>
+               <dl class="form-col">
+                       <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Target audience')" /></label></dt>
+                       <dd>
+                               <ul>
+                                       <xsl:for-each select="audience">
+                                               <li>
+                                                       <input type="checkbox" 
name="audience[]">
+                                                               <xsl:attribute 
name="value"><xsl:value-of select="id"/></xsl:attribute>
+                                                               <xsl:if 
test="../booking/audience=id">
+                                                                       
<xsl:attribute name="checked">checked</xsl:attribute>
+                                                               </xsl:if>
+                                                       </input>
+                                                       <label><xsl:value-of 
select="name"/></label>
+                                               </li>
+                                       </xsl:for-each>
+                               </ul>
+                       </dd>
+                       <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Number of participants')" /></label></dt>
+                       <dd>
+                               <table id="agegroup">
+                                       <tr><th/><th><xsl:value-of 
select="php:function('lang', 'Male')" /></th>
+                                           <th><xsl:value-of 
select="php:function('lang', 'Female')" /></th></tr>
+                                       <xsl:for-each select="agegroups">
+                                               <xsl:variable 
name="id"><xsl:value-of select="id"/></xsl:variable>
+                                               <tr>
+                                                       <th><xsl:value-of 
select="name"/></th>
+                                                       <td>
+                                                               <input 
type="text">
+                                                                       
<xsl:attribute name="name">male[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                       
<xsl:attribute name="value"><xsl:value-of 
select="../booking/agegroups/male[../agegroup_id = $id]"/></xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                                       <td>
+                                                               <input 
type="text">
+                                                                       
<xsl:attribute name="name">female[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                       
<xsl:attribute name="value"><xsl:value-of 
select="../booking/agegroups/female[../agegroup_id = $id]"/></xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                               </tr>
+                                       </xsl:for-each>
+                               </table>
+                       </dd>
+               </dl>
+        <div class="form-buttons">
+            <input type="submit">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Create')"/></xsl:attribute>
+                       </input>
+            <a class="cancel" href="" onclick="history.back(1); return false">
+                <xsl:value-of select="php:function('lang', 'Go back')"/>
+            </a>
+        </div>
+    </form>
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="booking/resources_json"/>;
+    </script>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new_preview.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new_preview.xsl
                           (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/booking_new_preview.xsl
   2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,83 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading"><xsl:value-of select="php:function('lang', 'New 
Booking')"/></dt>
+       </dl>
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+       <!-- <xsl:call-template name="xmlsource"/> -->
+
+           <form action="" method="POST">
+                       <input type="hidden" name="season_id" 
value="{booking/season_id}"/>
+                       <input type="hidden" name="field_building_id" 
value="{booking/building_id}"/>
+                       <input type="hidden" name="allocation_id" 
value="{booking/allocation_id}"/>
+                       <input type="hidden" name="step" value="{step}" />
+                       <input type="hidden" name="from_" value="{from_date}" />
+                       <input type="hidden" name="to_" value="{to_date}" />
+                       <input type="hidden" name="repeat_until" 
value="{repeat_until}" />
+                       <input type="hidden" name="field_interval" 
value="{interval}" />
+                       <input type="hidden" name="recurring" 
value="{recurring}" />
+                       <input type="hidden" name="outseason" 
value="{outseason}" />
+                       <input type="hidden" name="activity_id" 
value="{booking/activity_id}" />
+                       <input type="hidden" name="group_id" 
value="{booking/group_id}" />
+                       <xsl:for-each select="booking/audience">
+                               <input type="hidden" name="audience[]" 
value="{.}" />
+                       </xsl:for-each>
+                       <xsl:for-each select="booking/resources">
+                               <input type="hidden" name="resources[]" 
value="{.}" />
+                       </xsl:for-each>
+                       <xsl:for-each select="booking/agegroups">
+                               <xsl:variable name="id"><xsl:value-of 
select="id"/></xsl:variable>
+                               <input type="hidden">
+                                       <xsl:attribute 
name="name">male[<xsl:value-of select="agegroup_id"/>]</xsl:attribute>
+                                       <xsl:attribute 
name="value"><xsl:value-of select="male"/></xsl:attribute>
+                               </input>
+                               <input type="hidden">
+                                       <xsl:attribute 
name="name">female[<xsl:value-of select="agegroup_id"/>]</xsl:attribute>
+                                       <xsl:attribute 
name="value"><xsl:value-of select="female"/></xsl:attribute>
+                               </input>
+                       </xsl:for-each>
+
+
+                       <h4><xsl:value-of select="php:function('lang', 
'Bookings that can be created')" /></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="valid_dates">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+
+                       <h4><xsl:value-of select="php:function('lang', 
'Allocations colliding with existing bookings or allocations (%1)', 
count(result/invalid[from_]))" /></h4>
+                       <div class="allocation-list">
+                               <xsl:for-each select="invalid_dates">
+                                       <li>
+                                               <xsl:value-of select="from_"/> 
- <xsl:value-of select="to_"/>
+                                       </li>
+                               </xsl:for-each>
+                       </div>
+               <div class="form-buttons">
+                   <input type="submit" name="create">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Create')" /></xsl:attribute>
+                               </input>
+                   <a class="cancel">
+                       <xsl:attribute name="href"><xsl:value-of 
select="season/wtemplate_link"/></xsl:attribute>
+                       <xsl:value-of select="php:function('lang', 'Cancel')" />
+                   </a>
+               </div>
+               </form>
+
+    </div>
+    <script type="text/javascript">
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="booking/resources_json"/>;
+    </script>
+</xsl:template>
+<xsl:template name="xmlsource">
+  NODE <xsl:value-of select="name()"/>
+  ATTR { <xsl:for-each select="attribute::*"><xsl:value-of 
select="name()"/>=<xsl:value-of select="."/> </xsl:for-each> }
+  CHILDREN: { <xsl:for-each select="*"><xsl:call-template 
name="xmlsource"/></xsl:for-each> }
+  TEXT <xsl:value-of select="text()"/>
+  <br/>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/building.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/building.xsl      
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/building.xsl      
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,170 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       
+       <div id="content">
+               <ul class="pathway">
+                       <li><a 
href="index.php?menuaction=bookingfrontend.uisearch.index"><xsl:value-of 
select="php:function('lang', 'Home')" /></a></li>
+                       <li>
+                               <a href="{resource/building_link}">
+                                       <xsl:value-of select="building/name"/>
+                               </a>
+                       </li>
+               </ul>
+
+               <xsl:for-each select="building">        
+
+                       <xsl:if test="deactivate_calendar=0">
+                       </xsl:if>
+
+                       <dl class="proplist-col main">
+                               <div>
+                               <button 
onclick="window.location.href='{schedule_link}'"><xsl:value-of 
select="php:function('lang', 'Building schedule')" /></button>
+                                       <xsl:if test="not(calendar_text and 
normalize-space(calendar_text))">
+                                       - Søk ledig tid/informasjon om hva som 
skjer
+                                       </xsl:if>
+                                       <xsl:if test="calendar_text and 
normalize-space(calendar_text)">
+                                       - <xsl:value-of select="calendar_text" 
disable-output-escaping="yes"/>
+                                       </xsl:if>
+                               </div>
+                               <xsl:if test="extra_kalendar=1">
+                               <div>
+                               <button 
onclick="window.location.href='{extra_link}'"><xsl:value-of 
select="php:function('lang', 'Public schedule')" /></button>
+                               </div>
+                               </xsl:if>
+                               <xsl:if test="normalize-space(description)">
+                                       <dl class="proplist description">
+                                               <dt><xsl:value-of 
select="php:function('lang', 'Description')" /></dt>
+                                               <dd><xsl:value-of 
select="description" disable-output-escaping="yes"/></dd>
+                                       </dl>
+                               </xsl:if>
+                               
+                               <xsl:if test="normalize-space(homepage) or 
normalize-space(email) or normalize-space(phone) or normalize-space(street)">
+                                       <h3><xsl:value-of 
select="php:function('lang', 'Contact information')" /></h3>
+                       <xsl:if test="deactivate_sendmessage=0">
+
+                       <div>
+                       <button 
onclick="window.location.href='{message_link}'"><xsl:value-of 
select="php:function('lang', 'Send message')" /></button>
+-                              Meldig til saksbehandler for bygg
+                       </div>
+                       </xsl:if>
+
+
+                                       <dl class="contactinfo">
+                                               <xsl:if test="homepage and 
normalize-space(homepage)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Homepage')" /></dt>
+                                                       <dd><a 
href="{homepage}"><xsl:value-of select="homepage"/></a></dd>
+                                               </xsl:if>
+                                       
+                                               <xsl:if test="email and 
normalize-space(email)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Email')" /></dt>
+                                                       <dd><a 
href='mailto:{email}'><xsl:value-of select="email"/></a></dd>
+                                               </xsl:if>
+                                       
+                                               <xsl:if test="phone and 
normalize-space(phone)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Telephone')" /></dt>
+                                                       <dd><xsl:value-of 
select="phone"/></dd>
+                                               </xsl:if>
+                                       
+                                               <xsl:if test="street and 
normalize-space(street)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Address')" /></dt>
+                                                       <dd>
+                                                               <xsl:value-of 
select="street"/><br/>
+                                                               <xsl:value-of 
select="zip_code"/><span>&nbsp; </span>
+                                                               <xsl:value-of 
select="city"/><br/>
+                                                               <xsl:value-of 
select="district"/>
+                                                       </dd>
+                                               </xsl:if>
+
+                                               <xsl:if test="tilsyn_name and 
normalize-space(tilsyn_name)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Tilsynsvakt name')" /></dt>
+                                                       <dd><xsl:value-of 
select="tilsyn_name"/></dd>
+                                               </xsl:if>
+
+                                               <xsl:if test="tilsyn_email and 
normalize-space(tilsyn_email)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Tilsynsvakt email')" /></dt>
+                                                       <dd><a 
href='mailto:{tilsyn_email}'><xsl:value-of select="tilsyn_email"/></a></dd>
+                                               </xsl:if>
+                                       
+                                               <xsl:if test="tilsyn_phone and 
normalize-space(tilsyn_phone)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Tilsynsvakt telephone')" /></dt>
+                                                       <dd><xsl:value-of 
select="tilsyn_phone"/></dd>
+                                               </xsl:if>
+
+                                               <xsl:if test="tilsyn_name and 
normalize-space(tilsyn_name2)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Tilsynsvakt name')" /></dt>
+                                                       <dd><xsl:value-of 
select="tilsyn_name2"/></dd>
+                                               </xsl:if>
+
+                                               <xsl:if test="tilsyn_email and 
normalize-space(tilsyn_email2)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Tilsynsvakt email')" /></dt>
+                                                       <dd><a 
href='mailto:{tilsyn_email2}'><xsl:value-of select="tilsyn_email2"/></a></dd>
+                                               </xsl:if>
+                                       
+                                               <xsl:if test="tilsyn_phone and 
normalize-space(tilsyn_phone2)">
+                                                       <dt><xsl:value-of 
select="php:function('lang', 'Tilsynsvakt telephone')" /></dt>
+                                                       <dd><xsl:value-of 
select="tilsyn_phone2"/></dd>
+                                               </xsl:if>
+
+
+                                       </dl>
+                               </xsl:if>
+                               
+                               <h3><xsl:value-of select="php:function('lang', 
'Bookable resources')" /></h3>
+                               <div id="resources_container"/>
+
+                               <h3><xsl:value-of select="php:function('lang', 
'Building users')" /></h3>
+                               <div id="building_users_container"/>
+
+                               <h3><xsl:value-of select="php:function('lang', 
'Documents')" /></h3>
+                               <div id="documents_container"/>
+                       </dl>
+                       <dl class="proplist-col images">        
+                               <div id="images_container"></div>
+                               <xsl:if test="street and 
normalize-space(street)">
+                                       <iframe width="500" height="300" 
frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
id="googlemapiframe" src=""></iframe><br />
+                                       <small><a href="" id="googlemaplink" 
style="color:#0000FF;text-align:left" target="_new">Vis større kart</a></small>
+                               </xsl:if>
+                       </dl>
+                       
+                       <script type="text/javascript">
+                               var building_id = <xsl:value-of select="id"/>;
+                               var lang = <xsl:value-of 
select="php:function('js_lang', 'Name', 'category', 'Activity', 'Resource 
Type')"/>;
+                               var address = '<xsl:value-of select="street"/>, 
<xsl:value-of select="zip_code"/>, <xsl:value-of select="city"/>';
+                               <![CDATA[
+                               
+                               YAHOO.util.Event.addListener(window, "load", 
function() {
+                               var url = 
'index.php?menuaction=bookingfrontend.uiresource.index_json&sort=sort&filter_building_id='
 + building_id + '&phpgw_return_as=json&';
+                               var colDefs = [{key: 'name', label: 
lang['Name'], formatter: YAHOO.booking.formatLink}, {key: 'type', label: 
lang['Resource Type']}, {key: 'activity_name', label: lang['Activity']}];
+                               
YAHOO.booking.inlineTableHelper('resources_container', url, colDefs);
+                               });
+                               
+                               var url = 
'index.php?menuaction=bookingfrontend.uidocument_building.index&sort=name&no_images=1&filter_owner_id='
 + building_id + '&phpgw_return_as=json&';
+                               var colDefs = [{key: 'description', label: 
lang['Name'], formatter: YAHOO.booking.formatLink}];
+                               
YAHOO.booking.inlineTableHelper('documents_container', url, colDefs);
+                               
+                               var url = 
'index.php?menuaction=bookingfrontend.uidocument_building.index_images&sort=name&filter_owner_id='
 + building_id + '&phpgw_return_as=json&';
+                               YAHOO.booking.inlineImages('images_container', 
url);
+                               
+                               var url = 
'index.php?menuaction=bookingfrontend.uiorganization.building_users&sort=name&building_id='
 + building_id + '&phpgw_return_as=json&';
+                               var colDefs = [{key: 'name', label: 
lang['Name'], formatter: YAHOO.booking.formatLink}, {key: 'activity_name', 
label: lang['Activity']}];
+                               
YAHOO.booking.inlineTableHelper('building_users_container', url, colDefs);
+
+                               
+                               // Load Google map
+                               YAHOO.util.Event.addListener(window, "load", 
function() {
+                                       var iurl = 
'https://maps.google.com/maps?f=q&source=s_q&hl=no&output=embed&geocode=&q=' + 
address;
+                                       var linkurl = 
'https://maps.google.com/maps?f=q&source=s_q&hl=no&geocode=&q=' + address;
+                                       if( iurl.length > 0 ) {
+                                               var iframe = 
YAHOO.util.Dom.get( 'googlemapiframe' );
+                                               iframe.src = iurl;
+                                               var link = YAHOO.util.Dom.get( 
'googlemaplink' );
+                                               link.href = linkurl;
+                                       }
+                               });
+
+                               ]]>
+                       </script>
+               </xsl:for-each>
+       </div>
+</xsl:template>
+

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/building_schedule.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/building_schedule.xsl 
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/building_schedule.xsl 
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,61 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       <iframe id="yui-history-iframe" 
src="{webserver_url}/phpgwapi/js/yahoo/history/assets/blank.html" 
style="position:absolute;top:0; left:0;width:1px; 
height:1px;visibility:hidden;"></iframe>
+       <input id="yui-history-field" type="hidden"/>
+       
+       <div id="content">
+               <xsl:if test="backend != 'true'">
+                       <ul class="pathway">
+                               <li><a 
href="index.php?menuaction=bookingfrontend.uisearch.index"><xsl:value-of 
select="php:function('lang', 'Home')" /></a></li>
+                               <li>
+                                       <a>
+                                               <xsl:attribute 
name="href"><xsl:value-of select="building/building_link"/></xsl:attribute>
+                                               <xsl:value-of 
select="building/name"/>
+                                       </a>
+                               </li>
+                               <li><xsl:value-of select="php:function('lang', 
'Schedule')"/></li>
+                       </ul>
+
+                       <xsl:call-template name="msgbox"/>
+
+                       <xsl:if test="building/deactivate_application=0">
+                               <button 
onclick="YAHOO.booking.newApplicationForm();"><xsl:value-of 
select="php:function('lang', 'New booking application')" /></button>
+                               - Søk ledig tid
+                       </xsl:if>
+               </xsl:if>
+
+               <ul id="week-selector">
+                       <li><a href="#" onclick="YAHOO.booking.prevWeek(); 
return false"><xsl:value-of select="php:function('lang', 'Previous 
week')"/></a></li>
+                       <li id="cal_container"/>
+                       <li><a href="#" onclick="YAHOO.booking.nextWeek(); 
return false"><xsl:value-of select="php:function('lang', 'Next 
week')"/></a></li>
+               </ul>
+
+        <div id="schedule_container"/>
+    </div>
+
+<script type="text/javascript">
+YAHOO.util.Event.addListener(window, "load", function() {
+       YAHOO.booking.setupWeekPicker('cal_container');
+       YAHOO.booking.datasourceUrl = '<xsl:value-of 
select="building/datasource_url"/>';
+       YAHOO.booking.newApplicationUrl = '<xsl:value-of 
select="building/application_link"/>';
+       YAHOO.booking.endOfSeason = parseISO8601('<xsl:value-of 
select="building/endOfSeason"/>');
+
+    var handleHistoryNavigation = function (state) {
+               YAHOO.booking.date = parseISO8601(state);
+               YAHOO.booking.renderSchedule('schedule_container', 
YAHOO.booking.datasourceUrl, YAHOO.booking.date, 
YAHOO.booking.frontendScheduleColorFormatter, true);
+    };
+    
+    var initialRequest = YAHOO.util.History.getBookmarkedState("date") || 
'<xsl:value-of select="building/date"/>';
+    YAHOO.util.History.register("date", initialRequest, 
handleHistoryNavigation);
+    YAHOO.util.History.onReady(function() {
+               var state = YAHOO.util.History.getBookmarkedState("date") || 
initialRequest;
+               if(state)
+                       handleHistoryNavigation(state);
+    });
+       YAHOO.util.History.initialize("yui-history-field", 
"yui-history-iframe");
+});
+<xsl:if test="backend = 'true'">
+       YAHOO.util.Dom.setStyle(('header'), 'display', 'none');
+</xsl:if>
+</script>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/config.tpl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/config.tpl        
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/config.tpl        
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,118 @@
+<!-- BEGIN header -->
+<form method="POST" action="{action_url}">
+       <table border="0" align="center" width="85%">
+               <tr class="th">
+                       <td colspan="2">&nbsp;<b>{title}</b></td>
+               </tr>
+<!-- END header -->
+<!-- BEGIN body -->
+               <tr class="row_on">
+                       <td colspan="2">&nbsp;</td>
+               </tr>
+               <tr class="row_off">
+                       <td 
colspan="2">&nbsp;<b>{lang_bookingfrontend_settings}</b></td>
+               </tr>
+          <tr class="row_on">
+           <td>{lang_remote_authentication}:</td>
+           <td>
+            <select name="newsettings[authentication_method]">
+{hook_authentication}
+            </select>
+           </td>
+          </tr>
+               <tr class="row_on">
+                       <td>{lang_custom_login_url}:</td>
+                       <td><input name="newsettings[custom_login_url]" 
value="{value_custom_login_url}"></td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_custom_login_url_parameter}:</td>
+                       <td><input name="newsettings[login_parameter]" 
value="{value_login_parameter}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_login_header_key}:</td>
+                       <td><input name="newsettings[header_key]" 
value="{value_header_key}"></td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_login_header_regular_expression}:</td>
+                       <td><input 
name="newsettings[header_regular_expression]" 
value="{value_header_regular_expression}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_login_soap_client_location}:</td>
+                       <td><input name="newsettings[soap_location]" 
value="{value_soap_location}"></td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_login_soap_client_uri}:</td>
+                       <td><input name="newsettings[soap_uri]" 
value="{value_soap_uri}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_login_soap_client_proxy_host}:</td>
+                       <td><input name="newsettings[soap_proxy_host]" 
value="{value_soap_proxy_host}"></td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_login_soap_client_proxy_port}:</td>
+                       <td><input name="newsettings[soap_proxy_port]" 
value="{value_soap_proxy_port}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_login_soap_client_encoding}:</td>
+                       <td><input name="newsettings[soap_encoding]" 
value="{value_soap_encoding}"></td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_login_soap_client_login}:</td>
+                       <td><input name="newsettings[soap_login]" 
value="{value_soap_login}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_login_soap_client_password}:</td>
+                       <td><input type ="password" 
name="newsettings[soap_password]" value="{value_soap_password}"></td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_login_soap_client_wsdl}:</td>
+                       <td><input name="newsettings[soap_wsdl]" 
value="{value_soap_wsdl}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_Debug}:</td>
+                       <td>
+                               <select name="newsettings[debug]">
+                                       <option value="" 
{selected_debug_}>NO</option>
+                                       <option value="1" 
{selected_debug_1}>YES</option>
+                               </select>
+                       </td>
+               </tr>
+               <tr class="row_on">
+                       <td>{lang_google_tracker_id}:</td>
+                       <td><input name="newsettings[tracker_id]" 
value="{value_tracker_id}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_url_to_external_logout}:
+                       <br/> Redirect is computed if url ends with '='
+                       </td>
+                       <td><input name="newsettings[external_logout]" 
value="{value_external_logout}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_bookingfrontend_host}:
+                       <br/> Needed for the return from the external_logout
+                       </td>
+                       <td><input name="newsettings[bookingfrontend_host]" 
value="{value_bookingfrontend_host}"></td>
+               </tr>
+               <tr class="row_off">
+                       <td>{lang_customtemplate}:
+                       <br/> Custom template for frontend
+                       </td>
+                       <td><input name="newsettings[customtemplate]" 
value="{value_customtemplate}"/></td>
+               </tr>
+
+<!-- END body -->
+<!-- BEGIN footer -->
+               <tr class="th">
+                       <td colspan="2">
+&nbsp;
+                       </td>
+               </tr>
+               <tr>
+                       <td colspan="2" align="center">
+                               <input type="submit" name="submit" 
value="{lang_submit}">
+                               <input type="submit" name="cancel" 
value="{lang_cancel}">
+                       </td>
+               </tr>
+       </table>
+</form>
+<!-- END footer -->

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/event_delete.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/event_delete.xsl  
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/event_delete.xsl  
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,101 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+        <dl class="form">
+            <dt class="heading"><xsl:value-of select="php:function('lang', 
'Delete Event')"/></dt>
+        </dl>
+        <xsl:call-template name="msgbox"/>
+        <xsl:call-template name="yui_booking_i18n"/>
+        <dl class="form">
+            <xsl:if test="can_delete_events=1">
+                <dd><xsl:value-of select="php:function('lang', 'Event Delete 
Information')"/></dd>
+            </xsl:if>
+            <xsl:if test="can_delete_events=0">
+                <dd><xsl:value-of select="php:function('lang', 'Event Delete 
Information2')"/></dd>
+            </xsl:if>
+
+        </dl>
+        <div class="clr"/>
+        <form action="" method="POST">
+            <dl class="form-col">
+                <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Building')" /></label></dt>
+                <dd>
+                    <div>
+                        <xsl:value-of select="event/building_name"/>
+                    </div>
+                </dd>
+                <dt><label for="field_building"><xsl:value-of 
select="php:function('lang', 'Description')" /></label></dt>
+                <dd>
+                    <div>
+                        <xsl:value-of select="event/description"/>
+                    </div>
+                </dd>
+                <dt><label for="field_activity"><xsl:value-of 
select="php:function('lang', 'Activity')" /></label></dt>
+                <dd>
+                    <div>
+                        <xsl:for-each select="activities">
+                            <xsl:if test="../event/activity_id = id">
+                                <xsl:value-of select="name"/>
+                            </xsl:if>
+                        </xsl:for-each>
+                    </div>
+                </dd>
+                <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'From')" /></label></dt>
+                <dd>
+                    <div>
+                        <xsl:value-of select="event/from_"/>
+                    </div>
+                </dd>
+                <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')"/></label></dt>
+                <dd>
+                    <div>
+                        <xsl:value-of select="event/to_"/>
+                    </div>
+                </dd>
+            </dl>
+            <div style='clear:left; padding:0; margin:0'/>
+
+            <dl class="form-col">
+                <dt><label for="field_message"><xsl:value-of 
select="php:function('lang', 'Message')" /></label></dt>
+                <dd class="yui-skin-sam">
+                    <textarea id="field-message" name="message" 
type="text"><xsl:value-of select="system_message/message"/></textarea>
+                </dd>
+            </dl>
+            <div class="form-buttons">
+                <input type="submit">
+                    <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Delete')"/></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">
+        YAHOO.event.initialSelection = <xsl:value-of 
select="booking/resources_json"/>;
+        var lang = <xsl:value-of select="php:function('js_lang', 'Resource 
Type')"/>;
+        <![CDATA[
+        var descEdit = new YAHOO.widget.SimpleEditor('field-message', {
+            height: '150px',
+            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>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/event_edit.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/event_edit.xsl    
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/event_edit.xsl    
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,191 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+        <ul class="pathway">
+            <li><xsl:value-of select="php:function('lang', 'Edit Events')" 
/></li>
+            <li>#<xsl:value-of select="event/id"/></li>
+        </ul>
+        <xsl:call-template name="msgbox"/>
+        <xsl:call-template name="yui_booking_i18n"/>
+
+        <form action="" method="POST">
+            <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>
+                <div class="clr"/>
+                <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>
+
+                <div class="clr"/>
+
+                <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>
+            </dl>
+
+            <div class="clr"/>
+            <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>
+                </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>
+                    <xsl:value-of select="event/from_"/>
+                    <input name="org_from" type="hidden"><xsl:attribute 
name="value"><xsl:value-of select="event/from_"/></xsl:attribute></input>
+                    <div class="time-picker">
+                        <input id="field_from" name="from_" type="text">
+                            <xsl:attribute name="value"><xsl:value-of 
select="event/from_"/></xsl:attribute>
+                        </input>
+                    </div>
+                </dd>
+                <dt><label for="field_to"><xsl:value-of 
select="php:function('lang', 'To')" /></label></dt>
+                <dd>
+
+                    <xsl:value-of select="event/to_"/>
+                    <input name="org_to" type="hidden"><xsl:attribute 
name="value"><xsl:value-of select="event/to_"/></xsl:attribute></input>
+                    <div class="time-picker">
+                        <input id="field_to" name="to_" type="text">
+                            <xsl:attribute name="value"><xsl:value-of 
select="event/to_"/></xsl:attribute>
+                        </input>
+                    </div>
+                </dd>
+            </dl>
+            <dl class="form-col">
+                <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>
+                    <ul>
+                        <xsl:for-each select="audience">
+                            <li>
+                                <input type="checkbox" name="audience[]">
+                                    <xsl:attribute name="value"><xsl:value-of 
select="id"/></xsl:attribute>
+                                    <xsl:if test="../event/audience=id">
+                                        <xsl:attribute 
name="checked">checked</xsl:attribute>
+                                    </xsl:if>
+                                </input>
+                                <label><xsl:value-of select="name"/></label>
+                            </li>
+                        </xsl:for-each>
+                    </ul>
+                </dd>
+                <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Number of participants')" /></label></dt>
+                <dd>
+                    <table id="agegroup">
+                        <tr><th/><th><xsl:value-of 
select="php:function('lang', 'Male')" /></th>
+                            <th><xsl:value-of select="php:function('lang', 
'Female')" /></th></tr>
+                        <xsl:for-each select="agegroups">
+                            <xsl:variable name="id"><xsl:value-of 
select="id"/></xsl:variable>
+                            <tr>
+                                <th><xsl:value-of select="name"/></th>
+                                <td>
+                                    <input type="text">
+                                        <xsl:attribute 
name="name">male[<xsl:value-of select="id"/>]</xsl:attribute>
+                                        <xsl:attribute 
name="value"><xsl:value-of select="../event/agegroups/male[../agegroup_id = 
$id]"/></xsl:attribute>
+                                    </input>
+                                </td>
+                                <td>
+                                    <input type="text">
+                                        <xsl:attribute 
name="name">female[<xsl:value-of select="id"/>]</xsl:attribute>
+                                        <xsl:attribute 
name="value"><xsl:value-of select="../event/agegroups/female[../agegroup_id = 
$id]"/></xsl:attribute>
+                                    </input>
+                                </td>
+                            </tr>
+                        </xsl:for-each>
+                    </table>
+                </dd>
+            </dl>
+            <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" 
readonly="readonly">
+                        <xsl:attribute name="value"><xsl:value-of 
select="event/cost"/></xsl:attribute>
+                    </input>
+                </dd>
+            </dl>
+            <dl class="form-col">
+                <dt class="heading"><xsl:value-of select="php:function('lang', 
'Invoice information')" /></dt>
+                <xsl:copy-of select="phpgw:booking_customer_identifier(event, 
'')"/>
+            </dl>
+            <div class="clr"/>
+            <div class="form-buttons">
+                <input type="submit">
+                    <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Save')"/></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">
+        YAHOO.booking.initialSelection = <xsl:value-of 
select="event/resources_json"/>;
+        var lang = <xsl:value-of select="php:function('js_lang', 'Resource 
Type')"/>;
+    </script>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/event_info.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/event_info.xsl    
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/event_info.xsl    
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,50 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <div style="float: right"><a onclick="YAHOO.booking.closeOverlay(); 
return false" href=""><xsl:value-of select="php:function('lang', 
'Close')"/></a></div>
+       <h3><xsl:value-of select="php:function('lang', 'Event')"/> 
#<xsl:value-of select="event/id"/></h3>
+       <xsl:if test="event/is_public=1">
+               <div>
+                       <xsl:value-of select="event/description" 
disable-output-escaping="yes"/>
+               </div>
+       </xsl:if>
+       <dl>
+               <dt><xsl:value-of select="php:function('lang', 'Where')"/></dt>
+               <dd>
+                       <a href="{event/building_link}"><xsl:value-of 
select="event/resources[position()=1]/building_name"/></a>
+                       (<xsl:value-of select="event/resource_info"/>)
+               </dd>
+               <dt><xsl:value-of select="php:function('lang', 'When')"/></dt>
+               <dd><xsl:value-of select="event/when"/></dd>
+               <dt><xsl:value-of select="php:function('lang', 'Who')"/></dt>
+               <xsl:if test="event/is_public=1">
+                       <dd>
+                       <xsl:if test="orginfo">
+                               <a href="{orginfo/link}"><xsl:value-of 
select="orginfo/name"/></a><br />
+                       </xsl:if>
+                               <xsl:value-of select="event/contact_name"/><br 
/>
+                <xsl:if test="event/contact_email != ''">
+                    E-post: <xsl:value-of select="event/contact_email"/><br />
+                </xsl:if>
+                <xsl:if test="event/contact_phone != ''">
+                    Telefon: <xsl:value-of select="event/contact_phone"/>
+                </xsl:if>
+                       </dd>
+               </xsl:if>
+               <xsl:if test="event/is_public=0">
+                       <dd>
+                               <xsl:value-of select="php:function('lang', 
'Private event')"/>
+                       </dd>
+               </xsl:if>
+        <xsl:if test="event/edit_link">
+            <div class="actions">
+                <button 
onclick="location.href='{event/edit_link}'"><xsl:value-of 
select="php:function('lang', 'Edit event')"/></button>
+                <xsl:if test="user_can_delete_bookings != 1">
+                    <button 
onclick="location.href='{event/cancel_link}'"><xsl:value-of 
select="php:function('lang', 'Cancel event')"/></button>
+                </xsl:if>
+                <xsl:if test="user_can_delete_bookings != 0">
+                    <button 
onclick="location.href='{event/cancel_link}'"><xsl:value-of 
select="php:function('lang', 'Delete event')"/></button>
+                </xsl:if>
+            </div>
+        </xsl:if>
+
+       </dl>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/group.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/group.xsl         
                (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/group.xsl 
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,53 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       
+    <div id="content">
+        <ul class="pathway">
+                       <li><a 
href="index.php?menuaction=bookingfrontend.uisearch.index"><xsl:value-of 
select="php:function('lang', 'Home')" /></a></li>
+            <li><a href="{group/organization_link}"><xsl:value-of 
select="group/organization_name"/></a></li>
+            <li><xsl:value-of select="group/name"/></li>
+        </ul>
+
+               <xsl:if test="group/permission/write">
+                   <span class="loggedin">
+                               <button 
onclick="window.location.href='{edit_self_link}'"><xsl:value-of 
select="php:function('lang', 'edit')" /></button>
+                               </span>
+               </xsl:if>
+        <xsl:call-template name="msgbox"/>
+
+        <dl class="proplist">
+            <dt><xsl:value-of select="php:function('lang', 'Group')" /></dt>
+            <dd><xsl:value-of select="group/name"/></dd>
+
+            <dt><xsl:value-of select="php:function('lang', 'Organization')" 
/></dt>
+            <dd><xsl:value-of select="group/organization_name"/></dd>
+                       
+                       <xsl:if test="group/description and 
normalize-space(group/description)">
+                               <dt><xsl:value-of select="php:function('lang', 
'Description')" /></dt>
+                       <dd><xsl:value-of select="group/description" 
disable-output-escaping="yes"/></dd>
+                       </xsl:if>
+                       
+                       <xsl:for-each select="group/contacts">
+                               <xsl:if test="normalize-space(.)">
+                                       <h3><xsl:value-of 
select="php:function('lang', 'Contact Person')" /></h3>
+                                       
+                                       <xsl:if test="name and 
string-length(normalize-space(name)) &gt; 0">
+                                               <dt><xsl:value-of 
select="php:function('lang', 'Name')" /></dt>
+                                               <dd><xsl:value-of 
select="name"/></dd>
+                                       </xsl:if>
+                                       
+                                       <xsl:if test="phone and 
string-length(normalize-space(phone)) &gt; 0">
+                                               <dt><xsl:value-of 
select="php:function('lang', 'Phone')" /></dt>
+                                               <dd><xsl:value-of 
select="phone"/></dd>
+                                       </xsl:if>
+                                       
+                                       <xsl:if test="email and 
string-length(normalize-space(email)) &gt; 0">
+                                               <dt><xsl:value-of 
select="php:function('lang', 'Email')" /></dt>
+                                               <dd><xsl:value-of 
select="email"/></dd>
+                                       </xsl:if>
+                               </xsl:if>
+                       </xsl:for-each>
+
+        </dl>
+    </div>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/organization.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/organization.xsl  
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/organization.xsl  
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,95 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       
+       <div id="content">
+               <ul class="pathway">
+                       <li><a 
href="index.php?menuaction=bookingfrontend.uisearch.index"><xsl:value-of 
select="php:function('lang', 'Home')" /></a></li>
+                       <li>
+                               <a href="{resource/building_link}">
+                                       <xsl:value-of 
select="resource/building_name"/>
+                               </a>
+                       </li>
+                       <li>
+                <xsl:value-of select="organization/name"/>
+                       </li>
+               </ul>
+
+               <xsl:if test="organization/permission/write">
+                       <span class="loggedin">
+               <button 
onclick="window.location.href='{organization/edit_link}'"><xsl:value-of 
select="php:function('lang', 'edit')" /></button>
+                       </span>
+               </xsl:if>
+               
+               <xsl:if test="organization/description and 
normalize-space(organization/description)">
+                       <dl class="proplist description">
+                   <dt><xsl:value-of select="php:function('lang', 
'Description')" /></dt>
+                   <dd><xsl:value-of select="organization/description" 
disable-output-escaping="yes"/></dd>
+               </dl>
+               </xsl:if>
+
+        <h3><xsl:value-of select="php:function('lang', 'Contact information')" 
/></h3>
+        <dl class="proplist contactinfo">
+       
+                       <xsl:if test="organization/homepage and 
normalize-space(organization/homepage)">                
+                   <dt><xsl:value-of select="php:function('lang', 'Homepage')" 
/></dt>
+                   <dd>
+                       <a target="blank" 
href="{organization/homepage}"><xsl:value-of select="organization/homepage" 
/></a>
+                   </dd>
+                       </xsl:if>
+                       
+                       <xsl:if test="organization/email and 
normalize-space(organization/email)">
+                               <dt><xsl:value-of select="php:function('lang', 
'Email')" /></dt>
+                   <dd><a href="mailto:{organization/email}";><xsl:value-of 
select="organization/email"/></a></dd>
+                       </xsl:if>
+
+                       <xsl:if test="organization/phone and 
normalize-space(organization/phone)">
+                           <dt><xsl:value-of select="php:function('lang', 
'Phone')" /></dt>
+                   <dd><xsl:value-of select="organization/phone"/></dd>        
+                       </xsl:if>
+
+                       <xsl:if test="organization/street and 
normalize-space(organization/street)">
+                                               <dt><xsl:value-of 
select="php:function('lang', 'Address')" /></dt>
+                                               <dd>
+                                                       <xsl:value-of 
select="organization/street"/><br/>
+                                                       <xsl:value-of 
select="organization/zip_code"/><span>&nbsp; </span>
+                                                       <xsl:value-of 
select="organization/city"/><br/>
+                                                       <xsl:value-of 
select="organization/district"/>
+                                               </dd>
+                       </xsl:if>
+
+        </dl>
+
+        <h3><xsl:value-of select="php:function('lang', 'Groups')" /></h3>
+        <div id="groups_container"/>
+
+                 <h3><xsl:value-of select="php:function('lang', 'Used 
buildings')" /></h3>
+        <div id="buildings_used_by_container"/>
+    </div>
+
+       <script type="text/javascript">
+               var organization_id = <xsl:value-of select="organization/id"/>;
+               var lang = <xsl:value-of select="php:function('js_lang', 
'Name', 'Activity', 'Contact 1', 'Contact 2')"/>;
+       
+               <![CDATA[
+               YAHOO.util.Event.addListener(window, "load", function() {
+                       var url = 
'index.php?menuaction=bookingfrontend.uigroup.index&sort=name&filter_organization_id='
 + organization_id + '&phpgw_return_as=json&';
+                       var colDefs = [
+                               {key: 'name', label: lang['Name'], formatter: 
YAHOO.booking.formatLink}, 
+                               {key: 'link', 'hidden': true},
+                               {key: 'activity_name', label: lang['Activity']},
+                               {key: 'primary_contact_name', label: 
lang['Contact 1']},
+                               {key: 'secondary_contact_name', label: 
lang['Contact 2']}
+                       ];
+                       YAHOO.booking.inlineTableHelper('groups_container', 
url, colDefs);
+                       
+                       var url = 
'index.php?menuaction=bookingfrontend.uibuilding.find_buildings_used_by&sort=name&organization_id='
 + organization_id + '&phpgw_return_as=json&';
+                       var colDefs = [{key: 'name', label: lang['Name'], 
formatter: YAHOO.booking.formatLink}];
+                       
YAHOO.booking.inlineTableHelper('buildings_used_by_container', url, colDefs);
+               });
+               ]]>
+       </script>
+
+</xsl:template>
+
+
+

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/report_numbers.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/report_numbers.xsl    
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/report_numbers.xsl    
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,71 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+       <xsl:if test="step = 1">
+               <dl class="form">
+                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Report numbers')"/></dt>
+               </dl>
+               <p><strong><xsl:value-of select="php:function('lang', 'Please 
enter correct numbers for the event')"/>:</strong></p>
+
+               <table id="agegroup">
+                       <tr>
+                               <th><xsl:value-of select="php:function('lang', 
'Where')" />:</th>
+                               <td><xsl:value-of select="building/name" /></td>
+                       </tr>
+                       <tr>
+                               <th><xsl:value-of select="php:function('lang', 
'When')" />:</th>
+                               <td><xsl:value-of 
select="php:function('pretty_timestamp', event_object/from_)" /> - 
<xsl:value-of select="php:function('pretty_timestamp', event_object/to_)" 
/></td>
+                       </tr>
+                       <xsl:if test="event_object/group_name">
+                       <tr>
+                               <th><xsl:value-of select="php:function('lang', 
'Who')" />:</th>
+                               <td><xsl:value-of 
select="event_object/group_name" /></td>
+                       </tr>
+                       </xsl:if>
+               </table>
+
+               <form action="" method="POST">
+                       <dl class="form-col">
+                               <dt><label for="field_from"><xsl:value-of 
select="php:function('lang', 'Number of participants')" /></label></dt>
+                               <dd>
+                                       <table id="agegroup">
+                                               <tr><th/><th><xsl:value-of 
select="php:function('lang', 'Male')" /></th>
+                                                       <th><xsl:value-of 
select="php:function('lang', 'Female')" /></th></tr>
+                                               <xsl:for-each 
select="agegroups">
+                                                       <xsl:variable 
name="id"><xsl:value-of select="id"/></xsl:variable>
+                                                       <tr>
+                                                               
<th><xsl:value-of select="name"/></th>
+                                                               <td>
+                                                                       <input 
type="text">
+                                                                               
<xsl:attribute name="name">male[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                               
<xsl:attribute name="value"><xsl:value-of 
select="../event_object/agegroups/male[../agegroup_id = $id]"/></xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="text">
+                                                                               
<xsl:attribute name="name">female[<xsl:value-of select="id"/>]</xsl:attribute>
+                                                                               
<xsl:attribute name="value"><xsl:value-of 
select="../event_object/agegroups/female[../agegroup_id = 
$id]"/></xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                               </xsl:for-each>
+                                       </table>
+                               </dd>
+                       </dl>
+                       <div class="form-buttons">
+                               <input type="submit">
+                               <xsl:attribute name="value"><xsl:value-of 
select="php:function('lang', 'Save')"/></xsl:attribute>
+                               </input>
+                       </div>
+               </form>
+       </xsl:if>
+       <xsl:if test="step = 2">
+               <dl class="form">
+                       <dt class="heading"><xsl:value-of 
select="php:function('lang', 'Thank you')"/>!</dt>
+               </dl>
+               <p><dt class="heading"><xsl:value-of 
select="php:function('lang', 'The data was successfully updated')"/>!</dt></p>
+       </xsl:if>
+    </div>
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/resource.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/resource.xsl      
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/resource.xsl      
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,62 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       
+       <div id="content">
+               <ul class="pathway">
+                       <li><a 
href="index.php?menuaction=bookingfrontend.uisearch.index"><xsl:value-of 
select="php:function('lang', 'Home')" /></a></li>
+                       <li>
+                               <a href="{resource/building_link}">
+                                       <xsl:value-of 
select="resource/building_name"/>
+                               </a>
+                       </li>
+                       <li>
+                <xsl:value-of select="resource/name"/>
+                       </li>
+               </ul>
+
+               <div>
+               <button 
onclick="window.location.href='{resource/schedule_link}'"><xsl:value-of 
select="php:function('lang', 'Resource schedule')" /></button>
+-                              Søk ledig tid/informasjon om hva som skjer
+               </div>
+
+               <dl class="proplist-col main">
+                       
+                       <xsl:if test="resource/description and 
normalize-space(resource/description)">
+                               <dt><xsl:value-of select="php:function('lang', 
'Description')" /></dt>
+                               <dd><xsl:value-of disable-output-escaping="yes" 
select="resource/description"/></dd>
+                       </xsl:if>
+                       
+                       <xsl:if test="resource/activity_name and 
normalize-space(resource/activity_name)">
+                               <dt><xsl:value-of select="php:function('lang', 
'Activity')" /></dt>
+                               <dd><xsl:value-of 
select="resource/activity_name"/></dd>
+                       </xsl:if>
+                       
+                       <dt><xsl:value-of select="php:function('lang', 
'Resource Type')" /></dt>
+                       <dd><xsl:value-of select="php:function('lang', 
string(resource/type))"/></dd>
+                       
+                       <h3><xsl:value-of select="php:function('lang', 
'Documents')" /></h3>
+                       <div id="documents_container"/>
+               </dl>
+               <dl class="proplist-col images">        
+                       <div id="images_container">
+                       </div>
+               </dl>
+       </div>
+
+       <script type="text/javascript">
+               var resource_id = <xsl:value-of select="resource/id"/>;
+               var lang = <xsl:value-of select="php:function('js_lang', 
'Name', 'category', 'Activity')"/>;
+<![CDATA[
+       YAHOO.util.Event.addListener(window, "load", function() {
+
+       var url = 
'index.php?menuaction=bookingfrontend.uidocument_resource.index&sort=name&no_images=1&filter_owner_id='
 + resource_id + '&phpgw_return_as=json&';
+       var colDefs = [{key: 'name', label: lang['Name'], formatter: 
YAHOO.booking.formatLink}];
+       YAHOO.booking.inlineTableHelper('documents_container', url, colDefs);
+       
+       var url = 
'index.php?menuaction=bookingfrontend.uidocument_resource.index_images&sort=name&filter_owner_id='
 + resource_id + '&phpgw_return_as=json&';
+       YAHOO.booking.inlineImages('images_container', url);
+});
+]]>
+       </script>
+
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/resource_schedule.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/resource_schedule.xsl 
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/resource_schedule.xsl 
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,57 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+       <iframe id="yui-history-iframe" 
src="{webserver_url}/phpgwapi/js/yahoo/history/assets/blank.html" 
style="position:absolute;top:0; left:0;width:1px; 
height:1px;visibility:hidden;"></iframe>
+       <input id="yui-history-field" type="hidden"/>
+       
+       <div id="content">
+               <ul class="pathway">
+                       <li><a 
href="index.php?menuaction=bookingfrontend.uisearch.index"><xsl:value-of 
select="php:function('lang', 'Home')" /></a></li>
+                       <li>
+                               <a>
+                                       <xsl:attribute 
name="href"><xsl:value-of select="resource/building_link"/></xsl:attribute>
+                                       <xsl:value-of 
select="resource/building_name"/>
+                               </a>
+                       </li>
+                       <li>
+                               <a>
+                                       <xsl:attribute 
name="href"><xsl:value-of select="resource/resource_link"/></xsl:attribute>
+                                       <xsl:value-of select="resource/name"/>
+                               </a>
+                       </li>
+            <li><xsl:value-of select="php:function('lang', 'schedule')"/></li>
+               </ul>
+
+               <button 
onclick="window.location.href='{resource/application_link}'"><xsl:value-of 
select="php:function('lang', 'New booking application')" /></button>
+
+               <xsl:call-template name="msgbox"/>
+               <ul id="week-selector">
+                       <li><a href="#" onclick="YAHOO.booking.prevWeek(); 
return false"><xsl:value-of select="php:function('lang', 'Previous 
week')"/></a></li>
+                       <li id="cal_container"/>
+                       <li><a href="#" onclick="YAHOO.booking.nextWeek(); 
return false"><xsl:value-of select="php:function('lang', 'Next 
week')"/></a></li>
+               </ul>
+
+               <div id="schedule_container"/>
+       </div>
+
+<script type="text/javascript">
+YAHOO.util.Event.addListener(window, "load", function() {
+       YAHOO.booking.setupWeekPicker('cal_container');
+       YAHOO.booking.datasourceUrl = '<xsl:value-of 
select="resource/datasource_url"/>';
+       YAHOO.booking.newApplicationUrl = '<xsl:value-of 
select="resource/application_link"/>';
+       
+    var handleHistoryNavigation = function (state) {
+               YAHOO.booking.date = parseISO8601(state);
+               YAHOO.booking.renderSchedule('schedule_container', 
YAHOO.booking.datasourceUrl, YAHOO.booking.date, 
YAHOO.booking.frontendScheduleColorFormatter, false);
+    };
+    var initialRequest = YAHOO.util.History.getBookmarkedState("date") || 
'<xsl:value-of select="resource/date"/>';
+    YAHOO.util.History.register("date", initialRequest, 
handleHistoryNavigation);
+    YAHOO.util.History.onReady(function() {
+               var state = YAHOO.util.History.getBookmarkedState("date") || 
initialRequest;
+               if(state)
+                       handleHistoryNavigation(state);
+    });
+       YAHOO.util.History.initialize("yui-history-field", 
"yui-history-iframe");       
+});
+</script>
+
+</xsl:template>

Added: branches/stavangerkommune/bookingfrontend/templates/fjell/search.xsl
===================================================================
--- branches/stavangerkommune/bookingfrontend/templates/fjell/search.xsl        
                        (rev 0)
+++ branches/stavangerkommune/bookingfrontend/templates/fjell/search.xsl        
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,115 @@
+<xsl:template name="strip-tags" xmlns:php="http://php.net/xsl";>
+       <xsl:param name="text"/>
+       <xsl:choose>
+               <xsl:when test="contains($text, '&lt;')">
+                       <xsl:value-of select="substring-before($text, '&lt;')"/>
+                       <xsl:call-template name="strip-tags">
+                               <xsl:with-param name="text" select="concat(' ', 
substring-after($text, '&gt;'))"/>
+                       </xsl:call-template>
+               </xsl:when>
+               <xsl:otherwise>
+                       <xsl:value-of select="$text"/>
+               </xsl:otherwise>
+       </xsl:choose>
+</xsl:template>
+
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+       <xsl:call-template name="yui_booking_i18n"/>
+  <div id="content">
+    <form action="" method="GET" id="search">
+      <input type="hidden" name="menuaction" 
value="bookingfrontend.uisearch.index" />
+      <xsl:choose>
+        <xsl:when test="search and string-length(search/searchterm) &gt; 0">
+          <input id="search" type="text" name="searchterm" 
value="{search/searchterm}"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <input id="search" type="text" name="searchterm" value="Søk hall, 
klubb eller aktivitet" onclick="value=''" />
+        </xsl:otherwise>
+      </xsl:choose>
+      <xsl:text> </xsl:text><input type="submit" value="{php:function('lang', 
'Search')}"/>
+      <div class="hint">
+        F.eks. "<i>Bildøyhallen</i>", "<i>svømmehall</i>", "<i>idrett</i>" 
eller "<i>kor</i>".
+      </div>
+    </form>
+       
+       <xsl:if test="not(search)">     
+               <div id="cloud">
+               <div class="frontpagetext"><xsl:value-of 
select="frontpagetext"/></div>
+               
+               </div>
+               <div style="text-align:center;">
+                       <img alt="" >
+                               <xsl:attribute name="src"><xsl:value-of 
select="baseurl"/>/phpgwapi/templates/stavanger/images/newlayout/forsidebilde.jpg</xsl:attribute>
+                       </img>
+               </div>  
+
+       </xsl:if>
+       
+       <xsl:if test="search">  
+          <div id="result">
+             <h5>
+               <u><strong><xsl:value-of select="php:function('lang', 'Found %1 
results', search/results/total_records_sum)" /></strong></u>
+             </h5>
+             <br />
+             <br />
+             <xsl:if test="search/results/total_records_sum &gt; 0">
+               <ol id="result">
+                 <xsl:for-each select="search/results/results">
+                   <li>
+                     <div class="header">
+                       <a class="bui_single_view_link"><xsl:attribute 
name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of 
select="name"/></a>
+                       (<xsl:value-of select="php:function('lang', 
string(type))"/>)
+                     </div>
+                     <div class="details">
+                       <div>
+                         <dl>
+                           <dt><h4><xsl:value-of select="php:function('lang', 
'Description')" /></h4></dt>
+                           <dd class="description">
+                                                       <xsl:variable 
name="tag_stripped_description">
+                                                               
<xsl:call-template name="strip-tags">
+                                                                       
<xsl:with-param name="text" select="description"/>
+                                                               
</xsl:call-template>
+                                                       </xsl:variable>
+                                                       
+                             <xsl:choose>
+                               <xsl:when 
test="string-length($tag_stripped_description) &gt; 1">
+                                 <xsl:choose>
+                                   <xsl:when 
test="string-length($tag_stripped_description) &gt; 100">
+                                                                 <xsl:value-of 
select="substring($tag_stripped_description, 0, 97)"/>...
+                                   </xsl:when>
+                                   <xsl:otherwise>
+                                     <xsl:value-of 
select="$tag_stripped_description"/>
+                                   </xsl:otherwise>
+                                 </xsl:choose>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                 <xsl:value-of select="php:function('lang', 
'No description yet')" />
+                               </xsl:otherwise>
+                             </xsl:choose>
+                                               <div id="{img_container}"/>
+                                               <script type="text/javascript">
+                                               
YAHOO.util.Event.addListener(window, "load", function() {
+                                                       
YAHOO.booking.inlineImages('<xsl:value-of select="img_container"/>', 
'<xsl:value-of select="img_url"/>');
+                                               });
+                                               </script>
+
+                           </dd>
+                           <xsl:if test="string-length(homepage) &gt; 1">
+                             <dt><h4><xsl:value-of 
select="php:function('lang', 'Homepage')" /></h4></dt>
+                             <dd class="description">
+                               <a><xsl:attribute name="href"><xsl:value-of 
select="homepage"/></xsl:attribute><xsl:value-of select="homepage"/></a>
+                             </dd>
+                           </xsl:if>
+                         </dl>
+                       </div>
+                       <div class="clr"></div>
+                     </div>
+                   </li>
+
+                 </xsl:for-each>
+               </ol>
+             </xsl:if>
+           </div>
+       </xsl:if>
+  </div>
+</xsl:template>

Added: 
branches/stavangerkommune/bookingfrontend/templates/fjell/system_message.xsl
===================================================================
--- 
branches/stavangerkommune/bookingfrontend/templates/fjell/system_message.xsl    
                            (rev 0)
+++ 
branches/stavangerkommune/bookingfrontend/templates/fjell/system_message.xsl    
    2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,77 @@
+<xsl:template match="data" xmlns:php="http://php.net/xsl";>
+    <div id="content">
+
+       <dl class="form">
+       <dt class="heading">
+                       <xsl:if test="not(system_message/id)">
+                               <xsl:value-of select="php:function('lang', 'New 
System Message')" />
+                       </xsl:if>
+                       <xsl:if test="system_message/id">
+                               <xsl:value-of select="php:function('lang', 
'Edit System Message')" />
+                       </xsl:if>
+               </dt>
+       </dl>
+
+    <xsl:call-template name="msgbox"/>
+       <xsl:call-template name="yui_booking_i18n"/>
+
+       <form action="" method="POST">
+               <dl class="form-col">
+                       <dt><label for="field_title"><xsl:value-of 
select="php:function('lang', 'Title')" /></label></dt>
+                       <dd><input name="title" type="text" 
value="{system_message/title}" /></dd>
+
+                       <dt><label for="field_message"><xsl:value-of 
select="php:function('lang', 'Message')" /></label></dt>
+                       <dd class="yui-skin-sam">
+                       <textarea id="field-message" name="message" 
type="text"><xsl:value-of select="system_message/message"/></textarea>
+                       </dd>
+                       <dt><label for="field_name"><xsl:value-of 
select="php:function('lang', 'Name')" /></label></dt>
+                       <dd><input name="name" type="text" 
value="{system_message/name}" /></dd>
+                       <dt><label for="field_phone"><xsl:value-of 
select="php:function('lang', 'Phone')" /></label></dt>
+                       <dd><input name="phone" type="text" 
value="{system_message/phone}" /></dd>
+                       <dt><label for="field_email"><xsl:value-of 
select="php:function('lang', 'Email')" /></label></dt>
+                       <dd><input name="email" type="text" 
value="{system_message/email}" /></dd>
+
+                       <dt><label for="field_time"><xsl:value-of 
select="php:function('lang', 'Created')" /></label></dt>
+                       <dd>
+                           <input id="inputs" name="created" readonly="true" 
type="text">
+                           <xsl:attribute name="value"><xsl:value-of 
select="system_message/created"/></xsl:attribute>
+                       </input>
+                       </dd>
+               </dl>
+               
+               <div class="form-buttons">
+                       <xsl:if test="not(system_message/id)"><input 
type="submit" value="{php:function('lang', 'Save')}"/></xsl:if>
+                       <xsl:if test="system_message/id"><input type="submit" 
value="{php:function('lang', 'Save')}"/></xsl:if>
+                       <a class="cancel" href="{system_message/cancel_link}">
+                               <xsl:value-of select="php:function('lang', 
'Cancel')" />
+                       </a>
+               </div>
+       </form>
+</div>
+
+<script type="text/javascript">
+<![CDATA[
+var descEdit = new YAHOO.widget.SimpleEditor('field-message', {
+    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>
+

Added: 
branches/stavangerkommune/phpgwapi/templates/fjell/css/font-awesome.min.css
===================================================================
--- branches/stavangerkommune/phpgwapi/templates/fjell/css/font-awesome.min.css 
                        (rev 0)
+++ branches/stavangerkommune/phpgwapi/templates/fjell/css/font-awesome.min.css 
2014-06-24 06:39:56 UTC (rev 12021)
@@ -0,0 +1,4 @@
+/*!
+ *  Font Awesome 4.0.2 by @davegandy - http://fontawesome.io - @fontawesome
+ *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT 
License)

@@ Diff output truncated at 153600 characters. @@



reply via email to

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