fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7676]


From: Torstein
Subject: [Fmsystem-commits] [7676]
Date: Tue, 20 Sep 2011 10:40:32 +0000

Revision: 7676
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7676
Author:   vator
Date:     2011-09-20 10:40:32 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/controller/templates/base/example_normal_tabs.xsl

Modified: trunk/controller/templates/base/example_normal_tabs.xsl
===================================================================
--- trunk/controller/templates/base/example_normal_tabs.xsl     2011-09-20 
10:39:30 UTC (rev 7675)
+++ trunk/controller/templates/base/example_normal_tabs.xsl     2011-09-20 
10:40:32 UTC (rev 7676)
@@ -4,17 +4,8 @@
        <div class="yui-navset yui-navset-top" id="example_tabview">
                <xsl:value-of disable-output-escaping="yes" select="tabs" />
                <div class="yui-content">
-                       <div id="general">
-                               <h4><xsl:value-of select="php:function('lang', 
'Documents')" /></h4>
-                       <div id="documents_container"/>
-                               <a class='button'>
-                                       <xsl:attribute 
name="href"><xsl:value-of select="resource/add_document_link"/></xsl:attribute>
-                                       <xsl:if 
test="resource/permission/write">
-                                               <xsl:value-of 
select="php:function('lang', 'Add Document')" />
-                                       </xsl:if>
-                               </a>
-                               <h4><xsl:value-of select="php:function('lang', 
'Permissions')" /></h4>
-                               <div id="permissions_container"/>
+                       <div id="details">
+                               <xsl:call-template name="control" />
                        </div>
                        <div id="list">
                                <h4><xsl:value-of select="php:function('lang', 
'list')" /></h4>
@@ -31,3 +22,92 @@
        </script>
 </xsl:template>
 
+<xsl:template name="control" xmlns:php="http://php.net/xsl";>
+
+<xsl:call-template name="yui_booking_i18n"/>
+<div class="identifier-header">
+<h1><img src="{img_go_home}" /> 
+               <xsl:value-of select="php:function('lang', 'Control')" />
+</h1>
+</div>
+
+<div class="yui-content">
+               <div id="details">
+                       <form action="#" method="post">
+                               <input type="hidden" name="id" value = 
"{value_id}">
+                               </input>
+                               <dl class="proplist-col">
+                                       <dt>
+                                               <label 
for="title">Tittel</label>
+                                       </dt>
+                                       <dd>
+                                               <input type="text" name="title" 
id="title" value="" />
+                                       </dd>
+                                       <dt>
+                                               <label 
for="description">Beskrivelse</label>
+                                       </dt>
+                                       <dd>
+                                               <textarea cols="70" rows="5" 
name="description" id="description" value=""></textarea>
+                                       </dd>
+                                       <dt>
+                                               <label 
for="start_date">Startdato</label>
+                                       </dt>
+                                       <dd>
+                                               <xsl:value-of 
disable-output-escaping="yes" select="date"/>
+                                       </dd>
+                                       <dt>
+                                               <label 
for="end_date">Sluttdato</label>
+                                       </dt>
+                                       <dd>
+                                               <xsl:value-of 
disable-output-escaping="yes" select="date"/>
+                                       </dd>
+                                       <dt>
+                                               <label>Frekvenstype</label>
+                                       </dt>
+                                       <dd>
+                                               <select id="repeat_type" 
name="repeat_type">
+                                                       <option value="0">Ikke 
angitt</option>
+                                                       <option 
value="1">Daglig</option>
+                                                       <option 
value="2">Ukentlig</option>
+                                                       <option 
value="3">Månedlig pr dato</option>
+                                                       <option 
value="4">Månedlig pr dag</option>
+                                                       <option 
value="5">Årlig</option>
+                                               </select>
+                                       </dd>
+                                       <dt>
+                                               <label>Frekvens</label>
+                                       </dt>
+                                       <dd>
+                                               <input size="2" type="text" 
name="repeat_interval" value="" />
+                                       </dd>
+                                       <dt>
+                                               <label>Prosedyre</label>
+                                       </dt>
+                                       <dd>
+                                               <select id="procedure" 
name="procedure">
+                                                       <xsl:apply-templates 
select="procedure_options_array/options"/>
+                                               </select>
+                                       </dd>
+                               </dl>
+                               
+                               <div class="form-buttons">
+                                       <xsl:variable 
name="lang_save"><xsl:value-of select="php:function('lang', 'save')" 
/></xsl:variable>
+                                       <input type="submit" 
name="save_control" value="{$lang_save}" title = "{$lang_save}">
+                                       </input>
+                               </div>
+                               
+                       </form>
+                                               
+               </div>
+       </div>
+</xsl:template>
+       
+<xsl:template match="options">
+       <option value="{id}">
+               <xsl:if test="selected != 0">
+                       <xsl:attribute name="selected" value="selected" />
+               </xsl:if>
+               <xsl:value-of disable-output-escaping="yes" select="name"/>
+       </option>
+</xsl:template>
+




reply via email to

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