Would it be possible to include this change to the required field indicator character please?

Support forumWould it be possible to include this change to the required field indicator character please?
Joerg K. Staff asked 7 years ago
Hello Nikolar, at my site I made these changes to my ea_bootstrap.tpl.php at lines 65+66 and changed these to:
  <label class="col-sm-4 control-label"><%= item.label %><% if (item.required == "1") { %><span class="ea-required">*</span><% }
%>: </label>
I removed the extra white spaces and added a CSS class in order to make the required sign more visible. I also added the following CSS:
 .ea-required { position: relative; bottom: 0.5em; color: red; font-size: 0.8em; }
And my translation has also got the span and class around the required sign. Original English: Fields with * are required NEW English: Fields with <span class="ea-required">*</span> are required German: Erforderliche Formularfelder sind mit einem <span class="ea-required">*</span> gekennzeichnet As I only use the bootstrap I did not made any changes to the other templates.  
Joerg K. Staff replied 7 years ago

BTW as far as I know there should never be a white space in front of a colon.

So it should be word: and not word :

Maybe this is the case for your language but not for German or English! So it might be nice to get the white spaces stripped out for all locations!? Even for the admin interface…!?

1 Answers
Nikola Loncar Staff answered 7 years ago
Hi Joerg, I will check that template and add class there. You are right it can be customize easily if there is a custom class there. Best regards, Nikola
Joerg K. Staff replied 7 years ago

Thank you!