Skip to content

Commit 95bcb80

Browse files
author
Olivier Giulieri
committed
Implemented "csslabel" field attribute.
1 parent e16960a commit 95bcb80

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

dist/evolutility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4384,7 +4384,7 @@ Evol.Dico = {
43844384

43854385
HTMLFieldLabel: function (fld, mode) {
43864386
var h=[];
4387-
h.push('<div class="evol-field-label" id="', fld.id, '-lbl"><label class="control-label" for="', fld.id, '">', fld.label);
4387+
h.push('<div class="evol-field-label" id="', fld.id, '-lbl"><label class="control-label ',fld.csslabel?fld.csslabel:'','" for="', fld.id, '">', fld.label);
43884388
if (mode != 'view' && fld.required){
43894389
h.push(Evol.UI.html.required);
43904390
}

dist/evolutility.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/ui-model.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ <h1>field</h1>
191191
</td>
192192
</tr>
193193
<tr>
194-
<td>csslabel<span class="evol-asterix">*</span>
194+
<td>csslabel
195195
</td>
196-
<td>CSS class name for the specific field label (in modes Edit and View).
196+
<td>CSS class name for the specific field label (in views Edit, View and Mini).
197197
</td>
198198
</tr>
199199
<tr>

js/dico.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ Evol.Dico = {
398398
break;
399399
case fTypes.money:
400400
h.push('<div class="input-group">', EvoUI.input.typeFlag('$'),
401-
EvoUI.input.textInt(fid, fv), '</div>');
401+
EvoUI.input.textInt(fid, fv),
402+
'</div>');
402403
break;
403404
case fTypes.bool:
404405
h.push(EvoUI.input.checkbox(fid, fv));
@@ -433,7 +434,8 @@ Evol.Dico = {
433434
break;
434435
case fTypes.email:
435436
h.push('<div class="input-group">', EvoUI.input.typeFlag(Evol.i18n.sgn_email),
436-
EvoUI.input.text(fid, fv, fld), '</div>');
437+
EvoUI.input.text(fid, fv, fld),
438+
'</div>');
437439
break;
438440
case fTypes.url:
439441
h.push(EvoUI.input.text(fid, fv, fld));
@@ -465,7 +467,8 @@ Evol.Dico = {
465467

466468
HTMLFieldLabel: function (fld, mode) {
467469
var h=[];
468-
h.push('<div class="evol-field-label" id="', fld.id, '-lbl"><label class="control-label" for="', fld.id, '">', fld.label);
470+
h.push('<div class="evol-field-label" id="', fld.id, '-lbl"><label class="control-label ',fld.csslabel?fld.csslabel:'','" for="', fld.id, '">',
471+
fld.label);
469472
if (mode != 'view' && fld.required){
470473
h.push(Evol.UI.html.required);
471474
}

0 commit comments

Comments
 (0)