[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14138] fixing forms
From: |
Saul |
Subject: |
[Fmsystem-commits] [14138] fixing forms |
Date: |
Thu, 08 Oct 2015 00:34:14 +0000 |
Revision: 14138
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14138
Author: psaul
Date: 2015-10-08 00:34:14 +0000 (Thu, 08 Oct 2015)
Log Message:
-----------
fixing forms
Modified Paths:
--------------
branches/dev-syncromind/booking/templates/base/allocation_edit.xsl
Modified: branches/dev-syncromind/booking/templates/base/allocation_edit.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/allocation_edit.xsl
2015-10-08 00:33:50 UTC (rev 14137)
+++ branches/dev-syncromind/booking/templates/base/allocation_edit.xsl
2015-10-08 00:34:14 UTC (rev 14138)
@@ -1,143 +1,104 @@
<xsl:template match="data" xmlns:php="http://php.net/xsl">
- <!--div id="content"-->
-
- <!--ul class="pathway">
- <li><xsl:value-of select="php:function('lang', 'Allocations')" /></li>
- <li>#<xsl:value-of select="allocation/id"/></li>
- </ul-->
<xsl:call-template name="msgbox"/>
- <!--xsl:call-template name="yui_booking_i18n"/-->
-
- <form action="" method="POST" id='form' class="pure-form
pure-form-aligned" name="form">
+ <form action="" method="POST" id='form' class="pure-form
pure-form-aligned" name="form">
<input type="hidden" name="tab" value=""/>
- <div id="tab-content">
- <xsl:value-of disable-output-escaping="yes"
select="allocation/tabs"/>
- <div id="allocations_edit">
- <fieldset>
- <h1>
- #<xsl:value-of select="allocation/id"/>
- </h1>
- <div class="pure-control-group">
- <label>
- <h4><xsl:value-of select="php:function('lang',
'Application')"/></h4>
- </label>
- <xsl:if test="allocation/application_id!=''">
- <a
href="{allocation/application_link}">#<xsl:value-of
select="allocation/application_id"/></a>
- </xsl:if>
- </div>
- <div class="pure-control-group">
- <label for="field_building_name">
- <h4><xsl:value-of select="php:function('lang',
'Building')" /></h4>
- </label>
- <input id="field_building_id" name="building_id"
type="hidden">
- <xsl:attribute name="value"><xsl:value-of
select="allocation/building_id"/></xsl:attribute>
- </input>
- <input id="field_building_name"
name="building_name" type="text">
- <xsl:attribute name="value"><xsl:value-of
select="allocation/building_name"/></xsl:attribute>
- </input>
- <div id="building_container"></div>
- </div>
- <div class="pure-control-group">
- <label for="field_active">
- <h4><xsl:value-of select="php:function('lang',
'Active')"/></h4>
- </label>
- <select id="field_active" name="active">
- <option value="1">
- <xsl:if test="allocation/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="allocation/active=0">
- <xsl:attribute
name="selected">checked</xsl:attribute>
- </xsl:if>
- <xsl:value-of select="php:function('lang',
'Inactive')"/>
- </option>
- </select>
- </div>
- <div class="pure-control-group">
- <label style="vertical-align:top;">
- <h4><xsl:value-of select="php:function('lang',
'Season')" /></h4>
- </label>
- <div id="season_container"
style="display:inline-block;"><xsl:value-of select="php:function('lang',
'Select a building first')" /></div>
- </div>
- <div class="pure-control-group">
- <label style="vertical-align:top;">
- <h4><xsl:value-of select="php:function('lang',
'Resources')" /></h4>
- </label>
- <div id="resources_container"
style="display:inline-block;"><xsl:value-of select="php:function('lang',
'Select a building first')" /></div>
- </div>
- <div class="pure-control-group">
- <label for="field_org_name">
- <h4><xsl:value-of select="php:function('lang',
'Organization')" /></h4>
- </label>
- <input id="field_org_id" name="organization_id"
type="hidden">
- <xsl:attribute name="value"><xsl:value-of
select="allocation/organization_id"/></xsl:attribute>
- </input>
- <input id="field_org_name"
name="organization_name" type="text">
- <xsl:attribute name="value"><xsl:value-of
select="allocation/organization_name"/></xsl:attribute>
- </input>
- <div id="org_container"></div>
- </div>
- <div class="pure-control-group">
- <label for="field_from">
- <h4><xsl:value-of select="php:function('lang',
'From')" /></h4>
- </label>
- <input class="datetime" id="field_from"
name="from_" type="text">
- <!--input id="field_from" name="from_"
type="text"-->
- <xsl:attribute name="value"><xsl:value-of
select="allocation/from_"/></xsl:attribute>
- </input>
- </div>
- <div class="pure-control-group">
- <label for="field_to">
- <h4><xsl:value-of select="php:function('lang',
'To')" /></h4>
- </label>
- <input class="datetime" id="field_to" name="to_"
type="text">
- <!--input id="field_to" name="to_" type="text"-->
- <xsl:attribute name="value"><xsl:value-of
select="allocation/to_"/></xsl:attribute>
- </input>
- </div>
- <div class="pure-control-group">
- <label for="field_cost">
- <h4><xsl:value-of select="php:function('lang',
'Cost')" /></h4>
- </label>
- <input id="field_cost" name="cost" type="text">
- <xsl:attribute name="value"><xsl:value-of
select="allocation/cost"/></xsl:attribute>
- </input>
- </div>
-
- <div class="pure-control-group">
- <label for="field_mail">
- <h4><xsl:value-of select="php:function('lang',
'Inform contact persons')" /></h4>
- </label>
- <p style="display: inline-block;max-width:80%;">
- <span><xsl:value-of
select="php:function('lang', 'Text written in the text area below will be sent
as an email to all registered contact persons.')" /></span>
- <textarea id="field_mail" name="mail"
class="full-width" style="display: block;"></textarea>
- </p>
- </div>
- </fieldset>
- </div>
+ <div id="tab-content">
+ <xsl:value-of disable-output-escaping="yes"
select="allocation/tabs"/>
+ <div id="allocations_edit" class="booking-container">
+ <fieldset>
+ <h1>#<xsl:value-of select="allocation/id"/></h1>
+ <div class="pure-control-group">
+ <label><xsl:value-of select="php:function('lang',
'Application')"/></label>
+ <xsl:if test="allocation/application_id!=''">
+ <a
href="{allocation/application_link}">#<xsl:value-of
select="allocation/application_id"/></a>
+ </xsl:if>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_building_name"><xsl:value-of
select="php:function('lang', 'Building')" /></label>
+ <input id="field_building_id" name="building_id"
type="hidden">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/building_id"/></xsl:attribute>
+ </input>
+ <input id="field_building_name" name="building_name"
type="text">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/building_name"/></xsl:attribute>
+ </input>
+ <div id="building_container"></div>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_active"><xsl:value-of
select="php:function('lang', 'Active')"/></label>
+ <select id="field_active" name="active">
+ <option value="1">
+ <xsl:if test="allocation/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="allocation/active=0">
+ <xsl:attribute
name="selected">checked</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="php:function('lang',
'Inactive')"/>
+ </option>
+ </select>
+ </div>
+ <div class="pure-control-group">
+ <label style="vertical-align:top;"><xsl:value-of
select="php:function('lang', 'Season')" /></label>
+ <div id="season_container"
style="display:inline-block;"><xsl:value-of select="php:function('lang',
'Select a building first')" /></div>
+ </div>
+ <div class="pure-control-group">
+ <label style="vertical-align:top;"><xsl:value-of
select="php:function('lang', 'Resources')" /></label>
+ <div id="resources_container"
style="display:inline-block;"><xsl:value-of select="php:function('lang',
'Select a building first')" /></div>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_org_name"><xsl:value-of
select="php:function('lang', 'Organization')" /></label>
+ <input id="field_org_id" name="organization_id"
type="hidden">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/organization_id"/></xsl:attribute>
+ </input>
+ <input id="field_org_name" name="organization_name"
type="text">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/organization_name"/></xsl:attribute>
+ </input>
+ <div id="org_container"></div>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_from"><xsl:value-of
select="php:function('lang', 'From')" /></label>
+ <input class="datetime" id="field_from" name="from_"
type="text">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/from_"/></xsl:attribute>
+ </input>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_to"><xsl:value-of
select="php:function('lang', 'To')" /></label>
+ <input class="datetime" id="field_to" name="to_"
type="text">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/to_"/></xsl:attribute>
+ </input>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_cost"><xsl:value-of
select="php:function('lang', 'Cost')" /></label>
+ <input id="field_cost" name="cost" type="text">
+ <xsl:attribute name="value"><xsl:value-of
select="allocation/cost"/></xsl:attribute>
+ </input>
+ </div>
+ <div class="pure-control-group">
+ <label for="field_mail"><xsl:value-of
select="php:function('lang', 'Inform contact persons')" /></label>
+ <p style="display: inline-block;max-width:80%;">
+ <span><xsl:value-of select="php:function('lang',
'Text written in the text area below will be sent as an email to all registered
contact persons.')" /></span>
+ <textarea id="field_mail" name="mail"
class="full-width" style="display: block;"></textarea>
+ </p>
+ </div>
+ </fieldset>
</div>
- <div class="pure-control-group form-buttons">
- <input type="submit" class="pure-button pure-button-primary">
- <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="allocation/cancel_link"/></xsl:attribute>
- <xsl:value-of select="php:function('lang', 'Cancel')" />
- </a>
- </div>
+ </div>
+ <div class="pure-control-group form-buttons">
+ <input type="submit" class="pure-button pure-button-primary">
+ <xsl:attribute name="value"><xsl:value-of
select="php:function('lang', 'Save')"/></xsl:attribute>
+ </input>
+ <a class="cancel pure-button pure-button-primary">
+ <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">
var season_id = '<xsl:value-of select="allocation/season_id"/>';
var initialSelection = <xsl:value-of
select="allocation/resources_json"/>;
var lang = <xsl:value-of select="php:function('js_lang', 'Name',
'Resource Type')"/>;
</script>
- <!--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')"/>;
- </script-->
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14138] fixing forms,
Saul <=