[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12368] uitts: start converting forms to pure-css
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [12368] uitts: start converting forms to pure-css |
Date: |
Sun, 23 Nov 2014 20:32:40 +0000 |
Revision: 12368
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12368
Author: sigurdne
Date: 2014-11-23 20:32:39 +0000 (Sun, 23 Nov 2014)
Log Message:
-----------
uitts: start converting forms to pure-css
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.bocommon.inc.php
branches/dev-syncromind/property/inc/class.uilocation.inc.php
branches/dev-syncromind/property/inc/class.uitts.inc.php
branches/dev-syncromind/property/js/portico/tts.index.js
branches/dev-syncromind/property/templates/base/tts.xsl
Added Paths:
-----------
branches/dev-syncromind/property/templates/pure/
branches/dev-syncromind/property/templates/pure/b_account_form.xsl
branches/dev-syncromind/property/templates/pure/b_account_view.xsl
branches/dev-syncromind/property/templates/pure/contact_form.xsl
branches/dev-syncromind/property/templates/pure/contact_view.xsl
branches/dev-syncromind/property/templates/pure/ecodimb_form.xsl
branches/dev-syncromind/property/templates/pure/ecodimb_view.xsl
branches/dev-syncromind/property/templates/pure/files.xsl
branches/dev-syncromind/property/templates/pure/vendor_form.xsl
branches/dev-syncromind/property/templates/pure/vendor_view.xsl
Modified: branches/dev-syncromind/property/inc/class.bocommon.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.bocommon.inc.php 2014-11-23
10:22:46 UTC (rev 12367)
+++ branches/dev-syncromind/property/inc/class.bocommon.inc.php 2014-11-23
20:32:39 UTC (rev 12368)
@@ -70,7 +70,7 @@
$this->left_join = $this->socommon->left_join;
$this->like = $this->socommon->like;
- $this->xsl_rootdir = PHPGW_SERVER_ROOT .
'/property/templates/base';
+ $this->xsl_rootdir = PHPGW_SERVER_ROOT .
"/property/templates/{$GLOBALS['phpgw_info']['server']['template_set']}";
}
function check_perms($rights, $required)
Modified: branches/dev-syncromind/property/inc/class.uilocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uilocation.inc.php
2014-11-23 10:22:46 UTC (rev 12367)
+++ branches/dev-syncromind/property/inc/class.uilocation.inc.php
2014-11-23 20:32:39 UTC (rev 12368)
@@ -922,6 +922,7 @@
$count_uicols_name = count($uicols['name']);
+ $searc_levels = array();
for($i=1; $i<$type_id; $i++)
{
$searc_levels[] = "loc{$i}";
Modified: branches/dev-syncromind/property/inc/class.uitts.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uitts.inc.php 2014-11-23
10:22:46 UTC (rev 12367)
+++ branches/dev-syncromind/property/inc/class.uitts.inc.php 2014-11-23
20:32:39 UTC (rev 12368)
@@ -80,7 +80,6 @@
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
$GLOBALS['phpgw_info']['flags']['xslt_app'] = true;
- $this->nextmatchs =
CreateObject('phpgwapi.nextmatchs');
$this->bo =
CreateObject('property.botts',true);
$this->bocommon = &
$this->bo->bocommon;
$this->cats = &
$this->bo->cats;
@@ -120,42 +119,36 @@
*/
public function query()
{
- $type_id = $this->type_id;
- $lookup = $this->lookup;
- $lookup_tenant = phpgw::get_var('lookup_tenant',
'bool');
-
- if(!$type_id)
- {
- $type_id = 1;
- }
-
$search = phpgw::get_var('search');
$order = phpgw::get_var('order');
$draw = phpgw::get_var('draw', 'int');
$columns = phpgw::get_var('columns');
$params = array(
- 'start' => phpgw::get_var('start', 'int',
'REQUEST', 0),
- 'results' => phpgw::get_var('length', 'int',
'REQUEST', 0),
- 'query' => $search['value'],
- 'order' =>
$columns[$order[0]['column']]['data'],
- 'sort' => $order[0]['dir'],
- 'dir' => $order[0]['dir'],
- 'cat_id' => phpgw::get_var('cat_id', 'int',
'REQUEST', 0),
- 'allrows' => phpgw::get_var('length', 'int') ==
-1/*,
-
- 'type_id' => $type_id,
- 'lookup_tenant' => $lookup_tenant,
- 'lookup' => $lookup,
- 'district_id' => phpgw::get_var('district_id',
'int'),
- 'status' => phpgw::get_var('status'),
- 'part_of_town_id' =>
phpgw::get_var('part_of_town_id', 'int'),
- 'location_code' =>
phpgw::get_var('location_code'),
- 'filter' =>
phpgw::get_var('filter', 'int')*/
- );
+ 'start' =>
phpgw::get_var('start', 'int', 'REQUEST', 0),
+ 'results' =>
phpgw::get_var('length', 'int', 'REQUEST', 0),
+ 'query' =>
$search['value'],
+ 'order' =>
$columns[$order[0]['column']]['data'],
+ 'sort' =>
$order[0]['dir'],
+ 'dir' =>
$order[0]['dir'],
+ 'cat_id' =>
phpgw::get_var('cat_id', 'int', 'REQUEST', 0),
+ 'allrows' =>
phpgw::get_var('length', 'int') == -1,
+ 'status_id' =>
$this->bo->status_id,
+ 'user_id' =>
$this->bo->user_id,
+ 'reported_by' =>
$this->bo->reported_by,
+ 'cat_id' =>
$this->bo->cat_id,
+ 'vendor_id' =>
$this->bo->vendor_id,
+ 'district_id' =>
$this->bo->district_id,
+ 'part_of_town_id' =>
$this->bo->part_of_town_id,
+ 'allrows' =>
$this->bo->allrows,
+ 'start_date' =>
$this->bo->start_date,
+ 'end_date' =>
$this->bo->end_date,
+ 'location_code' =>
$this->bo->location_code,
+ 'p_num' =>
$this->bo->p_num,
+ 'branch_id' =>
phpgw::get_var('branch_id'),
+ 'order_dim1' =>
phpgw::get_var('order_dim1'),
+ );
- //$values = $this->bo->read($params);
- //fill data
$values = $this->bo->read($params);
if($values)
@@ -183,7 +176,7 @@
{
return $values;
}
-
+//_debug_array($values);
$result_data = array('results' => $values);
$result_data['total_records'] =
$this->bo->total_records;
@@ -195,11 +188,10 @@
$link_data = array
(
'menuaction' => 'property.uitts.view',
- 'type_id' => $type_id
);
array_walk( $result_data['results'], array($this,
'_add_links'), $link_data );
-
+// _debug_array($result_data);
return $this->jquery_results($result_data);
}
@@ -506,10 +498,10 @@
$uicols = array();
- $uicols['name'][] = 'priority';
- $uicols['descr'][] = lang('priority');
$uicols['name'][] = 'id';
$uicols['descr'][] = lang('id');
+ $uicols['name'][] = 'priority';
+ $uicols['descr'][] = lang('priority');
$uicols['name'][] = 'subject';
$uicols['descr'][] = lang('subject');
@@ -570,9 +562,19 @@
if($uicols['name'][$k]=='id')
{
+ $params['formatter'] =
'JqueryPortico.formatTtsIdLink';
+ }
+
+ if($uicols['name'][$k]=='entry_date')
+ {
$params['formatter'] =
'JqueryPortico.formatLink';
}
+ if($uicols['name'][$k]=='location_code')
+ {
+ $params['formatter'] =
'JqueryPortico.searchLinkTts';
+ }
+
if($uicols['name'][$k]=='address' ||
$uicols['name'][$k]=='id' || $uicols['name'][$k]=='priority')
{
$params['sortable'] = true;
@@ -676,13 +678,24 @@
$values_combo_box[4] =
$this->bocommon->get_user_list_right2('filter',PHPGW_ACL_EDIT,$this->user_id,$this->acl_location);
array_unshift
($values_combo_box[4],array('id'=>$GLOBALS['phpgw_info']['user']['account_id'],'name'=>lang('my
assigned tickets')));
- $_my_negative_self = (-1 *
$GLOBALS['phpgw_info']['user']['account_id']);
+ array_unshift
($values_combo_box[4],array('id'=>'','name'=>lang('assigned to')));
$combos[] = array('type' => 'filter',
'name' => 'user_id',
'extra' => '',
'text' => lang('user'),
'list' =>
$values_combo_box[4]
);
+
+ $values_combo_box[5] =
$this->bo->get_reported_by($this->reported_by);
+ array_unshift
($values_combo_box[5],array('id'=>$GLOBALS['phpgw_info']['user']['account_id'],'name'=>lang('my
submitted tickets')));
+ array_unshift
($values_combo_box[5],array('id'=>'','name'=>lang('reported by')));
+ $combos[] = array('type' => 'filter',
+ 'name' => 'reported_by',
+ 'extra' => '',
+ 'text' =>
lang('reported by'),
+ 'list' =>
$values_combo_box[5]
+ );
+
}
// if($order_read)
@@ -793,54 +806,7 @@
'download' =>
self::link(array('menuaction' => 'property.uitts.download', 'export' => true,
'allrows' => true)),
'allrows' => true,
'editor_action' =>
self::link(array('menuaction' => 'property.uitts.edit_survey_title')),
- 'field' => $this->_get_fields(),
-/*
- array(
-
- array(
- 'key' => 'priority',
- 'label' =>
lang('priority'),
- 'sortable' => true,
- 'editor' => false
- ),
- array(
- 'key' => 'id',
- 'label' => lang('ID'),
- 'sortable' => true,
- 'formatter' =>
'JqueryPortico.formatLink'
- ),
- array(
- 'key' => 'subject',
- 'label' =>
lang('subject'),
- 'sortable' => true
- ),
- array(
- 'key' => 'loc1_name',
- 'label' =>
lang('object'),
- 'sortable' => true
- ),
- array(
- 'key' => 'entry_date',
- 'label' => lang('Entry
Date'),
- 'sortable' => true,
- ),
- array(
- 'key' =>
'location_code',
- 'label' =>
lang('location_code'),
- 'sortable' => false,
- ),
- array(
- 'key' => 'assignedto',
- 'label' =>
lang('assignedto'),
- 'sortable' => false,
- ),
- array(
- 'key' => 'link',
- 'label' => 'dummy',
- 'sortable' => false,
- 'hidden' => true,
- )
- )*/
+ 'field' => $this->_get_fields()
)
);
@@ -2256,7 +2222,7 @@
'type_id' => -1, // calculated from
location_types
'no_link' => false, // disable lookup
links for location type less than type_id
'tenant' => true,
- 'lookup_type' => 'form',
+ 'lookup_type' => 'form2',
'lookup_entity' =>
$this->bocommon->get_lookup_entity('ticket'),
'entity_data' =>
(isset($values['p'])?$values['p']:'')
));
@@ -2313,7 +2279,7 @@
'value_origin_id'
=> (isset($origin_id)?$origin_id:''),
'msgbox_data'
=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
- 'location_data'
=> $location_data,
+ 'location_data2'
=> $location_data,
'lang_no_user'
=> lang('Select user'),
'lang_user_statustext'
=> lang('Select the user the selection belongs to. To do not use a user select
NO USER'),
'select_user_name'
=> 'values[assignedto]',
@@ -2729,12 +2695,12 @@
if($ticket['origin'] || $ticket['target'])
{
- $lookup_type = 'view';
+ $lookup_type = 'view2';
$type_id =
count(explode('-',$ticket['location_data']['location_code']));
}
else
{
- $lookup_type = 'form';
+ $lookup_type = 'form2';
$type_id = -1;
}
@@ -3484,7 +3450,7 @@
'link_entity'
=> $link_entity,
'msgbox_data'
=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
- 'location_data'
=> $location_data,
+ 'location_data2'
=> $location_data,
'value_status'
=> $ticket['status'],
'status_list'
=> array('options' => $this->bo->get_status_list($ticket['status'])),
@@ -3621,9 +3587,7 @@
$tabs['history'] = array('label' =>
lang('history'), 'link' => '#history');
}
- phpgwapi_yui::tabview_setup('ticket_tabview');
-
- return phpgwapi_yui::tabview_generate($tabs, $tab);
+ return phpgwapi_jquery::tabview_generate($tabs,
$tab,'ticket_tabview');
}
Modified: branches/dev-syncromind/property/js/portico/tts.index.js
===================================================================
--- branches/dev-syncromind/property/js/portico/tts.index.js 2014-11-23
10:22:46 UTC (rev 12367)
+++ branches/dev-syncromind/property/js/portico/tts.index.js 2014-11-23
20:32:39 UTC (rev 12368)
@@ -93,3 +93,16 @@
return '<a href="' + link + '" title="' + title + '">' + name + '</a>';
};
+
+JqueryPortico.formatTtsIdLink = function(key, oData) {
+
+ var name = oData[key]+oData['new_ticket'];
+ var link = oData['link'];
+ return '<a href="' + link + '">' + name + '</a>';
+};
+
+JqueryPortico.searchLinkTts = function(key, oData) {
+
+ var name = oData[key];
+ return '<a id="' + name + '" onclick="searchData(this.id);">' + name +
'</a>';
+};
Modified: branches/dev-syncromind/property/templates/base/tts.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/tts.xsl 2014-11-23
10:22:46 UTC (rev 12367)
+++ branches/dev-syncromind/property/templates/base/tts.xsl 2014-11-23
20:32:39 UTC (rev 12368)
@@ -1,4 +1,5 @@
- <!-- $Id$ -->
+
+<!-- $Id$ -->
<func:function name="phpgw:conditional">
<xsl:param name="test"/>
<xsl:param name="true"/>
@@ -7,1672 +8,1175 @@
<func:result>
<xsl:choose>
<xsl:when test="$test">
- <xsl:value-of select="$true"/>
+ <xsl:value-of select="$true"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$false"/>
</xsl:otherwise>
</xsl:choose>
- </func:result>
+ </func:result>
</func:function>
<xsl:template match="data">
- <xsl:choose>
- <xsl:when test="add">
- <xsl:apply-templates select="add"/>
- </xsl:when>
- <xsl:when test="add2">
- <xsl:apply-templates select="add2"/>
- </xsl:when>
- <xsl:when test="view">
- <xsl:apply-templates select="view"/>
- </xsl:when>
- <xsl:when test="view2">
- <xsl:apply-templates select="view2"/>
- </xsl:when>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="add">
+ <xsl:apply-templates select="add"/>
+ </xsl:when>
+ <xsl:when test="view">
+ <xsl:apply-templates select="view"/>
+ </xsl:when>
+ </xsl:choose>
<xsl:call-template name="jquery_phpgw_i18n"/>
</xsl:template>
- <!-- add -->
- <xsl:template xmlns:php="http://php.net/xsl" match="add">
- <script type="text/javascript">
- self.name="first_Window";
- <xsl:value-of select="lookup_functions"/>
- </script>
+<!-- add -->
+<xsl:template xmlns:php="http://php.net/xsl" match="add">
+ <script type="text/javascript">
+ self.name="first_Window";
+ <xsl:value-of select="lookup_functions"/>
+ </script>
- <xsl:choose>
- <xsl:when test="msgbox_data != ''">
+ <xsl:choose>
+ <xsl:when test="msgbox_data != ''">
+ <table class="pure-table pure-u-md-1-1">
<tr>
<td align="left" colspan="3">
<xsl:call-template
name="msgbox"/>
</td>
</tr>
- </xsl:when>
- </xsl:choose>
- <xsl:variable name="form_action">
- <xsl:value-of select="form_action"/>
- </xsl:variable>
- <form ENCTYPE="multipart/form-data" id="form" name="form"
method="post" action="{$form_action}">
- <div class="yui-navset" id="ticket_tabview">
- <div class="yui-content">
- <table cellpadding="2" cellspacing="2"
width="80%" align="center">
- <xsl:for-each
select="value_origin">
- <tr>
- <td
valign="top">
- <label>
-
<xsl:value-of select="descr"/>
- </label>
- </td>
- <td>
- <table>
-
<xsl:for-each select="data">
-
<tr>
-
<td align="left">
-
<xsl:variable name="link_request"><xsl:value-of
select="//link_request"/>&id=<xsl:value-of select="id"/></xsl:variable>
-
<a href="{link}" title="{//lang_origin_statustext}">
-
<xsl:value-of select="id"/>
-
</a>
-
<xsl:text> </xsl:text>
-
</td>
-
</tr>
-
</xsl:for-each>
- </table>
- </td>
- </tr>
- </xsl:for-each>
- <input type="hidden"
name="values[origin]" value="{value_origin_type}"/>
- <input type="hidden"
name="values[origin_id]" value="{value_origin_id}"/>
- <xsl:call-template
name="location_form"/>
- <tr>
- <td>
+ </table>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:variable name="form_action">
+ <xsl:value-of select="form_action"/>
+ </xsl:variable>
+ <form class="pure-form pure-form-aligned"
ENCTYPE="multipart/form-data" id="form" name="form" method="post"
action="{$form_action}">
+ <div id="ticket_tabview">
+ <div >
+ <fieldset>
+ <xsl:for-each select="value_origin">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="descr"/>
+ </label>
+ <table>
+ <xsl:for-each
select="data">
+ <tr>
+
<td align="left">
+
<xsl:variable name="link_request">
+
<xsl:value-of select="//link_request"/>&id=<xsl:value-of
select="id"/>
+
</xsl:variable>
+
<a href="{link}" title="{//lang_origin_statustext}">
+
<xsl:value-of select="id"/>
+
</a>
+
<xsl:text> </xsl:text>
+
</td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </div>
+ </xsl:for-each>
+ <input type="hidden"
name="values[origin]" value="{value_origin_type}"/>
+ <input type="hidden"
name="values[origin_id]" value="{value_origin_id}"/>
+ <xsl:call-template
name="location_form2"/>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'category')"/>
+ </label>
+ <xsl:call-template
name="categories"/>
+ </div>
+ <xsl:choose>
+ <xsl:when test="simple !='1'">
+ <div
class="pure-control-group">
<label>
-
<xsl:value-of select="php:function('lang', 'category')"/>
+
<xsl:value-of select="php:function('lang', 'Group')"/>
</label>
- </td>
- <td>
-
<xsl:call-template name="categories"/>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when test="simple
!='1'">
- <tr>
- <td
valign="top">
+
+
<xsl:call-template name="group_select"/>
+ </div>
+ <xsl:choose>
+ <xsl:when
test="disable_userassign_on_add !='1'">
+ <div
class="pure-control-group">
<label>
-
<xsl:value-of select="php:function('lang', 'Group')"/>
+
<xsl:value-of select="php:function('lang', 'Assign to')"/>
</label>
- </td>
- <td>
-
<xsl:call-template name="group_select"/>
- </td>
- </tr>
- <xsl:choose>
-
<xsl:when test="disable_userassign_on_add !='1'">
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'Assign
to')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:call-template name="user_id_select"/>
-
</td>
-
</tr>
-
</xsl:when>
- </xsl:choose>
-
<xsl:call-template name="contact_form"/>
- <tr>
- <td>
-
<label>
-
<xsl:value-of select="php:function('lang', 'Send e-mail')"/>
-
</label>
- </td>
- <td>
-
<input type="checkbox" name="values[send_mail]" value="1">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'Choose to send
mailnotification')"/>
-
</xsl:attribute>
-
<xsl:if test="pref_send_mail = '1'">
-
<xsl:attribute name="checked">
-
<xsl:text>checked</xsl:text>
-
</xsl:attribute>
-
</xsl:if>
-
</input>
- </td>
- </tr>
- <tr>
- <td
valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'Priority')"/>
-
</label>
- </td>
- <td>
-
<xsl:variable name="lang_priority_statustext">
-
<xsl:value-of select="lang_priority_statustext"/>
-
</xsl:variable>
-
<xsl:variable name="select_priority_name">
-
<xsl:value-of select="select_priority_name"/>
-
</xsl:variable>
-
<select name="{$select_priority_name}"
onMouseover="window.status='{$lang_priority_statustext}'; return true;"
onMouseout="window.status='';return true;">
-
<xsl:apply-templates select="priority_list/options"/>
-
</select>
- </td>
- </tr>
- <tr>
- <td
valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'status')"/>
-
</label>
- </td>
- <td>
-
<select id="status_id" name="values[status]">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'Set the status of
the ticket')"/>
-
</xsl:attribute>
-
<xsl:apply-templates select="status_list/options"/>
-
</select>
- </td>
- </tr>
- <xsl:choose>
-
<xsl:when test="show_finnish_date ='1'">
-
<tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang', 'finnish
date')"/>
-
</label>
-
</td>
-
<td>
-
<input type="text" id="values_finnish_date"
name="values[finnish_date]" size="10" value="{value_finnish_date}"
readonly="readonly" onMouseout="window.status='';return true;">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="lang_finnish_date_statustext"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
</xsl:when>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates
select="custom_attributes/attributes"/>
- <tr>
- <td valign="top">
+
+
<xsl:call-template name="user_id_select"/>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:call-template
name="contact_form"/>
+ <div
class="pure-control-group">
<label>
-
<xsl:value-of select="php:function('lang', 'subject')"/>
+
<xsl:value-of select="php:function('lang', 'Send e-mail')"/>
</label>
- </td>
- <td>
- <input
type="text" name="values[subject]" value="{value_subject}" size="60" >
+ <input
type="checkbox" name="values[send_mail]" value="1">
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'Enter the subject of this
ticket')"/>
+
<xsl:value-of select="php:function('lang', 'Choose to send mailnotification')"/>
</xsl:attribute>
+ <xsl:if
test="pref_send_mail = '1'">
+
<xsl:attribute name="checked">
+
<xsl:text>checked</xsl:text>
+
</xsl:attribute>
+
</xsl:if>
</input>
- </td>
- </tr>
- <tr>
- <td valign="top">
+ </div>
+ <div
class="pure-control-group">
<label>
-
<xsl:value-of select="php:function('lang', 'Details')"/>
+
<xsl:value-of select="php:function('lang', 'Priority')"/>
</label>
- </td>
- <td>
- <textarea
cols="60" rows="10" name="values[details]" >
+
+ <xsl:variable
name="lang_priority_statustext">
+
<xsl:value-of select="lang_priority_statustext"/>
+ </xsl:variable>
+ <xsl:variable
name="select_priority_name">
+
<xsl:value-of select="select_priority_name"/>
+ </xsl:variable>
+ <select
name="{$select_priority_name}"
onMouseover="window.status='{$lang_priority_statustext}'; return true;"
onMouseout="window.status='';return true;">
+
<xsl:apply-templates select="priority_list/options"/>
+ </select>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'status')"/>
+ </label>
+
+ <select
id="status_id" name="values[status]">
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'Enter the details of this
ticket')"/>
+
<xsl:value-of select="php:function('lang', 'Set the status of the ticket')"/>
</xsl:attribute>
-
<xsl:value-of select="value_details"/>
- </textarea>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when
test="fileupload = 1">
- <tr>
- <td
valign="top">
+
<xsl:apply-templates select="status_list/options"/>
+ </select>
+ </div>
+ <xsl:choose>
+ <xsl:when
test="show_finnish_date ='1'">
+ <div
class="pure-control-group">
<label>
-
<xsl:value-of select="lang_upload_file"/>
+
<xsl:value-of select="php:function('lang', 'finnish date')"/>
</label>
- </td>
- <td>
-
<input type="file" name="file" size="40">
+
<input type="text" id="values_finnish_date" name="values[finnish_date]"
size="10" value="{value_finnish_date}" readonly="readonly"
onMouseout="window.status='';return true;">
<xsl:attribute name="title">
-
<xsl:value-of select="lang_file_statustext"/>
+
<xsl:value-of select="lang_finnish_date_statustext"/>
</xsl:attribute>
</input>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- </table>
- </div>
- <table cellpadding="2" cellspacing="2"
width="50%" align="center">
- <tr height="50">
- <td>
- <input type="hidden"
id="save" name="values[save]" value=""/>
- <input type="hidden"
id="apply" name="values[apply]" value=""/>
- <input type="hidden"
id="cancel" name="values[cancel]" value=""/>
- <input type="button"
name="save" value="{lang_send}" onClick="confirm_session('save');">
- <xsl:attribute
name="title">
-
<xsl:value-of select="lang_send_statustext"/>
- </xsl:attribute>
- </input>
- </td>
- <td>
- <input type="button"
name="apply" value="{lang_save}" onClick="confirm_session('apply');">
- <xsl:attribute
name="title">
-
<xsl:value-of select="lang_send_statustext"/>
- </xsl:attribute>
- </input>
- </td>
- <td>
- <input type="button"
name="cancel" value="{lang_cancel}" onClick="confirm_session('cancel');">
- <xsl:attribute
name="title">
-
<xsl:value-of select="lang_send_statustext"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </table>
- </div>
- </form>
- </xsl:template>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:apply-templates
select="custom_attributes/attributes"/>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'subject')"/>
+ </label>
+
+ <input type="text"
name="values[subject]" value="{value_subject}" size="60" >
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="php:function('lang', 'Enter the subject of this ticket')"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'Details')"/>
+ </label>
+
+ <textarea cols="60" rows="10"
name="values[details]" >
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="php:function('lang', 'Enter the details of this ticket')"/>
+ </xsl:attribute>
+ <xsl:value-of
select="value_details"/>
+ </textarea>
+ </div>
+ <xsl:choose>
+ <xsl:when test="fileupload = 1">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_upload_file"/>
+ </label>
+
+ <input
type="file" name="file" size="40">
+
<xsl:attribute name="title">
+
<xsl:value-of select="lang_file_statustext"/>
+
</xsl:attribute>
+ </input>
+ </div>
+ </xsl:when>
+ </xsl:choose>
- <!-- add2 -->
- <xsl:template match="add2">
- <div align="left">
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <xsl:choose>
- <xsl:when test="msgbox_data != ''">
- <tr>
- <td align="left"
colspan="3">
-
<xsl:call-template name="msgbox"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <xsl:variable name="form_action">
- <xsl:value-of select="form_action"/>
- </xsl:variable>
- <form name="form" method="post" id="form"
action="{$form_action}">
- <xsl:call-template
name="location_view"/>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_contact_phone"/>
- </td>
- <td>
- <input type="text"
name="values[extra][contact_phone]" value="{value_contact_phone}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="title">
-
<xsl:value-of select="lang_contact_phone_statustext"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_contact_email"/>
- </td>
- <td>
- <input type="text"
name="values[extra][contact_email]" value="{value_contact_email}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="title">
-
<xsl:value-of select="lang_contact_email_statustext"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_subject"/>
- </td>
- <td>
- <input type="text"
name="values[subject]" value="{value_subject}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_subject_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_details"/>
- </td>
- <td>
- <textarea cols="60"
rows="10" name="values[details]" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_details_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- <xsl:value-of
select="value_details"/>
- </textarea>
- </td>
- </tr>
- <tr height="50">
- <td>
- <xsl:variable
name="lang_save">
- <xsl:value-of
select="lang_save"/>
- </xsl:variable>
- <input type="submit"
name="values[save]" value="{$lang_save}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_save_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </form>
- <tr>
+ </fieldset>
+ </div>
+ <table cellpadding="2" cellspacing="2" width="50%"
align="center">
+ <tr height="50">
<td>
- <xsl:variable
name="done_action">
- <xsl:value-of
select="done_action"/>
- </xsl:variable>
- <xsl:variable name="lang_done">
- <xsl:value-of
select="lang_done"/>
- </xsl:variable>
- <form method="post"
action="{$done_action}">
- <input type="submit"
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_done_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
+ <input type="hidden" id="save"
name="values[save]" value=""/>
+ <input type="hidden" id="apply"
name="values[apply]" value=""/>
+ <input type="hidden"
id="cancel" name="values[cancel]" value=""/>
+ <input type="button"
name="save" value="{lang_send}" onClick="confirm_session('save');">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="lang_send_statustext"/>
+ </xsl:attribute>
+ </input>
</td>
+ <td>
+ <input type="button"
name="apply" value="{lang_save}" onClick="confirm_session('apply');">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="lang_send_statustext"/>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td>
+ <input type="button"
name="cancel" value="{lang_cancel}" onClick="confirm_session('cancel');">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="lang_send_statustext"/>
+ </xsl:attribute>
+ </input>
+ </td>
</tr>
</table>
</div>
- </xsl:template>
+ </form>
+</xsl:template>
- <!-- view -->
- <xsl:template xmlns:php="http://php.net/xsl" match="view">
- <script type="text/javascript">
- self.name="first_Window";
- <xsl:value-of select="lookup_functions"/>
- function generate_order()
- {
- Window1=window.open('<xsl:value-of
select="order_link"/>','','left=50,top=100');
- }
- function generate_request()
- {
- Window1=window.open('<xsl:value-of
select="request_link"/>','','left=50,top=100');
- }
+<!-- view -->
+<xsl:template xmlns:php="http://php.net/xsl" match="view">
+ <script type="text/javascript">
+ self.name="first_Window";
+ <xsl:value-of select="lookup_functions"/>
+ function generate_order()
+ {
+ Window1=window.open('<xsl:value-of
select="order_link"/>','','left=50,top=100');
+ }
- function template_lookup()
- {
- var oArgs =
{menuaction:'property.uilookup.order_template',type:'order_template'};
- var strURL = phpGWLink('index.php', oArgs);
-
Window1=window.open(strURL,"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
+ function generate_request()
+ {
+ Window1=window.open('<xsl:value-of
select="request_link"/>','','left=50,top=100');
+ }
- function response_lookup()
- {
- var oArgs =
{menuaction:'property.uilookup.response_template',type:'response_template'};
- var strURL = phpGWLink('index.php', oArgs);
-
Window1=window.open(strURL,"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
+ function template_lookup()
+ {
+ var oArgs =
{menuaction:'property.uilookup.order_template',type:'order_template'};
+ var strURL = phpGWLink('index.php', oArgs);
+
Window1=window.open(strURL,"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+
+ function response_lookup()
+ {
+ var oArgs =
{menuaction:'property.uilookup.response_template',type:'response_template'};
+ var strURL = phpGWLink('index.php', oArgs);
+
Window1=window.open(strURL,"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
- function preview_html(id)
- {
+ function preview_html(id)
+ {
- var on_behalf_of_assigned =
document.getElementById("on_behalf_of_assigned").checked ? 1 : 0;
+ var on_behalf_of_assigned =
document.getElementById("on_behalf_of_assigned").checked ? 1 : 0;
- var oArgs =
{menuaction:'property.uitts.view',id:id, preview_html:true,
on_behalf_of_assigned: on_behalf_of_assigned};
- var strURL = phpGWLink('index.php', oArgs);
-
Window1=window.open(strURL,'Search',"left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ var oArgs = {menuaction:'property.uitts.view',id:id,
preview_html:true, on_behalf_of_assigned: on_behalf_of_assigned};
+ var strURL = phpGWLink('index.php', oArgs);
+
Window1=window.open(strURL,'Search',"left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
+ }
- function preview_pdf(id)
- {
- var on_behalf_of_assigned =
document.getElementById("on_behalf_of_assigned").checked ? 1 : 0;
+ function preview_pdf(id)
+ {
+ var on_behalf_of_assigned =
document.getElementById("on_behalf_of_assigned").checked ? 1 : 0;
- var oArgs =
{menuaction:'property.uitts.view',id:id, preview_pdf:true,
on_behalf_of_assigned: on_behalf_of_assigned};
- var strURL = phpGWLink('index.php', oArgs);
-
Window1=window.open(strURL,'Search',"left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
+ var oArgs = {menuaction:'property.uitts.view',id:id,
preview_pdf:true, on_behalf_of_assigned: on_behalf_of_assigned};
+ var strURL = phpGWLink('index.php', oArgs);
+
Window1=window.open(strURL,'Search',"left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
- </script>
- <table cellpadding="2" cellspacing="2" width="95%"
align="center">
- <xsl:choose>
- <xsl:when test="msgbox_data != ''">
- <tr>
- <td align="left" colspan="3">
- <xsl:call-template
name="msgbox"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- </table>
- <xsl:variable name="form_action">
- <xsl:value-of select="form_action"/>
- </xsl:variable>
- <form ENCTYPE="multipart/form-data" id="form" name="form"
method="post" action="{$form_action}">
- <div class="yui-navset" id="ticket_tabview">
- <xsl:value-of disable-output-escaping="yes"
select="tabs"/>
- <div class="yui-content">
- <div id="general">
- <table cellpadding="2"
cellspacing="2" width="95%" align="center">
- <tr class="th">
- <td
class="th_text" valign="top">
- <label>
-
<xsl:value-of select="php:function('lang', 'Ticket')"/>
- </label>
- </td>
- <td
class="th_text" valign="top">
-
<xsl:value-of select="value_id"/>
- <input
type="text" name="values[subject]" value="{value_subject}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'update subject')"/>
-
</xsl:attribute>
- </input>
- </td>
- </tr>
- <xsl:for-each
select="value_origin">
- <tr>
- <td
valign="top">
-
<label>
-
<xsl:value-of select="descr"/>
-
</label>
- </td>
- <td>
-
<table>
-
<xsl:for-each select="data">
-
<tr>
-
<td class="th_text" align="left">
-
<a href="{link}" title="{statustext}">
-
<xsl:value-of select="id"/>
-
</a>
-
<xsl:text> </xsl:text>
-
</td>
-
</tr>
-
</xsl:for-each>
-
</table>
- </td>
- </tr>
- </xsl:for-each>
- <xsl:choose>
- <xsl:when
test="lookup_type ='view'">
-
<xsl:call-template name="location_view"/>
- </xsl:when>
- <xsl:otherwise>
-
<xsl:call-template name="location_form"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="contact_phone !=''">
+ </script>
+ <table cellpadding="2" cellspacing="2" width="95%" align="center">
+ <xsl:choose>
+ <xsl:when test="msgbox_data != ''">
+ <tr>
+ <td align="left" colspan="3">
+ <xsl:call-template
name="msgbox"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </table>
+ <xsl:variable name="form_action">
+ <xsl:value-of select="form_action"/>
+ </xsl:variable>
+ <form class="pure-form pure-form-aligned" ENCTYPE="multipart/form-data"
id="form" name="form" method="post" action="{$form_action}">
+ <div id="ticket_tabview">
+ <xsl:value-of disable-output-escaping="yes"
select="tabs"/>
+ <div id="general">
+ <fieldset>
+
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'Ticket')"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of
select="value_id"/>
+ </label>
+ <input type="text"
name="values[subject]" value="{value_subject}">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="php:function('lang', 'update subject')"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ <xsl:for-each select="value_origin">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="descr"/>
+ </label>
+ <table
class="pure-table">
+ <xsl:for-each
select="data">
<tr>
-
<td class="th_text" align="left">
-
<label>
-
<xsl:value-of select="php:function('lang', 'Contact phone')"/>
-
</label>
-
</td>
<td align="left">
-
<xsl:value-of select="contact_phone"/>
-
</td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <xsl:call-template
name="contact_form"/>
- <xsl:for-each
select="value_target">
- <tr>
- <td
class="th_text" valign="top">
-
<label>
-
<xsl:value-of select="descr"/>
-
</label>
- </td>
- <td
class="th_text" align="left">
-
<xsl:for-each select="data">
<a href="{link}" title="{statustext}">
<xsl:value-of select="id"/>
</a>
<xsl:text> </xsl:text>
-
</xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- <tr>
- <td
class="th_text" valign="top">
- <label>
-
<xsl:value-of select="php:function('lang', 'details')"/>
- </label>
- </td>
- <xsl:choose>
-
<xsl:when test="additional_notes=''">
-
<td class="th_text">
-
<label>
-
<xsl:value-of select="php:function('lang', 'no additional
notes')"/>
-
</label>
</td>
-
</xsl:when>
-
<xsl:otherwise>
-
<td>
-
<table width="100%" cellpadding="2" cellspacing="2" align="center">
-
<!-- DATATABLE 0-->
-
<td>
-
<div id="paging_0"/>
-
<div id="datatable-container_0"/>
-
</td>
-
</table>
-
</td>
-
</xsl:otherwise>
- </xsl:choose>
- </tr>
- <xsl:choose>
- <xsl:when
test="simple !='1'">
- <tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'group')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:call-template name="group_select"/>
-
</td>
</tr>
- <tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'assigned to')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:call-template name="user_id_select"/>
-
</td>
- </tr>
-
<xsl:choose>
-
<xsl:when test="lang_takeover != ''">
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="lang_takeover"/>
-
</label>
-
</td>
-
<td>
-
<input type="checkbox" name="values[takeover]"
value="1">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'Take over the assignment for this ticket')"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
- <tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang', 'Send e-mail')"/>
-
</label>
-
</td>
-
<td>
-
<input type="checkbox" name="values[send_mail]" value="1">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'Choose to
send mailnotification')"/>
-
</xsl:attribute>
-
<xsl:if test="pref_send_mail = '1'">
-
<xsl:attribute name="checked">
-
<xsl:text>checked</xsl:text>
-
</xsl:attribute>
-
</xsl:if>
-
</input>
-
</td>
- </tr>
- <tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'Priority')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:variable name="lang_priority_statustext">
-
<xsl:value-of select="php:function('lang', 'Select the priority
the selection belongs to')"/>
-
</xsl:variable>
-
<xsl:variable name="select_priority_name">
-
<xsl:value-of select="select_priority_name"/>
-
</xsl:variable>
-
<select name="{$select_priority_name}" class="forms"
title="{$lang_priority_statustext}"
onMouseover="window.status='{$lang_priority_statustext}'; return true;"
onMouseout="window.status='';return true;">
-
<xsl:apply-templates select="priority_list/options"/>
-
</select>
-
</td>
- </tr>
-
<xsl:choose>
-
<xsl:when test="value_order_id=''">
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang',
'status')"/>
-
</label>
-
</td>
-
<td>
-
<select id="status_id" name="values[status]"
class="forms">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'Set the status of the ticket')"/>
-
</xsl:attribute>
-
<xsl:apply-templates
select="status_list/options"/>
-
</select>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
- <tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang', 'category')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:call-template name="categories"/>
-
</td>
- </tr>
-
<xsl:choose>
-
<xsl:when test="show_finnish_date ='1'">
-
<tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang',
'finnish date')"/>
-
</label>
-
</td>
-
<td>
-
<input type="text" id="values_finnish_date"
name="values[finnish_date]" size="10" value="{value_finnish_date}"
readonly="readonly" onMouseout="window.status='';return true;">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'select the estimated date for closing the
task')"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
-
<xsl:choose>
-
<xsl:when test="show_billable_hours ='1'">
-
<tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang',
'billable hours')"/>
-
</label>
-
</td>
-
<td>
-
<input type="text" id="values_billable_hour"
name="values[billable_hours]" size="10" value="">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'enter the billable hour for the task')"/>
-
</xsl:attribute>
-
</input>
-
<input type="text" id="values_billable_hour_orig"
name="values[billable_hours_orig]" size="10" value="{value_billable_hours}"
readonly="readonly">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'enter the billable hour for the task')"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
+ </xsl:for-each>
+ </table>
+ </div>
+ </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test="lookup_type
='view'">
+ <xsl:call-template
name="location_view2"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template
name="location_form2"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="contact_phone
!=''">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'Contact phone')"/>
+ </label>
+ <xsl:value-of
select="contact_phone"/>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:call-template name="contact_form"/>
+ <xsl:for-each select="value_target">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="descr"/>
+ </label>
+ <xsl:for-each
select="data">
+ <a
href="{link}" title="{statustext}">
+
<xsl:value-of select="id"/>
+ </a>
+ <xsl:text>
</xsl:text>
+ </xsl:for-each>
+ </div>
+ </xsl:for-each>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'details')"/>
+ </label>
+ <xsl:choose>
+ <xsl:when
test="additional_notes=''">
+ <label>
+
<xsl:value-of select="php:function('lang', 'no additional notes')"/>
+ </label>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class =
'pure-u-md-1-2'>
+ <!--
DATATABLE 0-->
+ <td>
+
<div id="paging_0"/>
+
<div class="pure-table" id="datatable-container_0"/>
+ </td>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ <xsl:choose>
+ <xsl:when test="simple !='1'">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'group')"/>
+ </label>
+
<xsl:call-template name="group_select"/>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'assigned to')"/>
+ </label>
+
<xsl:call-template name="user_id_select"/>
+ </div>
+ <xsl:choose>
+ <xsl:when
test="lang_takeover != ''">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="lang_takeover"/>
+
</label>
+
<input type="checkbox" name="values[takeover]" value="1">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'Take over the
assignment for this ticket')"/>
+
</xsl:attribute>
+
</input>
+ </div>
</xsl:when>
- <xsl:otherwise>
- <input
type="hidden" name="values[status]" value="{value_status}"/>
- <input
type="hidden" name="values[assignedto]" value="{value_assignedto_id}"/>
- <input
type="hidden" name="values[group_id]" value="{value_group_id}"/>
- <input
type="hidden" name="values[priority]" value="{value_priority}"/>
- <input
type="hidden" name="values[cat_id]" value="{value_cat_id}"/>
- <input
type="hidden" name="values[finnish_date]" value="{value_finnish_date}"/>
- <input
type="hidden" name="values[billable_hour]" value="{value_billable_hours}"/>
- </xsl:otherwise>
</xsl:choose>
- <xsl:apply-templates
select="custom_attributes/attributes"/>
- <tr>
- <td
valign="top">
- <label>
-
<xsl:value-of select="php:function('lang', 'new note')"/>
- </label>
- </td>
- <td>
-
<textarea cols="{textareacols}" rows="{textarearows}" name="values[note]">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'add new comments')"/>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'Send e-mail')"/>
+ </label>
+ <input
type="checkbox" name="values[send_mail]" value="1">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'Choose to send mailnotification')"/>
+
</xsl:attribute>
+ <xsl:if
test="pref_send_mail = '1'">
+
<xsl:attribute name="checked">
+
<xsl:text>checked</xsl:text>
</xsl:attribute>
-
</textarea>
- </td>
- </tr>
+
</xsl:if>
+ </input>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'Priority')"/>
+ </label>
+ <xsl:variable
name="lang_priority_statustext">
+
<xsl:value-of select="php:function('lang', 'Select the priority the selection
belongs to')"/>
+ </xsl:variable>
+ <xsl:variable
name="select_priority_name">
+
<xsl:value-of select="select_priority_name"/>
+ </xsl:variable>
+ <select
name="{$select_priority_name}" class="forms"
title="{$lang_priority_statustext}"
onMouseover="window.status='{$lang_priority_statustext}'; return true;"
onMouseout="window.status='';return true;">
+
<xsl:apply-templates select="priority_list/options"/>
+ </select>
+ </div>
<xsl:choose>
- <xsl:when
test="fileupload = 1">
- <tr>
-
<td width="19%" align="left" valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang', 'files')"/>
-
</label>
-
</td>
-
<td>
-
<div id="datatable-container_2"/>
-
</td>
- </tr>
+ <xsl:when
test="value_order_id=''">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'status')"/>
+
</label>
+
<select id="status_id" name="values[status]" class="forms">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'Set the status of
the ticket')"/>
+
</xsl:attribute>
+
<xsl:apply-templates select="status_list/options"/>
+
</select>
+ </div>
</xsl:when>
</xsl:choose>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'category')"/>
+ </label>
+
<xsl:call-template name="categories"/>
+ </div>
<xsl:choose>
- <xsl:when
test="fileupload = 1">
- <script
type="text/javascript">
-
var fileuploader_action = <xsl:value-of select="fileuploader_action"/>;
-
</script>
-
<xsl:call-template name="file_upload"/>
+ <xsl:when
test="show_finnish_date ='1'">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'finnish date')"/>
+
</label>
+
+
<input type="text" id="values_finnish_date" name="values[finnish_date]"
size="10" value="{value_finnish_date}" readonly="readonly"
onMouseout="window.status='';return true;">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'select the
estimated date for closing the task')"/>
+
</xsl:attribute>
+
</input>
+ </div>
</xsl:when>
</xsl:choose>
<xsl:choose>
- <xsl:when
test="send_response = 1">
+ <xsl:when
test="show_billable_hours ='1'">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'billable hours')"/>
+
</label>
+
<input type="text" id="values_billable_hour" name="values[billable_hours]"
size="10" value="">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'enter the billable
hour for the task')"/>
+
</xsl:attribute>
+
</input>
+
<input type="text" id="values_billable_hour_orig"
name="values[billable_hours_orig]" size="10" value="{value_billable_hours}"
readonly="readonly">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'enter the billable
hour for the task')"/>
+
</xsl:attribute>
+
</input>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="hidden"
name="values[status]" value="{value_status}"/>
+ <input type="hidden"
name="values[assignedto]" value="{value_assignedto_id}"/>
+ <input type="hidden"
name="values[group_id]" value="{value_group_id}"/>
+ <input type="hidden"
name="values[priority]" value="{value_priority}"/>
+ <input type="hidden"
name="values[cat_id]" value="{value_cat_id}"/>
+ <input type="hidden"
name="values[finnish_date]" value="{value_finnish_date}"/>
+ <input type="hidden"
name="values[billable_hour]" value="{value_billable_hours}"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates
select="custom_attributes/attributes"/>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'new note')"/>
+ </label>
+ <textarea cols="{textareacols}"
rows="{textarearows}" name="values[note]">
+ <xsl:attribute
name="title">
+ <xsl:value-of
select="php:function('lang', 'add new comments')"/>
+ </xsl:attribute>
+ </textarea>
+ </div>
+ <xsl:choose>
+ <xsl:when test="fileupload = 1">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'files')"/>
+ </label>
+ <div
class="pure-table pure-u-md-1-2" id="datatable-container_2"/>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="fileupload = 1">
+ <script
type="text/javascript">
+ var
fileuploader_action = <xsl:value-of select="fileuploader_action"/>;
+ </script>
+ <xsl:call-template
name="file_upload"/>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="send_response =
1">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'notify client by sms')"/>
+ </label>
+ <table>
<tr>
-
<td class="th_text" align="left">
-
<label>
-
<xsl:value-of select="php:function('lang', 'notify client by
sms')"/>
-
</label>
-
</td>
-
<td align="left">
-
<table>
-
<tr>
-
<td>
-
<input type="checkbox"
name="notify_client_by_sms" value="true">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="value_sms_client_order_notice"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
<td>
-
<input type="text" name="to_sms_phone"
value="{value_sms_phone}">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="value_sms_client_order_notice"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
</table>
-
</td>
- </tr>
- <tr>
-
<td valign="top">
-
<label>
-
<a href="javascript:response_lookup()">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang',
'response')"/>
-
</xsl:attribute>
-
<xsl:value-of select="php:function('lang',
'response')"/>
-
</a>
-
</label>
-
</td>
<td>
-
<textarea cols="{textareacols}" rows="{textarearows}"
id="response_text" name="values[response_text]" onKeyUp="javascript:
SmsCountKeyUp(160);" onKeyDown="javascript: SmsCountKeyDown(160);"
wrap="virtual">
+
<input type="checkbox" name="notify_client_by_sms" value="true">
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang',
'response')"/>
+
<xsl:value-of select="value_sms_client_order_notice"/>
</xsl:attribute>
-
<xsl:value-of select="value_order_descr"/>
-
</textarea>
+
</input>
</td>
- </tr>
- <tr>
<td>
-
<label>
-
<xsl:value-of select="php:function('lang', 'character left')"/>
-
</label>
-
</td>
-
<td>
-
<input type="text" readonly="readonly" size="3" maxlength="3"
name="charNumberLeftOutput" id="charNumberLeftOutput" value="160">
+
<input type="text" name="to_sms_phone" value="{value_sms_phone}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="value_sms_client_order_notice"/>
+
</xsl:attribute>
</input>
</td>
</tr>
+ </table>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+ <a
href="javascript:response_lookup()">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'response')"/>
+
</xsl:attribute>
+
<xsl:value-of select="php:function('lang', 'response')"/>
+ </a>
+ </label>
+ <textarea
cols="{textareacols}" rows="{textarearows}" id="response_text"
name="values[response_text]" onKeyUp="javascript: SmsCountKeyUp(160);"
onKeyDown="javascript: SmsCountKeyDown(160);" wrap="virtual">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'response')"/>
+
</xsl:attribute>
+
<xsl:value-of select="value_order_descr"/>
+ </textarea>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'character left')"/>
+ </label>
+ <input
type="text" readonly="readonly" size="3" maxlength="3"
name="charNumberLeftOutput" id="charNumberLeftOutput" value="160">
+ </input>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="access_order =
1">
+ <xsl:choose>
+ <xsl:when
test="value_order_id=''">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'make order')"/>
+
</label>
+
+
<input type="checkbox" name="values[make_order]" value="True">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'make order')"/>
+
</xsl:attribute>
+
</input>
+ </div>
</xsl:when>
</xsl:choose>
<xsl:choose>
- <xsl:when
test="access_order = 1">
+ <xsl:when
test="value_order_id!=''">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'order id')"/>
+
</label>
+
<xsl:value-of select="value_order_id"/>
+
<input type="hidden" name="values[order_id]" value="{value_order_id}"/>
+
<xsl:text> | </xsl:text>
+
<xsl:variable name="lang_preview_html">
+
<xsl:value-of select="php:function('lang', 'preview html')"/>
+
</xsl:variable>
+
<a href="{preview_html}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="$lang_preview_html"/>
+
</xsl:attribute>
+
<xsl:value-of select="$lang_preview_html"/>
+
</a>
+
<xsl:text> | </xsl:text>
+
<xsl:variable name="lang_preview_pdf">
+
<xsl:value-of select="php:function('lang', 'preview pdf')"/>
+
</xsl:variable>
+
<a href="{preview_pdf}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="$lang_preview_pdf"/>
+
</xsl:attribute>
+
<xsl:value-of select="$lang_preview_pdf"/>
+
</a>
+ </div>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'on behalf of assigned')"/>
+
</label>
+
<input type="checkbox" id = "on_behalf_of_assigned"
name="on_behalf_of_assigned" value="True">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'on behalf of
assigned - vacation mode')"/>
+
</xsl:attribute>
+
</input>
+ </div>
+
+
<xsl:call-template name="vendor_form"/>
+
<xsl:call-template name="ecodimb_form"/>
+
<xsl:call-template name="b_account_form"/>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'building part')"/>
+
</label>
+
+
<select name="values[building_part]">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'select building
part')"/>
+
</xsl:attribute>
+
<option value="0">
+
<xsl:value-of select="php:function('lang', 'select building
part')"/>
+
</option>
+
<xsl:apply-templates select="building_part_list/options"/>
+
</select>
+ </div>
<xsl:choose>
-
<xsl:when test="value_order_id=''">
-
<tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang',
'make order')"/>
-
</label>
-
</td>
-
<td>
-
<input type="checkbox" name="values[make_order]"
value="True">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'make order')"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
+
<xsl:when test="branch_list!=''">
+
<div class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'branch')"/>
+
</label>
+
<select name="values[branch_id]">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang',
'select branch')"/>
+
</xsl:attribute>
+
<option value="0">
+
<xsl:value-of select="php:function('lang',
'select branch')"/>
+
</option>
+
<xsl:apply-templates select="branch_list/options"/>
+
</select>
+
</div>
</xsl:when>
</xsl:choose>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'order_dim1')"/>
+
</label>
+
<select name="values[order_dim1]">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'order_dim1')"/>
+
</xsl:attribute>
+
<option value="0">
+
<xsl:value-of select="php:function('lang', 'order_dim1')"/>
+
</option>
+
<xsl:apply-templates select="order_dim1_list/options"/>
+
</select>
+ </div>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'cost estimate')"/>
+
</label>
+
<input type="text" name="values[budget]" value="{value_budget}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'Enter the
budget')"/>
+
</xsl:attribute>
+
</input>
+
<xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
+ </div>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'payment')"/>
+
</label>
+
<input type="text" name="values[actual_cost]">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'Enter actual
cost')"/>
+
</xsl:attribute>
+
</input>
+
<xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
+
<xsl:variable name="lang_period">
+
<xsl:value-of select="php:function('lang', 'period')"/>
+
</xsl:variable>
+
+
<select name="values[actual_cost_period]">
+
<xsl:attribute name="title">
+
<xsl:value-of select='$lang_period'/>
+
</xsl:attribute>
+
<xsl:apply-templates select="period_list/options"/>
+
</select>
+
+
<xsl:text> </xsl:text> [ <xsl:value-of select='$lang_period'/> ]
+ </div>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'actual cost')"/>
+
</label>
+
+
<div class = 'pure-u-md-1-3'>
+
<div id="paging_4"> </div>
+
<div class="pure-table" id="datatable-container_4"/>
+
</div>
+ </div>
+ <div
class="pure-control-group">
+
<label>
+
<a href="javascript:template_lookup()">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'lookup
template')"/>
+
</xsl:attribute>
+
<xsl:value-of select="php:function('lang', 'description')"/>
+
</a>
+
</label>
+
+
<textarea cols="{textareacols}" rows="{textarearows}" id="order_descr"
name="values[order_descr]" wrap="virtual">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'description
order')"/>
+
</xsl:attribute>
+
<xsl:value-of select="value_order_descr"/>
+
</textarea>
+ </div>
<xsl:choose>
-
<xsl:when test="value_order_id!=''">
-
<tr class="th">
-
<td class="th_text">
-
<label>
-
<xsl:value-of select="php:function('lang',
'order id')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:value-of select="value_order_id"/>
-
<input type="hidden" name="values[order_id]"
value="{value_order_id}"/>
-
<xsl:text> | </xsl:text>
-
<xsl:variable name="lang_preview_html">
-
<xsl:value-of select="php:function('lang',
'preview html')"/>
-
</xsl:variable>
-
<a href="{preview_html}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="$lang_preview_html"/>
-
</xsl:attribute>
-
<xsl:value-of select="$lang_preview_html"/>
-
</a>
-
<xsl:text> | </xsl:text>
-
<xsl:variable name="lang_preview_pdf">
-
<xsl:value-of select="php:function('lang',
'preview pdf')"/>
-
</xsl:variable>
-
<a href="{preview_pdf}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="$lang_preview_pdf"/>
-
</xsl:attribute>
-
<xsl:value-of select="$lang_preview_pdf"/>
-
</a>
-
</td>
-
</tr>
+
<xsl:when test="need_approval='1'">
+
<div class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'ask for
approval')"/>
+
</label>
+
+
<xsl:choose>
+
<xsl:when test="value_approval_mail_address!=''">
+
<div class="pure-table pure-u-md-1-2">
+
<table>
+
<xsl:for-each
select="value_approval_mail_address">
+
<tr>
+
<td>
+
<input
type="checkbox" name="values[approval][{id}]" value="{address}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'ask for approval')"/>
+
</xsl:attribute>
+
</input>
+
</td>
+
<td
valign="top">
+
<xsl:value-of select="address"/>
+
</td>
+
</tr>
+
</xsl:for-each>
+
</table>
+
</div>
+
</xsl:when>
+
<xsl:otherwise>
+
<b>
+
<xsl:value-of
select="php:function('lang', 'address not defined')"/>
+
</b>
+
</xsl:otherwise>
+
</xsl:choose>
+
</div>
+
</xsl:when>
+
</xsl:choose>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'send order')"/>
+
</label>
+
<table class="pure-table pure-u-md-1-2">
<tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang', 'on
behalf of assigned')"/>
-
</label>
-
</td>
-
<td>
-
<input type="checkbox" id = "on_behalf_of_assigned"
name="on_behalf_of_assigned" value="True">
+
<td valign = 'top'>
+
<select name="values[send_order_format]" class="forms">
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'on behalf of assigned - vacation mode')"/>
+
<xsl:value-of
select="php:function('lang', 'format')"/>
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
-
<xsl:call-template name="vendor_form"/>
-
<xsl:call-template name="ecodimb_form"/>
-
<xsl:call-template name="b_account_form"/>
-
<tr>
-
<td>
-
<label>
-
<xsl:value-of select="php:function('lang',
'building part')"/>
-
</label>
-
</td>
-
<td>
-
<select name="values[building_part]">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'select building part')"/>
-
</xsl:attribute>
-
<option value="0">
-
<xsl:value-of
select="php:function('lang', 'select building part')"/>
+
<option value="html">
+
<xsl:text>HTML</xsl:text>
</option>
-
<xsl:apply-templates
select="building_part_list/options"/>
+
<option value="pdf">
+
<xsl:text>PDF</xsl:text>
+
</option>
</select>
</td>
-
</tr>
-
<xsl:choose>
-
<xsl:when test="branch_list!=''">
-
<tr>
-
<td>
-
<label>
-
<xsl:value-of
select="php:function('lang', 'branch')"/>
-
</label>
-
</td>
-
<td>
-
<select name="values[branch_id]">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'select branch')"/>
-
</xsl:attribute>
-
<option value="0">
-
<xsl:value-of
select="php:function('lang', 'select branch')"/>
-
</option>
-
<xsl:apply-templates
select="branch_list/options"/>
-
</select>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
-
<tr>
<td>
-
<label>
-
<xsl:value-of select="php:function('lang',
'order_dim1')"/>
-
</label>
+
<div id="paging_3"/>
+
<div class="pure-table" id="datatable-container_3"/>
</td>
-
<td>
-
<select name="values[order_dim1]">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'order_dim1')"/>
-
</xsl:attribute>
-
<option value="0">
-
<xsl:value-of
select="php:function('lang', 'order_dim1')"/>
-
</option>
-
<xsl:apply-templates
select="order_dim1_list/options"/>
-
</select>
-
</td>
</tr>
<tr>
<td valign="top">
<label>
-
<xsl:value-of select="php:function('lang',
'cost estimate')"/>
+
<xsl:value-of select="php:function('lang',
'extra mail address')"/>
</label>
</td>
-
<td><input type="text" name="values[budget]"
value="{value_budget}"><xsl:attribute name="title"><xsl:value-of
select="php:function('lang', 'Enter the
budget')"/></xsl:attribute></input><xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
-
</td>
-
</tr>
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang',
'payment')"/>
-
</label>
-
</td>
<td>
-
<input type="text" name="values[actual_cost]">
+
<input type="text" name="values[vendor_email][]"
value="">
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'Enter actual cost')"/>
+
<xsl:value-of
select="php:function('lang', 'The order will also be sent to this one')"/>
</xsl:attribute>
</input>
-
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
-
<xsl:variable name="lang_period"><xsl:value-of
select="php:function('lang', 'period')"/></xsl:variable>
-
-
<select name="values[actual_cost_period]">
-
<xsl:attribute name="title">
-
<xsl:value-of select='$lang_period'/>
-
</xsl:attribute>
-
<xsl:apply-templates
select="period_list/options"/>
-
</select>
-
-
<xsl:text> </xsl:text> [ <xsl:value-of
select='$lang_period'/> ]
</td>
</tr>
-
<tr>
-
<td valign="top" class="th_text">
-
<label>
-
<xsl:value-of select="php:function('lang',
'actual cost')"/>
-
</label>
-
</td>
-
<td>
-
<div id="paging_4"> </div>
-
<div id="datatable-container_4"/>
-
</td>
-
</tr>
-
<tr>
-
<td valign="top">
-
<label>
-
<a href="javascript:template_lookup()">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'lookup template')"/>
-
</xsl:attribute>
-
<xsl:value-of
select="php:function('lang', 'description')"/>
-
</a>
-
</label>
-
</td>
-
<td>
-
<textarea cols="{textareacols}" rows="{textarearows}"
id="order_descr" name="values[order_descr]" wrap="virtual">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'description order')"/>
-
</xsl:attribute>
-
<xsl:value-of select="value_order_descr"/>
-
</textarea>
-
</td>
-
</tr>
-
<xsl:choose>
-
<xsl:when test="need_approval='1'">
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of
select="php:function('lang', 'ask for approval')"/>
-
</label>
-
</td>
-
<td>
+
</table>
-
<xsl:choose>
-
<xsl:when
test="value_approval_mail_address!=''">
-
<table>
-
<xsl:for-each
select="value_approval_mail_address">
-
<tr>
-
<td>
-
<input type="checkbox" name="values[approval][{id}]" value="{address}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'ask for approval')"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
<td
valign="top">
-
<xsl:value-of select="address"/>
-
</td>
-
</tr>
-
</xsl:for-each>
-
</table>
-
</xsl:when>
-
<xsl:otherwise>
-
<b><xsl:value-of
select="php:function('lang', 'address not defined')"/></b>
-
</xsl:otherwise>
-
</xsl:choose>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang',
'send order')"/>
-
</label>
-
</td>
-
<td>
-
<table>
-
<tr>
-
<td valign = 'top'>
-
<select
name="values[send_order_format]" class="forms">
-
<xsl:attribute
name="title">
-
<xsl:value-of
select="php:function('lang', 'format')"/>
-
</xsl:attribute>
-
<option value="html">
-
<xsl:text>HTML</xsl:text>
-
</option>
-
<option value="pdf">
-
<xsl:text>PDF</xsl:text>
-
</option>
-
</select>
-
</td>
-
<td>
-
<div id="paging_3"/>
-
<div
id="datatable-container_3"/>
-
</td>
-
</tr>
-
</table>
-
</td>
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of
select="php:function('lang', 'extra mail address')"/>
-
</label>
-
</td>
-
<td>
-
<input type="text"
name="values[vendor_email][]" value="">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'The order will also be sent to this one')"/>
-
</xsl:attribute>
-
</input>
-
</td>
-
</tr>
-
</tr>
-
<tr>
-
<td valign="top">
-
<label>
-
<xsl:value-of select="php:function('lang',
'status')"/>
-
</label>
-
</td>
-
<td>
-
<select id="status_id" name="values[status]"
class="forms">
-
<xsl:attribute name="title">
-
<xsl:value-of
select="php:function('lang', 'Set the status of the ticket')"/>
-
</xsl:attribute>
-
<xsl:apply-templates
select="status_list/options"/>
-
</select>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
+ </div>
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'status')"/>
+
</label>
+
<select id="status_id" name="values[status]" class="forms">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'Set the status of
the ticket')"/>
+
</xsl:attribute>
+
<xsl:apply-templates select="status_list/options"/>
+
</select>
+ </div>
</xsl:when>
- <xsl:otherwise>
-
<xsl:choose>
-
<xsl:when test="value_order_id!=''">
-
<tr class="th">
-
<td class="th_text">
-
<label>
-
<xsl:value-of select="php:function('lang',
'order id')"/>
-
</label>
-
</td>
-
<td>
-
<xsl:value-of select="value_order_id"/>
-
</td>
-
</tr>
-
<xsl:call-template name="vendor_view"/>
-
</xsl:when>
-
</xsl:choose>
- </xsl:otherwise>
</xsl:choose>
- </table>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="value_order_id!=''">
+ <div
class="pure-control-group">
+
<label>
+
<xsl:value-of select="php:function('lang', 'order id')"/>
+
</label>
+
+
<xsl:value-of select="value_order_id"/>
+ </div>
+
<xsl:call-template name="vendor_view"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </fieldset>
+ </div>
+ <div id="notify">
+ <fieldset>
+
+ <xsl:variable
name="lang_contact_statustext">
+ <xsl:value-of
select="php:function('lang', 'click this link to select')"/>
+ </xsl:variable>
+ <div class="pure-control-group">
+ <label>
+ <a
href="javascript:notify_contact_lookup()" title="{$lang_contact_statustext}">
+ <xsl:value-of
select="php:function('lang', 'contact')"/>
+ </a>
+ </label>
+ <input type="hidden"
id="notify_contact" name="notify_contact" value="">
+ </input>
+ <input type="hidden"
name="notify_contact_name" value="" onClick="notify_contact_lookup();"
readonly="readonly"/>
</div>
- <div id="notify">
- <table cellpadding="2"
cellspacing="2" width="80%" align="center">
- <xsl:variable
name="lang_contact_statustext">
- <xsl:value-of
select="php:function('lang', 'click this link to select')"/>
- </xsl:variable>
- <tr>
- <td
valign="top">
- <label>
-
<a href="javascript:notify_contact_lookup()" title="{$lang_contact_statustext}">
-
<xsl:value-of select="php:function('lang', 'contact')"/>
-
</a>
- </label>
- </td>
- <td>
- <table>
-
<tr>
-
<td>
-
<input type="hidden" id="notify_contact" name="notify_contact"
value="" title="{$lang_contact_statustext}">
-
</input>
-
<input type="hidden" name="notify_contact_name" value=""
onClick="notify_contact_lookup();" readonly="readonly"
title="{$lang_contact_statustext}"/>
-
</td>
-
</tr>
- </table>
- </td>
- </tr>
- <tr>
- <td
valign="top" class="th_text">
- <label>
-
<xsl:value-of select="php:function('lang', 'notify')"/>
- </label>
- </td>
- <td>
- <div
id="paging_5"> </div>
- <div
id="datatable-container_5"/>
- <div
id="datatable-buttons_5"/>
- </td>
- </tr>
- </table>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'notify')"/>
+ </label>
+
+ <div id="paging_5"> </div>
+ <div class="pure-table"
id="datatable-container_5"/>
+ <div id="datatable-buttons_5"/>
</div>
- <div id="history">
- <div id="paging_1"/>
- <div
id="datatable-container_1"/>
- </div>
- </div>
- <table cellpadding="2" cellspacing="2"
width="80%" align="center">
- <tr height="50">
- <td>
- <input type="hidden"
id="save" name="values[save]" value=""/>
- <input type="button"
name="save" onClick="confirm_session('save');">
- <xsl:attribute
name="value">
-
<xsl:value-of select="php:function('lang', 'save')"/>
- </xsl:attribute>
- <xsl:attribute
name="title">
-
<xsl:value-of select="php:function('lang', 'save the ticket')"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </table>
+ </fieldset>
</div>
- </form>
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <tr>
- <td>
- <xsl:variable name="done_action">
- <xsl:value-of
select="done_action"/>
- </xsl:variable>
- <xsl:variable name="lang_done">
- <xsl:value-of
select="php:function('lang', 'done')"/>
- </xsl:variable>
- <form method="post"
action="{$done_action}">
- <input type="submit"
name="done" value="{$lang_done}">
+ <div id="history">
+ <div id="paging_1"/>
+ <div class="pure-table"
id="datatable-container_1"/>
+ </div>
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <tr height="50">
+ <td>
+ <input type="hidden" id="save"
name="values[save]" value=""/>
+ <input type="button"
name="save" onClick="confirm_session('save');">
+ <xsl:attribute
name="value">
+ <xsl:value-of
select="php:function('lang', 'save')"/>
+ </xsl:attribute>
<xsl:attribute
name="title">
- <xsl:value-of
select="php:function('lang', 'Back to the ticket list')"/>
+ <xsl:value-of
select="php:function('lang', 'save the ticket')"/>
</xsl:attribute>
</input>
- </form>
- </td>
- </tr>
- </table>
- <hr noshade="noshade" width="100%" align="center" size="1"/>
- <table width="80%" cellpadding="2" cellspacing="2"
align="center">
- <tr>
- <xsl:choose>
- <xsl:when test="request_link != ''">
- <td valign="top">
- <xsl:variable
name="request_link">
- <xsl:value-of
select="request_link"/>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </form>
+ <table cellpadding="2" cellspacing="2" width="80%" align="center">
+ <tr>
+ <td>
+ <xsl:variable name="done_action">
+ <xsl:value-of select="done_action"/>
+ </xsl:variable>
+ <xsl:variable name="lang_done">
+ <xsl:value-of
select="php:function('lang', 'done')"/>
+ </xsl:variable>
+ <form method="post" action="{$done_action}">
+ <input type="submit" name="done"
value="{$lang_done}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="php:function('lang', 'Back to the ticket list')"/>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </tr>
+ </table>
+ <hr noshade="noshade" width="100%" align="center" size="1"/>
+ <table width="80%" cellpadding="2" cellspacing="2" align="center">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="request_link != ''">
+ <td valign="top">
+ <xsl:variable
name="request_link">
+ <xsl:value-of
select="request_link"/>
+ </xsl:variable>
+ <form method="post"
action="{$request_link}">
+ <xsl:variable
name="lang_generate_request">
+ <xsl:value-of
select="php:function('lang', 'Generate Request')"/>
</xsl:variable>
- <form method="post"
action="{$request_link}">
- <xsl:variable
name="lang_generate_request">
-
<xsl:value-of select="php:function('lang', 'Generate Request')"/>
- </xsl:variable>
- <input
type="submit" name="location" value="{$lang_generate_request}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'click this to generate a request
with this information')"/>
-
</xsl:attribute>
- </input>
- </form>
- </td>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="order_link != ''">
- <td valign="top">
- <xsl:variable
name="order_link">
- <xsl:value-of
select="order_link"/>
+ <input type="submit"
name="location" value="{$lang_generate_request}">
+ <xsl:attribute
name="title">
+
<xsl:value-of select="php:function('lang', 'click this to generate a request
with this information')"/>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="order_link != ''">
+ <td valign="top">
+ <xsl:variable name="order_link">
+ <xsl:value-of
select="order_link"/>
+ </xsl:variable>
+ <form method="post"
action="{$order_link}">
+ <xsl:variable
name="lang_generate_project">
+ <xsl:value-of
select="php:function('lang', 'generate new project')"/>
</xsl:variable>
- <form method="post"
action="{$order_link}">
- <xsl:variable
name="lang_generate_project">
-
<xsl:value-of select="php:function('lang', 'generate new project')"/>
- </xsl:variable>
- <input
type="submit" name="location" value="{$lang_generate_project}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'click this to generate a project
with this information')"/>
-
</xsl:attribute>
- </input>
- </form>
- </td>
+ <input type="submit"
name="location" value="{$lang_generate_project}">
+ <xsl:attribute
name="title">
+
<xsl:value-of select="php:function('lang', 'click this to generate a project
with this information')"/>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ <td valign="top">
+ <xsl:variable
name="add_to_project_link">
+ <xsl:value-of
select="add_to_project_link"/>
+ </xsl:variable>
+ <form method="post"
action="{$add_to_project_link}">
+ <xsl:variable
name="lang_add_to_project">
+ <xsl:value-of
select="php:function('lang', 'add to project')"/>
+ </xsl:variable>
+ <input type="submit"
name="location" value="{$lang_add_to_project}">
+ <xsl:attribute
name="title">
+
<xsl:value-of select="php:function('lang', 'click this to add an order to an
existing project')"/>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="link_entity!=''">
+ <xsl:for-each select="link_entity">
<td valign="top">
- <xsl:variable
name="add_to_project_link">
- <xsl:value-of
select="add_to_project_link"/>
+ <xsl:variable
name="link">
+ <xsl:value-of
select="link"/>
</xsl:variable>
- <form method="post"
action="{$add_to_project_link}">
- <xsl:variable
name="lang_add_to_project">
-
<xsl:value-of select="php:function('lang', 'add to project')"/>
+ <form method="post"
action="{$link}">
+ <xsl:variable
name="name">
+
<xsl:value-of select="name"/>
</xsl:variable>
- <input
type="submit" name="location" value="{$lang_add_to_project}">
+ <input
type="submit" name="location" value="{$name}"
onMouseout="window.status='';return true;">
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'click this to add an order to an
existing project')"/>
+
<xsl:value-of select="lang_start_statustext"/>
</xsl:attribute>
</input>
</form>
</td>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="link_entity!=''">
- <xsl:for-each
select="link_entity">
- <td valign="top">
- <xsl:variable
name="link">
-
<xsl:value-of select="link"/>
- </xsl:variable>
- <form
method="post" action="{$link}">
-
<xsl:variable name="name">
-
<xsl:value-of select="name"/>
-
</xsl:variable>
- <input
type="submit" name="location" value="{$name}"
onMouseout="window.status='';return true;">
-
<xsl:attribute name="title">
-
<xsl:value-of select="lang_start_statustext"/>
-
</xsl:attribute>
- </input>
- </form>
- </td>
- </xsl:for-each>
- </xsl:when>
- </xsl:choose>
- </tr>
- </table>
- <hr noshade="noshade" width="100%" align="center" size="1"/>
- <div id="lightbox-placeholder"
style="background-color:#000000;color:#FFFFFF;display:none">
- <div class="hd"
style="background-color:#000000;color:#000000; border:0; text-align:center">
- <xsl:value-of select="php:function('lang',
'fileuploader')"/>
- </div>
- <div class="bd" style="text-align:center;"> </div>
+ </xsl:for-each>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </table>
+ <hr noshade="noshade" width="100%" align="center" size="1"/>
+ <div id="lightbox-placeholder"
style="background-color:#000000;color:#FFFFFF;display:none">
+ <div class="hd" style="background-color:#000000;color:#000000;
border:0; text-align:center">
+ <xsl:value-of select="php:function('lang',
'fileuploader')"/>
</div>
- <!-- DATATABLE DEFINITIONS-->
- <script type="text/javascript">
- var property_js = <xsl:value-of select="property_js"/>;
- var base_java_url = <xsl:value-of
select="base_java_url"/>;
- var base_java_notify_url = <xsl:value-of
select="base_java_notify_url"/>;
- var datatable = new Array();
- var myColumnDefs = new Array();
- var myButtons = new Array();
- var td_count = <xsl:value-of select="td_count"/>;
+ <div class="bd" style="text-align:center;"> </div>
+ </div>
+ <!-- DATATABLE DEFINITIONS-->
+ <script type="text/javascript">
+ var property_js = <xsl:value-of select="property_js"/>;
+ var base_java_url = <xsl:value-of select="base_java_url"/>;
+ var base_java_notify_url = <xsl:value-of
select="base_java_notify_url"/>;
+ var datatable = new Array();
+ var myColumnDefs = new Array();
+ var myButtons = new Array();
+ var td_count = <xsl:value-of select="td_count"/>;
- <xsl:for-each select="datatable">
- datatable[<xsl:value-of select="name"/>] = [
- {
- values:<xsl:value-of
select="values"/>,
- total_records: <xsl:value-of
select="total_records"/>,
- is_paginator: <xsl:value-of
select="is_paginator"/>,
- edit_action: <xsl:value-of
select="edit_action"/>,
- <!--permission:<xsl:value-of
select="permission"/>, -->
- footer:<xsl:value-of
select="footer"/>
- }
- ]
- </xsl:for-each>
- <xsl:for-each select="myColumnDefs">
- myColumnDefs[<xsl:value-of select="name"/>] =
<xsl:value-of select="values"/>
- </xsl:for-each>
- <xsl:for-each select="myButtons">
- myButtons[<xsl:value-of select="name"/>] =
<xsl:value-of select="values"/>
- </xsl:for-each>
- </script>
- </xsl:template>
-
- <!-- view2 -->
- <xsl:template match="view2">
- <script type="text/javascript">
- self.name="first_Window";
- function generate_order()
+ <xsl:for-each select="datatable">
+ datatable[<xsl:value-of select="name"/>] = [
{
- Window1=window.open('<xsl:value-of
select="order_link"/>');
+ values:<xsl:value-of select="values"/>,
+ total_records: <xsl:value-of select="total_records"/>,
+ is_paginator: <xsl:value-of select="is_paginator"/>,
+ edit_action: <xsl:value-of select="edit_action"/>,
+ <!--permission:<xsl:value-of select="permission"/>, -->
+ footer:<xsl:value-of select="footer"/>
}
- function generate_request()
- {
- Window1=window.open('<xsl:value-of
select="request_link"/>');
- }
- </script>
- <div align="left">
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <xsl:choose>
- <xsl:when test="msgbox_data != ''">
- <tr>
- <td align="left"
colspan="3">
-
<xsl:call-template name="msgbox"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <xsl:variable name="form_action">
- <xsl:value-of select="form_action"/>
- </xsl:variable>
- <form id="form" name="form" method="post"
action="{$form_action}">
- <tr class="th">
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_ticket"/>
- </td>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="value_id"/>
- <input type="text"
name="values[subject]" value="{value_subject}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_subject_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <xsl:call-template
name="location_view"/>
- <xsl:choose>
- <xsl:when test="contact_phone
!=''">
- <tr>
- <td
class="th_text" align="left">
-
<xsl:value-of select="lang_contact_phone"/>
- </td>
- <td
align="left">
-
<xsl:value-of select="contact_phone"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_opendate"/>
- </td>
- <td valign="top">
- <xsl:value-of
select="value_opendate"/>
- </td>
- </tr>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_assignedfrom"/>
- </td>
- <td valign="top">
- <xsl:value-of
select="value_assignedfrom"/>
- </td>
- </tr>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_assignedto"/>
- </td>
- <td valign="top">
- <xsl:value-of
select="value_assignedto_name"/>
- </td>
- </tr>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_priority"/>
- </td>
- <td valign="top">
- <xsl:value-of
select="value_priority"/>
- </td>
- </tr>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_category"/>
- </td>
- <td valign="top">
- <xsl:value-of
select="value_category_name"/>
- </td>
- </tr>
- <xsl:for-each select="value_origin">
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="descr"/>
- </td>
- <td class="th_text"
align="left">
- <xsl:for-each
select="data">
- <a
href="{link}" title="{statustext}">
-
<xsl:value-of select="id"/>
- </a>
-
<xsl:text> </xsl:text>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- <xsl:for-each
select="entity_origin_list">
- <tr>
- <td class="th_text">
- <xsl:value-of
select="name"/>
- </td>
- <td class="th_text">
- <xsl:for-each
select="link_info">
-
<xsl:variable name="link_entity_origin"><xsl:value-of
select="link"/>&id=<xsl:value-of select="id"/></xsl:variable>
-
<xsl:variable name="lang_entity_statustext">
-
<xsl:value-of select="entry_date"/>
-
</xsl:variable>
- <a
href="{$link_entity_origin}" title="{statustext}"
onMouseout="window.status='';return true;">
-
<xsl:value-of select="id"/>
- </a>
-
<xsl:text> </xsl:text>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_details"/>
- </td>
- <td valign="top">
- <xsl:value-of
select="value_details"/>
- </td>
- </tr>
- <tr>
- <td class="th_text"
valign="top">
- <xsl:value-of
select="lang_additional_notes"/>
- </td>
- <xsl:choose>
- <xsl:when
test="additional_notes=''">
- <td
class="th_text">
-
<xsl:value-of select="lang_no_additional_notes"/>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td>
- <table
width="100%" cellpadding="2" cellspacing="2" align="center">
-
<xsl:apply-templates select="table_header_additional_notes"/>
-
<xsl:apply-templates select="additional_notes"/>
- </table>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_new_note"/>
- </td>
- <td>
- <textarea cols="60"
rows="10" name="values[note]" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_details_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </textarea>
- </td>
- </tr>
- <tr height="50">
- <td>
- <xsl:variable
name="lang_save">
- <xsl:value-of
select="lang_save"/>
- </xsl:variable>
- <input type="submit"
name="values[save]" value="{$lang_save}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_save_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </form>
- <tr>
- <td>
- <xsl:variable
name="done_action">
- <xsl:value-of
select="done_action"/>
- </xsl:variable>
- <xsl:variable name="lang_done">
- <xsl:value-of
select="lang_done"/>
- </xsl:variable>
- <form method="post"
action="{$done_action}">
- <input type="submit"
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_done_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </table>
- <hr noshade="noshade" width="100%" align="center"
size="1"/>
- <table width="80%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:choose>
- <xsl:when test="record_history=''">
- <tr>
- <td class="th_text"
align="center">
- <xsl:value-of
select="lang_no_history"/>
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates
select="table_header_history"/>
- <xsl:apply-templates
select="record_history"/>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </div>
- <hr noshade="noshade" width="100%" align="center" size="1"/>
- </xsl:template>
+ ]
+ </xsl:for-each>
+ <xsl:for-each select="myColumnDefs">
+ myColumnDefs[<xsl:value-of select="name"/>] =
<xsl:value-of select="values"/>
+ </xsl:for-each>
+ <xsl:for-each select="myButtons">
+ myButtons[<xsl:value-of select="name"/>] =
<xsl:value-of select="values"/>
+ </xsl:for-each>
+ </script>
+</xsl:template>
- <!-- New template-->
- <xsl:template match="table_header_additional_notes">
- <tr class="th">
- <td class="th_text" width="4%" align="right">
- <xsl:value-of select="lang_count"/>
- </td>
- <td class="th_text" width="10%" align="left">
- <xsl:value-of select="lang_date"/>
- </td>
- <td class="th_text" width="10%" align="left">
- <xsl:value-of select="lang_user"/>
- </td>
- <td class="th_text" width="10%" align="left">
- <xsl:value-of select="lang_note"/>
- </td>
- </tr>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="additional_notes">
- <tr>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@class">
- <xsl:value-of select="@class"/>
- </xsl:when>
- <xsl:when test="position() mod 2 = 0">
- <xsl:text>row_off</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>row_on</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td align="right">
- <xsl:value-of select="value_count"/>
- </td>
- <td align="left">
- <xsl:value-of select="value_date"/>
- </td>
- <td align="left">
- <xsl:value-of select="value_user"/>
- </td>
- <td align="left">
- <xsl:value-of select="value_note"/>
- </td>
- </tr>
- </xsl:template>
+<!-- New template-->
+<xsl:template match="table_header_additional_notes">
+ <tr class="th">
+ <td class="th_text" width="4%" align="right">
+ <xsl:value-of select="lang_count"/>
+ </td>
+ <td class="th_text" width="10%" align="left">
+ <xsl:value-of select="lang_date"/>
+ </td>
+ <td class="th_text" width="10%" align="left">
+ <xsl:value-of select="lang_user"/>
+ </td>
+ <td class="th_text" width="10%" align="left">
+ <xsl:value-of select="lang_note"/>
+ </td>
+ </tr>
+</xsl:template>
- <!-- New template-->
- <xsl:template match="table_header_history">
- <tr class="th">
- <td class="th_text" width="20%" align="left">
- <xsl:value-of select="lang_date"/>
- </td>
- <td class="th_text" width="10%" align="left">
- <xsl:value-of select="lang_user"/>
- </td>
- <td class="th_text" width="30%" align="left">
- <xsl:value-of select="lang_action"/>
- </td>
- <td class="th_text" width="10%" align="left">
- <xsl:value-of select="lang_new_value"/>
- </td>
- </tr>
- </xsl:template>
+<!-- New template-->
+<xsl:template match="additional_notes">
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@class">
+ <xsl:value-of select="@class"/>
+ </xsl:when>
+ <xsl:when test="position() mod 2 = 0">
+ <xsl:text>row_off</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>row_on</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <td align="right">
+ <xsl:value-of select="value_count"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="value_date"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="value_user"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="value_note"/>
+ </td>
+ </tr>
+</xsl:template>
- <!-- New template-->
- <xsl:template match="record_history">
- <tr>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@class">
- <xsl:value-of select="@class"/>
- </xsl:when>
- <xsl:when test="position() mod 2 = 0">
- <xsl:text>row_off</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>row_on</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td align="left">
- <xsl:value-of select="value_date"/>
- </td>
- <td align="left">
- <xsl:value-of select="value_user"/>
- </td>
- <td align="left">
- <xsl:value-of select="value_action"/>
- </td>
- <td align="left">
- <xsl:value-of select="value_new_value"/>
- </td>
- </tr>
- </xsl:template>
+<!-- New template-->
+<xsl:template match="table_header_history">
+ <tr class="th">
+ <td class="th_text" width="20%" align="left">
+ <xsl:value-of select="lang_date"/>
+ </td>
+ <td class="th_text" width="10%" align="left">
+ <xsl:value-of select="lang_user"/>
+ </td>
+ <td class="th_text" width="30%" align="left">
+ <xsl:value-of select="lang_action"/>
+ </td>
+ <td class="th_text" width="10%" align="left">
+ <xsl:value-of select="lang_new_value"/>
+ </td>
+ </tr>
+</xsl:template>
- <!-- New 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>
+<!-- New template-->
+<xsl:template match="record_history">
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@class">
+ <xsl:value-of select="@class"/>
+ </xsl:when>
+ <xsl:when test="position() mod 2 = 0">
+ <xsl:text>row_off</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>row_on</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <td align="left">
+ <xsl:value-of select="value_date"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="value_user"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="value_action"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="value_new_value"/>
+ </td>
+ </tr>
+</xsl:template>
- <!-- New template-->
- <xsl:template xmlns:php="http://php.net/xsl" match="vendor_email">
- <tr>
- <td>
- <input type="checkbox"
name="values[vendor_email][]" value="{email}">
- <xsl:attribute name="title">
- <xsl:value-of
select="php:function('lang', 'The address to which this order will be sendt')"/>
- </xsl:attribute>
- </input>
- </td>
- <td>
- <xsl:value-of select="email"/>
- </td>
- </tr>
- </xsl:template>
+<!-- New 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>
+
+<!-- New template-->
+<xsl:template xmlns:php="http://php.net/xsl" match="vendor_email">
+ <tr>
+ <td>
+ <input type="checkbox" name="values[vendor_email][]"
value="{email}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="php:function('lang', 'The address to which this order will be sendt')"/>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td>
+ <xsl:value-of select="email"/>
+ </td>
+ </tr>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/b_account_form.xsl
(from rev 12364,
branches/dev-syncromind/property/templates/base/b_account_form.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/b_account_form.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/b_account_form.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,48 @@
+
+<!-- $Id$ -->
+<xsl:template name="b_account_form">
+ <xsl:apply-templates select="b_account_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="b_account_data">
+ <script type="text/javascript">
+ self.name="first_Window";
+ function b_account_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="b_account_link"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+ </script>
+ <xsl:choose>
+ <xsl:when test="disabled='1'">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_b_account"/>
+ </label>
+ <input size="9" type="text"
value="{value_b_account_id}" readonly="readonly"/>
+ <input size="30" type="text"
value="{value_b_account_name}" readonly="readonly"/>
+ <input size="9" type="hidden"
name="b_account_id" value="{value_b_account_id}" readonly="readonly"/>
+ <input size="30" type="hidden"
name="b_account_name" value="{value_b_account_name}" readonly="readonly"/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:b_account_lookup()"
title="{lang_select_b_account_help}">
+ <xsl:value-of
select="lang_b_account"/>
+ </a>
+ </label>
+ <input size="9" type="text" name="b_account_id"
value="{value_b_account_id}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_b_account_help"/>
+ </xsl:attribute>
+ </input>
+ <input size="30" type="text"
name="b_account_name" value="{value_b_account_name}"
onClick="b_account_lookup();" readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_b_account_help"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/b_account_view.xsl
(from rev 12364,
branches/dev-syncromind/property/templates/base/b_account_view.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/b_account_view.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/b_account_view.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,18 @@
+
+<!-- $Id$ -->
+<xsl:template name="b_account_view">
+ <xsl:apply-templates select="b_account_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="b_account_data">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_b_account"/>
+ </label>
+ <xsl:value-of select="value_b_account_id"/>
+ <xsl:text> [</xsl:text>
+ <xsl:value-of select="value_b_account_name"/>
+ <xsl:text>]</xsl:text>
+ </div>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/contact_form.xsl (from
rev 12364, branches/dev-syncromind/property/templates/base/contact_form.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/contact_form.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/contact_form.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,61 @@
+
+<!-- $Id$ -->
+<xsl:template name="contact_form">
+ <xsl:apply-templates select="contact_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="contact_data">
+ <script type="text/javascript">
+ self.name="first_Window";
+ function <xsl:value-of select="field"/>_contact_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="contact_link"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+ </script>
+ <div class="pure-control-group">
+
+ <div class="pure-u-1 pure-u-md-1-3">
+ <label for='contact'>
+ <a href="javascript:{field}_contact_lookup()"
title="{lang_select_contact_help}">
+ <xsl:value-of select="lang_contact"/>
+ </a>
+ </label>
+ <div class="pure-u-md-1-3">
+ <table id = 'contact'>
+ <tr>
+ <td>
+ <input type="hidden"
name="{field}" value="{value_contact_id}">
+ </input>
+ <input size="30"
type="text" name="{field}_name" value="{value_contact_name}"
onClick="{field}_contact_lookup();" readonly="readonly">
+ <xsl:attribute
name="title">
+
<xsl:value-of select="lang_select_contact_help"/>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when
test="value_contact_tel!=''">
+ <tr>
+ <td>
+
<xsl:value-of select="value_contact_tel"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when
test="value_contact_email!=''">
+ <tr>
+ <td>
+ <a
href="mailto:{value_contact_email}">
+
<xsl:value-of select="value_contact_email"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </table>
+ </div>
+ </div>
+ </div>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/contact_view.xsl (from
rev 12364, branches/dev-syncromind/property/templates/base/contact_view.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/contact_view.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/contact_view.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,45 @@
+ <!-- $Id$ -->
+ <xsl:template name="contact_form">
+ <xsl:apply-templates select="contact_data"/>
+ </xsl:template>
+
+ <!-- New template-->
+ <xsl:template match="contact_data">
+ <div class="pure-control-group">
+
+ <div class="pure-u-1 pure-u-md-1-3">
+ <label>
+ <xsl:value-of select="lang_contact"/>
+ </label>
+ <div class="pure-u-md-1-3">
+ <table>
+ <tr>
+ <td>
+ <xsl:value-of
select="value_contact_name"/>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when
test="value_contact_tel!=''">
+ <tr>
+ <td>
+
<xsl:value-of select="value_contact_tel"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when
test="value_contact_email!=''">
+ <tr>
+ <td>
+ <a
href="mailto:{value_contact_email}">
+
<xsl:value-of select="value_contact_email"/>
+ </a>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </table>
+ </div>
+ </div>
+ </div>
+ </xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/ecodimb_form.xsl (from
rev 12364, branches/dev-syncromind/property/templates/base/ecodimb_form.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/ecodimb_form.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/ecodimb_form.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,48 @@
+
+<!-- $Id$ -->
+<xsl:template name="ecodimb_form">
+ <xsl:apply-templates select="ecodimb_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="ecodimb_data">
+ <script type="text/javascript">
+ self.name="first_Window";
+ function ecodimb_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="ecodimb_url"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+ </script>
+ <xsl:choose>
+ <xsl:when test="disabled='1'">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_ecodimb"/>
+ </label>
+ <input size="9" type="text"
value="{value_ecodimb}" readonly="readonly"/>
+ <input size="30" type="text"
value="{value_ecodimb_descr}" readonly="readonly"/>
+ <input size="9" type="hidden" name="ecodimb"
value="{value_ecodimb}" readonly="readonly"/>
+ <input size="30" type="hidden"
name="ecodimb_descr" value="{value_ecodimb_descr}" readonly="readonly"/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:ecodimb_lookup()"
title="{lang_select_ecodimb_help}">
+ <xsl:value-of
select="lang_ecodimb"/>
+ </a>
+ </label>
+ <input size="9" type="text" name="ecodimb"
value="{value_ecodimb}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_ecodimb_help"/>
+ </xsl:attribute>
+ </input>
+ <input size="30" type="text"
name="ecodimb_descr" value="{value_ecodimb_descr}" onClick="ecodimb_lookup();"
readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_ecodimb_help"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/ecodimb_view.xsl (from
rev 12364, branches/dev-syncromind/property/templates/base/ecodimb_view.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/ecodimb_view.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/ecodimb_view.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,18 @@
+
+<!-- $Id$ -->
+<xsl:template name="ecodimb_view">
+ <xsl:apply-templates select="ecodimb_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="ecodimb_data">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_ecodimb"/>
+ </label>
+ <xsl:value-of select="value_ecodimb"/>
+ <xsl:text> [</xsl:text>
+ <xsl:value-of select="value_ecodimb_descr"/>
+ <xsl:text>]</xsl:text>
+ </div>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/files.xsl (from rev
12364, branches/dev-syncromind/property/templates/base/files.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/files.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/files.xsl 2014-11-23
20:32:39 UTC (rev 12368)
@@ -0,0 +1,43 @@
+
+<!-- $Id$ -->
+<!-- New template-->
+<xsl:template xmlns:php="http://php.net/xsl" name="file_upload">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="php:function('lang', 'upload
file')"/>
+ </label>
+ <input type="file" name="file" size="40">
+ <xsl:attribute name="title">
+ <xsl:value-of select="php:function('lang',
'Select file to upload')"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ <xsl:choose>
+ <xsl:when test="multiple_uploader!=''">
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:fileuploader()">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="php:function('lang', 'upload multiple files')"/>
+ </xsl:attribute>
+ <xsl:value-of
select="php:function('lang', 'upload multiple files')"/>
+ </a>
+ </label>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template xmlns:php="http://php.net/xsl" name="jasper_upload">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="php:function('lang', 'jasper
upload')"/>
+ </label>
+ <input type="file" name="jasperfile" size="40">
+ <xsl:attribute name="title">
+ <xsl:value-of select="php:function('lang',
'upload a jasper definition file')"/>
+ </xsl:attribute>
+ </input>
+ </div>
+</xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/vendor_form.xsl (from
rev 12364, branches/dev-syncromind/property/templates/base/vendor_form.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/vendor_form.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/vendor_form.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,33 @@
+ <!-- $Id$ -->
+ <xsl:template name="vendor_form">
+ <xsl:apply-templates select="vendor_data"/>
+ </xsl:template>
+
+ <!-- New template-->
+ <xsl:template match="vendor_data">
+ <script type="text/javascript">
+ self.name="first_Window";
+ function vendor_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="vendor_link"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+
+ </script>
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:vendor_lookup()"
title="{lang_select_vendor_help}">
+ <xsl:value-of select="lang_vendor"/>
+ </a>
+ </label>
+ <input size="5" type="text" id="vendor_id"
name="vendor_id" value="{value_vendor_id}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_vendor_help"/>
+ </xsl:attribute>
+ </input>
+ <input size="30" type="text" name="vendor_name"
value="{value_vendor_name}" onClick="vendor_lookup();" readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_vendor_help"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ </xsl:template>
Copied: branches/dev-syncromind/property/templates/pure/vendor_view.xsl (from
rev 12364, branches/dev-syncromind/property/templates/base/vendor_view.xsl)
===================================================================
--- branches/dev-syncromind/property/templates/pure/vendor_view.xsl
(rev 0)
+++ branches/dev-syncromind/property/templates/pure/vendor_view.xsl
2014-11-23 20:32:39 UTC (rev 12368)
@@ -0,0 +1,17 @@
+
+<!-- $Id$ -->
+<xsl:template name="vendor_view">
+ <xsl:apply-templates select="vendor_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="vendor_data">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_vendor"/>
+ </label>
+ <xsl:value-of select="value_vendor_id"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="value_vendor_name"/>
+ </div>
+</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12368] uitts: start converting forms to pure-css,
Sigurd Nes <=