Changeset View
Changeset View
Standalone View
Standalone View
branches/1.2.x/admin_templates/widgets/widget_list.tpl
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
function() { | function() { | ||||
submit_event('<inp2:m_Param name="prefix"/>', 'OnMassDecline'); | submit_event('<inp2:m_Param name="prefix"/>', 'OnMassDecline'); | ||||
} | } | ||||
) | ) | ||||
); | ); | ||||
a_toolbar.AddButton( new ToolBarSeparator('sep2') ); | a_toolbar.AddButton( new ToolBarSeparator('sep2') ); | ||||
a_toolbar.AddButton( new ToolBarButton('move_up', '<inp2:m_phrase label="la_ToolTip_MoveUp" escape="1"/>', function() { | |||||
submit_event('<inp2:m_Param name="prefix"/>', 'OnMassMoveUp'); | |||||
} | |||||
) ); | |||||
a_toolbar.AddButton( new ToolBarButton('move_down', '<inp2:m_phrase label="la_ToolTip_MoveDown" escape="1"/>', function() { | |||||
submit_event('<inp2:m_Param name="prefix"/>', 'OnMassMoveDown'); | |||||
} | |||||
) ); | |||||
a_toolbar.AddButton( new ToolBarButton('refresh', '<inp2:m_phrase label="la_ToolTip_RecalculatePriorities" escape="1"/>', function() { | |||||
submit_event('<inp2:m_Param name="prefix"/>', 'OnRecalculatePriorities'); | |||||
} | |||||
) ); | |||||
a_toolbar.AddButton( new ToolBarSeparator('sep3') ); | |||||
a_toolbar.AddButton( | a_toolbar.AddButton( | ||||
new ToolBarButton( | new ToolBarButton( | ||||
'export', | 'export', | ||||
'<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', | '<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', | ||||
function() { | function() { | ||||
std_csv_export('<inp2:m_Param name="prefix"/>', '<inp2:m_Param name="grid"/>', 'export/export_progress'); | std_csv_export('<inp2:m_Param name="prefix"/>', '<inp2:m_Param name="grid"/>', 'export/export_progress'); | ||||
} | } | ||||
) | ) | ||||
); | ); | ||||
a_toolbar.AddButton( | a_toolbar.AddButton( | ||||
new ToolBarButton( | new ToolBarButton( | ||||
'import', | 'import', | ||||
'<inp2:m_phrase label="la_ToolTip_Import" escape="1"/>', | '<inp2:m_phrase label="la_ToolTip_Import" escape="1"/>', | ||||
function() { | function() { | ||||
std_csv_import('<inp2:m_Param name="prefix"/>', '<inp2:m_Param name="grid"/>', 'import/import_start'); | std_csv_import('<inp2:m_Param name="prefix"/>', '<inp2:m_Param name="grid"/>', 'import/import_start'); | ||||
} | } | ||||
) | ) | ||||
); | ); | ||||
a_toolbar.AddButton( new ToolBarSeparator('sep3') ); | a_toolbar.AddButton( new ToolBarSeparator('sep4') ); | ||||
a_toolbar.AddButton( | a_toolbar.AddButton( | ||||
new ToolBarButton( | new ToolBarButton( | ||||
'view', | 'view', | ||||
'<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', | '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', | ||||
function(id) { | function(id) { | ||||
show_viewmenu(a_toolbar,'view'); | show_viewmenu(a_toolbar,'view'); | ||||
} | } | ||||
Show All 27 Lines | |||||
</inp2:m_DefineElement> | </inp2:m_DefineElement> | ||||
<inp2:m_DefineElement name="grid_custom_td"> | <inp2:m_DefineElement name="grid_custom_td"> | ||||
<a href="<inp2:ItemEditLink/>" title="<inp2:m_Phrase name='la_Text_Edit' no_editing='1'/>" onclick="return direct_edit('<inp2:m_param name="PrefixSpecial"/>', this.href);"><inp2:Field field="$field" grid="$grid" format="$format"/></a> | <a href="<inp2:ItemEditLink/>" title="<inp2:m_Phrase name='la_Text_Edit' no_editing='1'/>" onclick="return direct_edit('<inp2:m_param name="PrefixSpecial"/>', this.href);"><inp2:Field field="$field" grid="$grid" format="$format"/></a> | ||||
</inp2:m_DefineElement> | </inp2:m_DefineElement> | ||||
<inp2:m_RenderElement name="grid" PrefixSpecial="$prefix" IdField="$id_field" grid="$grid" max_row_height="100"/> | <inp2:m_RenderElement name="grid" PrefixSpecial="$prefix" IdField="$id_field" grid="$grid" max_row_height="100"/> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
Grids['<inp2:m_Param name="prefix"/>'].SetDependantToolbarButtons( new Array('edit', 'delete', 'approve', 'decline') ); | Grids['<inp2:m_Param name="prefix"/>'].SetDependantToolbarButtons( new Array('edit', 'delete', 'approve', 'decline', 'move_up', 'move_down') ); | ||||
</script> | </script> | ||||
<inp2:m_include t="incs/footer"/> | <inp2:m_include t="incs/footer"/> | ||||
No newline at end of file |