Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1069569
custom
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 20, 3:55 AM
Size
3 KB
Mime Type
text/x-diff
Expires
Tue, Jul 22, 3:55 AM (11 h, 57 m)
Engine
blob
Format
Raw Data
Handle
692472
Attached To
rMCUS Modules.Custom
custom
View Options
Index: branches/RC/custom/admin_templates/tests/test_list.tpl
===================================================================
--- branches/RC/custom/admin_templates/tests/test_list.tpl (revision 10663)
+++ branches/RC/custom/admin_templates/tests/test_list.tpl (revision 10664)
@@ -1,72 +1,84 @@
<inp2:m_include t="incs/header" />
<inp2:m_RenderElement name="combined_header" section="custom:tests" prefix="test" title_preset="" pagination="1"/>
<!-- ToolBar --->
<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td >
<script type="text/javascript">
a_toolbar = new ToolBar();
a_toolbar.AddButton( new ToolBarButton('new_item', '<inp2:m_phrase label="la_ToolTip_NewTest" escape="1"/>::<inp2:m_phrase label="la_Add" escape="1"/>',
function() {
std_precreate_item('test', 'custom/tests/test_edit')
}
)
);
function edit()
{
std_edit_item('test', 'custom/tests/test_edit');
}
a_toolbar.AddButton( new ToolBarButton('edit', '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>::<inp2:m_phrase label="la_ShortToolTip_Edit" escape="1"/>', edit) );
a_toolbar.AddButton( new ToolBarButton('delete', '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>',
function() {
std_delete_items('test');
} ) );
a_toolbar.AddButton( new ToolBarSeparator('sep1') );
a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function(id) {
show_viewmenu(a_toolbar,'view');
}
) );
+ a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+
+ a_toolbar.AddButton( new ToolBarButton('export', '<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', function() {
+ std_csv_export('test', 'Default', 'export/export_progress');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('import', '<inp2:m_phrase label="la_ToolTip_Import" escape="1"/>', function() {
+ std_csv_import('test', 'Default', 'import/import_start');
+ }
+ ) );
+
a_toolbar.Render();
</script>
</td>
<inp2:m_RenderElement name="search_main_toolbar" prefix="test" grid="Default"/>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<style type="text/css">
.red-row td.Status {
background-color: red;
}
</style>
<inp2:m_DefineElement name="grid_image_td">
<img src="<inp2:Field name='$field' format='resize:120x120'/>"/>
</inp2:m_DefineElement>
<inp2:m_RenderElement name="grid" PrefixSpecial="test" IdField="TestId" grid="Default" grid_filters="1" limited_heights="true" max_row_height="100"/>
<script type="text/javascript">
Grids['test'].SetDependantToolbarButtons( new Array('edit', 'delete') );
</script>
<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/RC/custom/admin_templates/tests/test_list.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.4.2.3
\ No newline at end of property
+1.4.2.4
\ No newline at end of property
Event Timeline
Log In to Comment