[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13498] permission_form.xsl
From: |
Saul |
Subject: |
[Fmsystem-commits] [13498] permission_form.xsl |
Date: |
Wed, 24 Jun 2015 22:57:26 +0000 |
Revision: 13498
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13498
Author: psaul
Date: 2015-06-24 22:57:25 +0000 (Wed, 24 Jun 2015)
Log Message:
-----------
permission_form.xsl
Modified Paths:
--------------
branches/dev-syncromind/booking/templates/base/permission_form.xsl
Modified: branches/dev-syncromind/booking/templates/base/permission_form.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/permission_form.xsl
2015-06-24 22:57:00 UTC (rev 13497)
+++ branches/dev-syncromind/booking/templates/base/permission_form.xsl
2015-06-24 22:57:25 UTC (rev 13498)
@@ -1,16 +1,16 @@
<xsl:template match="data">
- <div id="content">
+ <!--div id="content"-->
<xsl:call-template name="msgbox"/>
<!--xsl:call-template name="yui_booking_i18n"/-->
<xsl:apply-templates select="permission"/>
- </div>
+ <!--/div-->
</xsl:template>
<xsl:template match="data/permission" xmlns:php="http://php.net/xsl">
- <script type="text/javascript">
+ <!--script type="text/javascript">
YAHOO.booking.objectType = "<xsl:value-of
select="object_type"/>";
YAHOO.booking.objectAutocomplete = <xsl:value-of
select="inline"/> == 0;
- </script>
+ </script-->
<!-- Add pathway later -->
<!--ul class="pathway">
@@ -26,78 +26,80 @@
<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="permision/tabs"/>
+ <xsl:value-of disable-output-escaping="yes" select="tabs"/>
<div id="permission_edit">
- <dl class="form-col">
- <xsl:if test="id">
- <!-- An update, add id column -->
- <input name='field_id' type='hidden'>
- <xsl:attribute
name="value"><xsl:value-of select="id"/></xsl:attribute>
- </input>
- </xsl:if>
-
+ <fieldset>
+
+ <div class="pure-control-group">
+ <xsl:if test="id">
+ <!-- An update, add id column -->
+ <input name='field_id' type='hidden'>
+ <xsl:attribute
name="value"><xsl:value-of select="id"/></xsl:attribute>
+ </input>
+ </xsl:if>
+ </div>
<!-- Role -->
- <dt>
- <label for="field_role"><xsl:value-of
select="php:function('lang', 'Role')" /></label>
- </dt>
- <dd>
- <xsl:value-of select="node()"/>
- <select name='role' id='field_role'>
- <option value=''><xsl:value-of
select="php:function('lang', 'Select role...')" /></option>
- <xsl:for-each
select="available_roles/*">
- <option>
- <xsl:if
test="../../role = local-name()">
- <xsl:attribute
name="selected">selected</xsl:attribute>
- </xsl:if>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'Role')" />
+ </label>
+
+ <xsl:value-of select="node()"/>
+ <select name='role' id='field_role'>
+ <option value=''><xsl:value-of
select="php:function('lang', 'Select role...')" /></option>
+ <xsl:for-each
select="available_roles/*">
+ <option>
+ <xsl:if
test="../../role = local-name()">
+
<xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
- <xsl:attribute
name="value"><xsl:value-of select="local-name()"/></xsl:attribute>
- <xsl:value-of
select="php:function('lang', string(node()))"/>
- </option>
- </xsl:for-each>
- </select>
- </dd>
+ <xsl:attribute
name="value"><xsl:value-of select="local-name()"/></xsl:attribute>
+ <xsl:value-of
select="php:function('lang', string(node()))"/>
+ </option>
+ </xsl:for-each>
+ </select>
+ </div>
<!-- Subject -->
- <dt>
- <label for="field_subject"><xsl:value-of
select="php:function('lang', 'Account')" /></label>
- </dt>
- <dd>
- <div class="autocomplete">
- <input id="field_subject_name"
name="subject_name" type="text">
- <xsl:attribute
name="value"><xsl:value-of select="subject_name"/></xsl:attribute>
- </input>
- <input id="field_subject_id"
name="subject_id" type="hidden">
- <xsl:attribute
name="value"><xsl:value-of select="subject_id"/></xsl:attribute>
- </input>
- <div id="subject_container"/>
- </div>
- </dd>
- </dl>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'Account')" />
+ </label>
+
+ <!--div class="autocomplete"-->
+ <input id="field_subject_name"
name="subject_name" type="text">
+ <xsl:attribute
name="value"><xsl:value-of select="subject_name"/></xsl:attribute>
+ </input>
+ <input id="field_subject_id"
name="subject_id" type="hidden">
+ <xsl:attribute
name="value"><xsl:value-of select="subject_id"/></xsl:attribute>
+ </input>
+ <div id="subject_container"/>
+ <!--/div-->
+ </div>
- <dl class="form-col">
- <!-- Object -->
- <dt>
- <label for="field_object_name"><xsl:value-of
select="php:function('lang', string(object_type_label))" /></label>
- </dt>
- <dd>
- <div class="autocomplete">
- <input id="field_object_name"
name="object_name" type="text">
- <xsl:attribute
name="value"><xsl:value-of select="object_name"/></xsl:attribute>
- <xsl:if test="inline = '1'">
- <xsl:attribute
name="disabled">disabled</xsl:attribute>
- </xsl:if>
- </input>
- <input id="field_object_id"
name="object_id" type="hidden">
- <xsl:attribute
name="value"><xsl:value-of select="object_id"/></xsl:attribute>
- </input>
- <div id="object_container"/>
- </div>
- </dd>
- </dl>
-
- <div class="clr"/>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', string(object_type_label))" />
+ </label>
+ <!--div class="autocomplete"-->
+ <input id="field_object_name"
name="object_name" type="text">
+ <xsl:attribute
name="value"><xsl:value-of select="object_name"/></xsl:attribute>
+ <xsl:if test="inline = '1'">
+ <xsl:attribute
name="disabled">disabled</xsl:attribute>
+ </xsl:if>
+ </input>
+ <input id="field_object_id"
name="object_id" type="hidden">
+ <xsl:attribute
name="value"><xsl:value-of select="object_id"/></xsl:attribute>
+ </input>
+ <div id="object_container"/>
+ <!--/div-->
+ </div>
+ </fieldset>
+ </div>
+ </div>
+
<div class="form-buttons">
- <input type="submit">
+ <input type="submit" class="pure-button
pure-button-primary">
<xsl:attribute name="value">
<xsl:choose>
<xsl:when test="id">
@@ -110,11 +112,9 @@
</xsl:attribute>
</input>
<a class="cancel">
- <xsl:attribute
name="href"><xsl:value-of select="cancel_link"/></xsl:attribute>
- <xsl:value-of
select="php:function('lang', 'Cancel')"/>
+ <xsl:attribute name="href"><xsl:value-of
select="cancel_link"/></xsl:attribute>
+ <xsl:value-of select="php:function('lang',
'Cancel')"/>
</a>
</div>
- </div>
- </div>
</form>
</xsl:template>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13498] permission_form.xsl,
Saul <=