[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 100/219: CSS input field with focus 0001302:
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 100/219: CSS input field with focus 0001302: FICHES: mise en évidence champs NOM/POSTE/CODE |
Date: |
Mon, 18 Dec 2017 13:22:45 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7049a96ab5dedcec34dbd5fe2e59055e4a540baf
Author: Dany De Bontridder <address@hidden>
Date: Mon Oct 23 10:27:57 2017 +0200
CSS input field with focus
0001302: FICHES: mise en évidence champs NOM/POSTE/CODE
---
html/style-r692.css | 18 +++++++++++++++---
include/class/fiche.class.php | 15 ++++++++++++---
2 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/html/style-r692.css b/html/style-r692.css
index e6ae987..18c6a9e 100644
--- a/html/style-r692.css
+++ b/html/style-r692.css
@@ -35,6 +35,11 @@ input{
font-size:14px;
}
+input:focus {
+ border:solid 1px orange;
+ margin:1px;
+ background-color: lightyellow;
+}
.notice {
color:#FF0000;
font-style: italic;
@@ -260,6 +265,7 @@ tr.odd {
.highlight {
font-weight: bolder;
font-size:14px;
+ font-size:1.05rem;
}
tr.highlight {
font-weight: bold;
@@ -465,10 +471,10 @@ a.document:hover {
margin:1px;
border-radius: 2px;
}
-.input_text:hover {
- border:solid 1px #0000FF;
+.input_text:focus {
+ border:solid 1px orange;
margin:1px;
- background-color: #F93;
+ background-color: lightyellow;
}
h1.legend, legend {
font-weight: bold;
@@ -1189,6 +1195,7 @@ filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#8a8d9b', end
padding-bottom: 2px;
font-size: 1rem;
+ height: 25px;
}
h3.title {
color: #0000FF;
@@ -1264,6 +1271,11 @@ textarea.itextarea{
height:120px;
}
+textarea.itextarea:focus {
+ border:solid 1px orange;
+ margin:1px;
+ background-color: lightyellow;
+}
div#notice {
position:absolute;
right:5%;
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 9848dc9..23d6049 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -464,7 +464,7 @@ class Fiche
}
}
- $r.="<TR>".td(_("Poste Comptable"),' class="input_text" '
).td($w->input().$msg)."</TR>";
+ $r.="<TR>".td(_("Poste Comptable"),' class="highlight
input_text" ' ).td($w->input().$msg)."</TR>";
continue;
}
elseif ( $attr->ad_id == ATTR_DEF_TVA)
@@ -529,7 +529,11 @@ class Fiche
{
$bulle=HtmlInput::infobulle(21);
}
- $r.="<TR>" . td(_($w->label)." $bulle", ' class="input_text" ') .
td($w->input()." $msg")." </TR>";
+ if ($attr->ad_id == ATTR_DEF_NAME || $attr->ad_id==
ATTR_DEF_QUICKCODE)
+ $class=" input_text highlight info";
+ else
+ $class="input_text";
+ $r.="<TR>" . td(_($w->label)." $bulle", ' class="'.$class.'" ') .
td($w->input()." $msg")." </TR>";
}
$r.= '</table>';
return $r;
@@ -708,7 +712,12 @@ class Fiche
{
$bulle=HtmlInput::infobulle(21);
}
- $ret.="<TR>".td(_($r->ad_text).$bulle).td($w->input()." ".$msg)."
</TR>";
+ if ($r->ad_id == ATTR_DEF_NAME || $r->ad_id==
ATTR_DEF_QUICKCODE||$r->ad_id==ATTR_DEF_ACCOUNT)
+ $class=" input_text highlight info";
+ else
+ $class="input_text";
+
+
$ret.="<TR>".td(_($r->ad_text).$bulle,'class="'.$class.'"').td($w->input()."
".$msg)." </TR>";
}
$ret.="</table>";
- [Noalyss-commit] [noalyss] 149/219: HttpInput: protect against injection, (continued)
- [Noalyss-commit] [noalyss] 149/219: HttpInput: protect against injection, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 47/219: Task #0001462: CA - apostrophe non affichée Use of ManageTableSQL for improving adding , update and delete analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 29/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Esthetique show the autoreversed VAT, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 204/219: Bug : when pressing on the template button, the input field to focus is not diplaid and the javascript gives an exception, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 206/219: typo, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 88/219: Task #0001481: Encodage Vente, Achat, Fin ou OD 1. S'il n'y a qu'une seule catégorie de fiche , il n'est plus nécessaire d'afficher le choix (puisqu'il n'y en a qu'un) 2. Avoir pour chaque ligne un bouton ajout fiche, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 212/219: Esthetic : show ledger : width of the box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 179/219: Fix ID problem, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 167/219: Space, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 138/219: Javascript : small error, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 100/219: CSS input field with focus 0001302: FICHES: mise en évidence champs NOM/POSTE/CODE,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 26/219: task #1438 Remplacement de HtmlInput par Http_Input, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 91/219: Esthetic : change button appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 122/219: Anc ODS : check date is valid and comment not empty, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 199/219: Task #001381 : ergonomy after selecting a filter remove the box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 187/219: fix bug with filter_card : encodeURI not needed, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 18/219: remove href=javascript:void(0) + HtmlInput::generate_id replaced by uniqid, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 90/219: Task #0001481: Encodage Vente, Achat, Fin ou OD 1. S'il n'y a qu'une seule catégorie de fiche , il n'est plus nécessaire d'afficher le choix (puisqu'il n'y en a qu'un) 2. Avoir pour chaque ligne un bouton ajout fiche, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 62/219: Analytic : change the name and description in Ajax, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 54/219: NEW : ICard , you can hide or show the accounting in the search box with the functions ICard->hide_accounting and ICard->show_accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 67/219: Icon : for Inplace Edit field, Dany De Bontridder, 2017/12/18