如何将CSS类添加到SAVE和CANCEL(editview)按钮SugarCRM

时间:2013-08-17 07:05:39

标签: css class button sugarcrm

我想在编辑视图中的按钮CANCEL和SAVE中添加一个类,以便在按钮内添加一个图标。 我已经在Header.tpl中为整个按钮添加了一个类(添加边框等),但没有办法添加特定的类来取消或保存按钮

感谢您的帮助

迪米特里

答案:

在您的模块的editviews.php中我为CANCEL按钮添加了一个div,例如。

所以无需更改header.tpl

[..]
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
//THIS LINE IS THE CUSTOMIZATION:
2 =>
array (
'customCode' => '<div class="icon-accept"></div>',
   ),

 [....]  

1 个答案:

答案 0 :(得分:0)

在您的模块的editviews.php中我为CANCEL按钮添加了一个div,例如。

所以无需更改header.tpl

[..]
'form' =>
array (
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
//THIS LINE IS THE CUSTOMIZATION:
2 =>
array (
'customCode' => '<div class="icon-accept"></div>'',
   ),

 [....]