Style field information

hinted-selects
Vitaliy Filippov 2014-09-08 16:55:14 +04:00
parent 8bc7cbea86
commit 82416cf8f3
2 changed files with 24 additions and 26 deletions

BIN
images/info.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -61,32 +61,30 @@ var constants = {
</ul> </ul>
[% END %] [% END %]
[% IF field.id && !field.custom %] [% SET has_help = { 'classification' => 1, 'votes' => 1, 'alias' => 1, 'see_also' => 1 } %]
[% SWITCH field.name %] [% IF field.id && !field.custom && has_help.${field.name} %]
[% CASE 'classification' %] <table><tr>
<p> <td><img style="margin: 0 8px 0 0" src="images/info.png" /></td>
If this field is enabled, [% terms.Bugzilla %] will associate each product with a <td>
specific classification.<br /> But you must have 'editclassification' [% SWITCH field.name %]
permissions enabled in order to edit classifications. [% CASE 'classification' %]
</p> If this field is enabled, [% terms.Bugzilla %] will associate each product with a
[% CASE 'votes' %] specific classification.<br /> But you must have 'editclassification'
<p> permissions enabled in order to edit classifications.
If this field is enabled, users will be allowed to vote for [% terms.bugs %]. [% CASE 'votes' %]
Note that in order for this to be effective, you will have to change the maximum If this field is enabled, users will be allowed to vote for [% terms.bugs %].<br />
votes allowed in a product to be non-zero in <a href="editproducts.cgi">the product edit page</a>. Note that in order for this to be effective, you will have to change the maximum
</p> votes allowed in a product to be non-zero in <a href="editproducts.cgi">the product edit page</a>.
[% CASE 'alias' %] [% CASE 'alias' %]
<p> Enabling this field allows you to assign [% terms.bugs %] "aliases", which are
Enabling this field allows you to assign [% terms.bugs %] "aliases", which are easy-to-remember names by which you can refer to [% terms.bugs %].
easy-to-remember names by which you can refer to [% terms.bugs %]. [% CASE 'see_also' %]
</p> Enabling See Also field allows you to refer to [% terms.bugs %] in other installations.<br />
[% CASE 'see_also' %] Even if you disable this field, [% terms.bug %] relationships (URLs) which are already set
<p> will still appear and can be removed.
Enabling See Also field allows you to refer to [% terms.bugs %] in other installations. [% END %]
Even if you disable this field, [% terms.bug %] relationships (URLs) which are already set </td>
will still appear and can be removed. </tr></table>
</p>
[% END %]
[% END %] [% END %]
<form id="edit_field" action="editfields.cgi" method="GET"> <form id="edit_field" action="editfields.cgi" method="GET">