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

How to display two fields on same line ?

More
13 Jun 2014 15:32 - 13 Jun 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 Jun 2014 15:47 by Jean-Luc.

Please Log in or Create an account to join the conversation.

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

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
13 Jun 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 Log in or Create an account to join the conversation.

More
13 Jun 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 Log in or Create an account to join the conversation.

More
13 Jun 2014 17:24 - 13 Jun 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 Jun 2014 17:39 by Jean-Luc.

Please Log in or Create an account to join the conversation.

More
13 Jun 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 Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.047 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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