View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - How to display two fields on same line ? - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

How to display two fields on same line ?

More
13 Jui 2014 15:32 - 13 Jui 2014 15:47 #1 by Jean-Luc
I added for clients a Taxnum field as varchar(32), for VAT Nr.

How to do to display it near the field 'tax' on the same line ?
Last edit: 13 Jui 2014 15:47 by Jean-Luc.

Please Connexion or Create an account to join the conversation.

More
13 Jui 2014 16:16 #2 by babynus
add "nobr" attribute on previous field.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
13 Jui 2014 16:31 #3 by Jean-Luc
Added
private static $_fieldsAttributes=array("tax"=>"nobr"
  );
and
protected function getStaticFieldsAttributes() {
    return self::$_fieldsAttributes;
  }

in model/Client.php (no $_fieldsAttributes was defined in this module, so I took example on model/Project.php)

… but don’t works !

I probably missed something, but what ?

Please Connexion or Create an account to join the conversation.

More
13 Jui 2014 17:05 #4 by babynus
You did it right.
I don't know why it dow not work.

Possibly one of the two fields is too big.
You can try to add attribute "smallWidth" or "mediumWidth"

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
13 Jui 2014 17:24 - 13 Jui 2014 17:39 #5 by Jean-Luc
Indeed, field size problem. Reduced "taxnum" from 32 to 24 bytes, and this field comes besides "tax". :)

… but without its label… :pinch:

Is another parameter requested ? :(

Note: only field size reduction works OK. "smallWidth" permits 32 bytes, but strongly reduces (too) the input/display field.

Edit : "mediumWidth" gives a better width.
Last edit: 13 Jui 2014 17:39 by Jean-Luc.

Please Connexion or Create an account to join the conversation.

More
13 Jui 2014 17:45 #6 by babynus
No.
nobr hides label of second field.
In common design, if fileds are on same line, then label if for both.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.052 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.