How can I remove the AddWidget?
I want that only the admin of the statistics can see the AddWidget
I try like this:
{if $userLogin==“admin”}
<div class="ui-confirm" id="confirm">
<h2>{'Dashboard_DeleteWidgetConfirm'|translate}</h2>
<input id="yes" type="button" value="{'General_Yes'|translate}" />
<input id="no" type="button" value="{'General_No'|translate}" />
</div>
<div id="addWidget">
<div class="widget_button">{'Dashboard_AddWidget'|translate} <img height="16" width="16" class="arr" src="themes/default/images/sortdesc.png"></div>
<div class="menu" id="widgetChooser">
<div class="subMenu" id="sub1"></div>
<div class="subMenu" id="sub2"></div>
<div class="subMenu" id="sub3"></div>
<div class="menuClear"> </div>
</div>
</div>
<div class="clear"></div>
<div id="dashboardWidgetsArea">
<div class="col" id="1"></div>
<div class="col" id="2"></div>
<div class="col" id="3"></div>
<div class="clear"></div>
</div>