[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11976] Property: add class for required fields
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11976] Property: add class for required fields |
Date: |
Thu, 15 May 2014 09:25:08 +0000 |
Revision: 11976
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11976
Author: sigurdne
Date: 2014-05-15 09:25:07 +0000 (Thu, 15 May 2014)
Log Message:
-----------
Property: add class for required fields
Modified Paths:
--------------
trunk/property/inc/class.uirequest.inc.php
trunk/property/templates/base/css/property.css
trunk/property/templates/base/request.xsl
Modified: trunk/property/inc/class.uirequest.inc.php
===================================================================
--- trunk/property/inc/class.uirequest.inc.php 2014-05-15 09:19:33 UTC (rev
11975)
+++ trunk/property/inc/class.uirequest.inc.php 2014-05-15 09:25:07 UTC (rev
11976)
@@ -1754,7 +1754,7 @@
'lang_cat_statustext'
=> lang('Select the category the request belongs to. To do not use a
category select NO CATEGORY'),
'value_cat_id'
=> $values['cat_id'],
- 'cat_select'
=> $this->cats->formatted_xslt_list(array('select_name' =>
'values[cat_id]','selected' => $values['cat_id'])),
+ 'cat_select'
=> $this->cats->formatted_xslt_list(array('select_name' =>
'values[cat_id]','selected' => $values['cat_id'], 'class' => 'required')),
'lang_coordinator'
=>
isset($this->config->config_data['lang_request_coordinator']) &&
$this->config->config_data['lang_request_coordinator'] ?
$this->config->config_data['lang_request_coordinator'] : lang('request
coordinator'),
Modified: trunk/property/templates/base/css/property.css
===================================================================
--- trunk/property/templates/base/css/property.css 2014-05-15 09:19:33 UTC
(rev 11975)
+++ trunk/property/templates/base/css/property.css 2014-05-15 09:25:07 UTC
(rev 11976)
@@ -45,3 +45,8 @@
.rightClasss {white-space:nowrap; text-align: right!important;}
.centerClasss {text-align: center!important;}
+
+.required {
+border: 1px solid red
+}
+
Modified: trunk/property/templates/base/request.xsl
===================================================================
--- trunk/property/templates/base/request.xsl 2014-05-15 09:19:33 UTC (rev
11975)
+++ trunk/property/templates/base/request.xsl 2014-05-15 09:25:07 UTC (rev
11976)
@@ -296,7 +296,7 @@
<xsl:value-of select="php:function('lang',
'request status')"/>
</label>
<br/>
-
<select name="values[status]" class="forms"
style="width:200px;">
+
<select name="values[status]" class='required'
style="width:200px;">
<xsl:attribute name="title">
<xsl:value-of
select="php:function('lang', 'Set the status of the request')"/>
</xsl:attribute>
@@ -391,7 +391,7 @@
<xsl:value-of
select="php:function('lang', 'building part')"/>
</label>
<br/>
- <select
name="values[building_part]">
+ <select
class='required' name="values[building_part]">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select building part')"/>
</xsl:attribute>
@@ -408,7 +408,7 @@
<xsl:value-of
select="php:function('lang', 'request action title')"/>
</label>
<br/>
- <input type="text"
name="values[title]" value="{value_title}" size="120"
title="{$lang_request_title}">
+ <input class='required'
type="text" name="values[title]" value="{value_title}" size="120"
title="{$lang_request_title}">
</input>
<br/>
<xsl:variable
name="lang_request_description">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11976] Property: add class for required fields,
Sigurd Nes <=