mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
- LSform :
-> Ajout d'un espace entre deux champs de formulaire d'un même attribut -> Uniformisation de la non-appartenance des li a la classe LSform
This commit is contained in:
parent
22e6e9ad77
commit
6f26e868b5
5 changed files with 14 additions and 13 deletions
|
@ -65,7 +65,7 @@ class LSformElement_select extends LSformElement {
|
|||
else {
|
||||
$return['html']="<ul class='LSform'>\n";
|
||||
foreach ($this -> values as $value) {
|
||||
$return['html'].="<li class='LSform'>".$this -> params['text_possible_values'][$value]."</strong></li>";
|
||||
$return['html'].="<li>".$this -> params['text_possible_values'][$value]."</strong></li>";
|
||||
}
|
||||
$return['html'].="</ul>\n";
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ class LSformElement_select_object extends LSformElement {
|
|||
|
||||
|
||||
if (!$this -> isFreeze()) {
|
||||
$addBtn="<li class='LSform LSformElement_select_object_addBtn'>
|
||||
$addBtn="<li class='LSformElement_select_object_addBtn'>
|
||||
<a href='select.php?LSobject=".$this -> selectableObject."' class='LSformElement_select_object LSformElement_select_object_addBtn' id='a_LSformElement_select_object_".$this -> name."_$id'>"._('Modifier')."</a>\n
|
||||
<input type='hidden' name='LSformElement_select_object_objecttype' id='LSformElement_select_object_objecttype_$id' value='".$this -> selectableObject."' />\n
|
||||
</li>\n";
|
||||
|
@ -66,7 +66,7 @@ class LSformElement_select_object extends LSformElement {
|
|||
$return['html']="<ul class='LSform ".$class."' id='LSformElement_select_object_".$this -> name."_$id'>\n";
|
||||
$return['html'].=$addBtn;
|
||||
foreach ($this -> values as $value => $txt) {
|
||||
$return['html'].="<li class='LSform ".$class."'><a href='view.php?LSobject=".$this -> selectableObject."&dn=".$value."' title='"._('Voir')." ' class='LSformElement_select_object'>".$txt."</a><input type='hidden' class='LSformElement_select_object' name='".$this -> name."[]' value='".$value."' />$delete</li>\n";
|
||||
$return['html'].="<li class='".$class."'><a href='view.php?LSobject=".$this -> selectableObject."&dn=".$value."' title='"._('Voir')." ' class='LSformElement_select_object'>".$txt."</a><input type='hidden' class='LSformElement_select_object' name='".$this -> name."[]' value='".$value."' />$delete</li>\n";
|
||||
}
|
||||
$return['html'].="</ul>\n";
|
||||
if (!$this -> isFreeze()) {
|
||||
|
|
|
@ -46,28 +46,28 @@ class LSformElement_ssh_key extends LSformElement {
|
|||
$return['html'] = "<ul class='LSform'>\n";
|
||||
if (!$this -> isFreeze()) {
|
||||
if (empty($this -> values)) {
|
||||
$return['html'] .= "<li class='LSform'>".$this -> getEmptyField()."</li>\n";
|
||||
$return['html'] .= "<li>".$this -> getEmptyField()."</li>\n";
|
||||
}
|
||||
else {
|
||||
foreach($this -> values as $value) {
|
||||
$multiple = $this -> getMultipleData();
|
||||
$id = "LSform_".$this -> name."_".rand();
|
||||
$return['html'].="<li class='LSform LSformElement_ssh_key'><textarea name='".$this -> name."[]' id='".$id."' class='LSform LSformElement_ssh_key'>".$value."</textarea>\n".$multiple."</li>";
|
||||
$return['html'].="<li class='LSformElement_ssh_key'><textarea name='".$this -> name."[]' id='".$id."' class='LSform LSformElement_ssh_key'>".$value."</textarea>\n".$multiple."</li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (empty($this -> values)) {
|
||||
$return['html'].="<li class='LSform'>"._('Aucune valeur definie')."</li>\n";
|
||||
$return['html'].="<li>"._('Aucune valeur definie')."</li>\n";
|
||||
}
|
||||
else {
|
||||
$GLOBALS['LSsession'] -> addJSscript('LSformElement_ssh_key.js');
|
||||
foreach ($this -> values as $value) {
|
||||
if (ereg('^ssh-([a-z]+) (.*)== (.*)$',$value,$regs)) {
|
||||
$return['html'].="<li class='LSform'><span class='LSformElement_ssh_key_short_display' title='"._("Cliquer pour afficher la valeur complète")."'>".substr($regs[2],0,10)."...</span> (Type : ".$regs[1].") <a href='mailto:".$regs[3]."'>".$regs[3]."</a><p class='LSformElement_ssh_key_value'>".$value."</p></li>\n";
|
||||
$return['html'].="<li><span class='LSformElement_ssh_key_short_display' title='"._("Cliquer pour afficher la valeur complète")."'>".substr($regs[2],0,10)."...</span> (Type : ".$regs[1].") <a href='mailto:".$regs[3]."'>".$regs[3]."</a><p class='LSformElement_ssh_key_value'>".$value."</p></li>\n";
|
||||
}
|
||||
else {
|
||||
$return['html'].="<li class='LSform'><span class='LSformElement_ssh_key_short_display'>".substr($value,0,15)."...</span> ("._('Type non reconnu').")<p class='LSformElement_ssh_key_value'>".$value."</p></li>\n";
|
||||
$return['html'].="<li><span class='LSformElement_ssh_key_short_display'>".substr($value,0,15)."...</span> ("._('Type non reconnu').")<p class='LSformElement_ssh_key_value'>".$value."</p></li>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,23 +45,23 @@ class LSformElement_textarea extends LSformElement {
|
|||
$return['html'] = "<ul class='LSform'>\n";
|
||||
if (!$this -> isFreeze()) {
|
||||
if (empty($this -> values)) {
|
||||
$return['html'] .= "<li class='LSform'>".$this -> getEmptyField()."</li>\n";
|
||||
$return['html'] .= "<li>".$this -> getEmptyField()."</li>\n";
|
||||
}
|
||||
else {
|
||||
foreach($this -> values as $value) {
|
||||
$multiple = $this -> getMultipleData();
|
||||
$id = "LSform_".$this -> name."_".rand();
|
||||
$return['html'].="<li class='LSform'><textarea name='".$this -> name."[]' id='".$id."' class='LSform'>".$value."</textarea>\n".$multiple."</li>";
|
||||
$return['html'].="<li><textarea name='".$this -> name."[]' id='".$id."' class='LSform'>".$value."</textarea>\n".$multiple."</li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (empty($this -> values)) {
|
||||
$return['html'].="<li class='LSform'>"._('Aucune valeur definie')."</li>\n";
|
||||
$return['html'].="<li>"._('Aucune valeur definie')."</li>\n";
|
||||
}
|
||||
else {
|
||||
foreach ($this -> values as $value) {
|
||||
$return['html'].="<li class='LSform'>".$value."</li>\n";
|
||||
$return['html'].="<li>".$value."</li>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,8 +34,9 @@ ul.LSform {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
li.LSform {
|
||||
ul.LSform li {
|
||||
overflow: auto;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue