- Add 'Add' button above nextmatch

- Add placeholder action to add when there are no rows
This commit is contained in:
Nathan Gray 2014-02-19 00:05:03 +00:00
parent a2593672f4
commit 03c5e925c8
2 changed files with 3 additions and 2 deletions

View File

@ -165,6 +165,7 @@ class importexport_definitions_ui
'csv_fields' => false, // Disable CSV export, uses own export 'csv_fields' => false, // Disable CSV export, uses own export
'default_cols' => '!actions', // switch legacy actions column and row off by default 'default_cols' => '!actions', // switch legacy actions column and row off by default
'row_id' => 'definition_id', 'row_id' => 'definition_id',
'placeholder_actions' => array('add')
); );
if($_GET['application']) $content['nm']['col_filter']['application'] = $_GET['application']; if($_GET['application']) $content['nm']['col_filter']['application'] = $_GET['application'];
} }

View File

@ -55,8 +55,8 @@
<column/> <column/>
</columns> </columns>
<rows> <rows>
<row disabled="!@msg"> <row>
<description align="center" id="msg" no_lang="1" span="all" class="message"/> <buttononly align="right" statustext="Add a new definition" label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_definitions_ui.edit'),'_blank','dependent=yes,width=500,height=500,status=yes'); return false;"/>
</row> </row>
<row> <row>
<nextmatch id="nm" template="importexport.definition_index.row"/> <nextmatch id="nm" template="importexport.definition_index.row"/>