[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText can have the CSSclass label_item |
Date: |
Mon, 18 Dec 2017 13:22:53 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit d8a9bf66352a76a79477131eeaca2c99294285af
Author: Dany De Bontridder <address@hidden>
Date: Sat Nov 4 11:37:44 2017 +0100
CSS Esthetic : comment span or IText can have the CSSclass label_item
---
html/style-r692.css | 16 ++++++++++++----
include/class/acc_ledger_fin.class.php | 6 +++---
include/class/acc_ledger_purchase.class.php | 3 ++-
include/class/acc_ledger_sold.class.php | 14 ++++++++------
include/lib/ispan.class.php | 6 ++++--
5 files changed, 29 insertions(+), 16 deletions(-)
diff --git a/html/style-r692.css b/html/style-r692.css
index 32ac6f9..98a914e 100644
--- a/html/style-r692.css
+++ b/html/style-r692.css
@@ -1075,9 +1075,9 @@ a.line:hover,div_content a.line
{
color:white;
text-decoration:none;
- margin-left: 2px;
+ margin-left: 6px;
margin-right:6px;
- margin-top:0px;
+ /*! padding-top:10px; */
font-size:14px;
font-size:1rem;
cursor: pointer;
@@ -1086,7 +1086,8 @@ a.line:hover,div_content a.line
}
#close_div:hover
{
- background-color: #F93;
+ background-color: white;
+ color: blue;
}
#popmeout
{
@@ -1409,7 +1410,7 @@ div.bxbutton
float:right;
height:10px;
display:block;
- margin-top:0%;
+ margin-top:3px;
margin-right:0.48%;
}
div.inner_box tr.odd {
@@ -2140,4 +2141,11 @@ span.inplace_edit_input
div.content a.arrow {
background-color:white;
color:black;
+}
+/*
+ * Span or input-text to contain name of a card
+ */
+.label_item {
+ width: 500px;
+ display:block;
}
\ No newline at end of file
diff --git a/include/class/acc_ledger_fin.class.php
b/include/class/acc_ledger_fin.class.php
index 6541bb9..f84d904 100644
--- a/include/class/acc_ledger_fin.class.php
+++ b/include/class/acc_ledger_fin.class.php
@@ -415,9 +415,9 @@ class Acc_Ledger_Fin extends Acc_Ledger
$array[$i]['cname'] = $wcard_name->input();
// Comment
- $wComment = new IText("e_other$i" . "_comment",
$tiers_comment);
-
- $wComment->size = 35;
+ $wComment = new IText("e_other$i" . "_comment",
$tiers_comment);
+ $wComment->style='class="input_text label_item"';
+
$wComment->setReadOnly($pview_only);
$array[$i]['comment'] = $wComment->input();
// amount
diff --git a/include/class/acc_ledger_purchase.class.php
b/include/class/acc_ledger_purchase.class.php
index 5f8c0a5..88dc863 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1231,10 +1231,11 @@ class Acc_Ledger_Purchase extends Acc_Ledger
if ( $g_parameter->MY_UPDLAB == 'Y')
{
$Span=new IText("e_march".$i."_label");
- $Span->css_size="40";
+ $Span->style='class="input_text label_item"';
} else
{
$Span=new ISpan("e_march".$i."_label");
+ $Span->extra='class="label_item"';
}
$Span->value=$march_label;
$Span->setReadOnly(false);
diff --git a/include/class/acc_ledger_sold.class.php
b/include/class/acc_ledger_sold.class.php
index e82c9ab..df377c5 100644
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@ -1259,12 +1259,14 @@ EOF;
$tvac->value = 0;
$array[$i]['tvac'] = $tvac->input();
- if ($g_parameter->MY_UPDLAB == 'Y') {
- $Span = new IText("e_march" . $i . "_label");
-
- $Span->size= "40";
- } else {
- $Span = new ISpan("e_march" . $i . "_label");
+ if ( $g_parameter->MY_UPDLAB == 'Y')
+ {
+ $Span=new IText("e_march".$i."_label");
+ $Span->style='class="input_text label_item"';
+ } else
+ {
+ $Span=new ISpan("e_march".$i."_label");
+ $Span->extra='class="label_item"';
}
$Span->value = $march_label;
$Span->setReadOnly(false);
diff --git a/include/lib/ispan.class.php b/include/lib/ispan.class.php
index b65eb8b..7e87950 100644
--- a/include/lib/ispan.class.php
+++ b/include/lib/ispan.class.php
@@ -28,7 +28,8 @@ class ISpan extends HtmlInput
public function __construct($p_name="",$p_value="")
{
parent::__construct($p_name,$p_value);
- $this->style="display:inline";
+ $this->style="";
+ $this->extra="";
}
/*!\brief show the html input of the widget, the span is always readonly
*/
@@ -38,9 +39,10 @@ class ISpan extends HtmlInput
$this->value=($p_value==null)?$this->value:$p_value;
- $r=sprintf('<span style="%s" id="%s">%s </span>',
+ $r=sprintf('<span style="%s" id="%s" %s>%s </span>',
$this->style,
$this->name,
+ $this->extra,
$this->value
);
- [Noalyss-commit] [noalyss] 160/219: INSTALL : check PHP version minimum 5.5, (continued)
- [Noalyss-commit] [noalyss] 160/219: INSTALL : check PHP version minimum 5.5, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 219/219: Task #1378 : show only the ledger of a given type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 215/219: ICheckBox : add attribute to allow to select checkbox thanks its attribute with the js select_checkbox_attribute, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 170/219: Traduction, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 216/219: Task #1378 : select ledger thanks their type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 201/219: Task #0001507: Click sur détail opérations apparaît trop haut Problem comes from window.onload loaded with detail operation. Move into do.php , recherche.php , popup.php from script.js, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 40/219: Test : utilisation nouvelle police nouveau theme Stock... Correction bug http_input SQL : correction table jnt_letter , col. inutile, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 86/219: Improve appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is not known, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 98/219: esthetic change icon, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText can have the CSSclass label_item,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 117/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN remove dead code, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 153/219: HtmlInput: fix small bug in fct image_click, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 158/219: Fix issue with open_basedir, sometime set in the server config, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 148/219: ANC : esthetic ; remove inline CSS, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 156/219: Task #1489: Procédure d'ouverture d'exercice : libellé ambigu Amélioration esthétique & ergonomie, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 77/219: PRINTJRN : enlève num opération, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 145/219: ANC : Bouton "recherche" sont des loupes, ajout title, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 168/219: Task #1476 : prevent the use of some accounting Code cleaning , remove obsolete files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 161/219: Noalyss_SQL :: count add a space, Dany De Bontridder, 2017/12/18