fix template to be 16.1-nish: move add button from extra row to left

using egw.open_link instead of window.open
This commit is contained in:
Ralf Becker 2016-07-06 08:42:36 +02:00
parent fb7232206c
commit b6d73534c8

View File

@ -5,13 +5,12 @@
<template id="importexport.definition_index.row" template="" lang="" group="0" version="1.9.002"> <template id="importexport.definition_index.row" template="" lang="" group="0" version="1.9.002">
<grid width="100%"> <grid width="100%">
<columns> <columns>
<column width="20px"/> <column width="50px"/>
<column/> <column/>
<column width="150px"/> <column width="150px"/>
<column width="150px"/> <column width="150px"/>
<column width="150px"/> <column width="150px"/>
<column width="10px"/> <column width="10px"/>
<column width="10px" disabled="@no_actions"/>
</columns> </columns>
<rows> <rows>
<row class="th"> <row class="th">
@ -40,54 +39,35 @@
} }
</styles> </styles>
</template> </template>
<template id="importexport.definition_index.add" template="" lang="" group="0" version="1.9.002">
<buttononly statustext="Add a new definition" label="Add" id="add" onclick="egw(window).open_link('importexport.importexport_definitions_ui.edit','_blank','500x500'); return false;"/>
</template>
<template id="importexport.definition_index" template="" lang="" group="0" version="1.9.002"> <template id="importexport.definition_index" template="" lang="" group="0" version="1.9.002">
<grid width="100%"> <nextmatch id="nm" template="importexport.definition_index.row" header_left="importexport.definition_index.add"/>
<columns> <box id="owner_popup" class="action_popup prompt">
<column/> <description value="Change owner" class="promptheader"/>
</columns> <vbox class="action_popup-content">
<rows> <description value="Select owner"/>
<row> <listbox type="select-account" id="owner" options="None,accounts"/>
<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;"/> <hbox>
</row> <button id="save_owner" label="Save" onclick="nm_submit_popup(this); return false;"/>
<row> <buttononly label="Cancel" onclick="nm_hide_popup(this,'owner_popup');"/>
<nextmatch id="nm" template="importexport.definition_index.row"/> </hbox>
</row> </vbox>
<row disabled="!@nm[selectcols]=/actions/"> </box>
<hbox align="right"> <box id="allowed_popup" class="action_popup prompt">
<buttononly statustext="Select action" label="Select action" id="legacy_actions" onclick="if (!egw_globalObjectManager.getObjectById('importexport.definition_index.row').executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;"/> <vbox>
<button statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('importexport.definition_index.row').toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/> <description value="Change allowed users" class="promptheader"/>
</hbox> <description value="Select groups"/>
</row> <checkbox label="%s Just me" id="allowed_private"/>
<row> <checkbox label="%s All users" id="all_users"/>
<box> <listbox type="select-account" id="allowed" rows="5" account_type="groups"/>
<box id="owner_popup" class="action_popup prompt"> <hbox>
<description value="Change owner" class="promptheader"/> <button id="save_allowed" label="Save" onclick="nm_submit_popup(this); return false;" image="save" background_image="1"/>
<vbox class="action_popup-content"> <buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');" image="cancel" background_image="1"/>
<description value="Select owner"/> </hbox>
<listbox type="select-account" id="owner" options="None,accounts"/> </vbox>
<hbox> </box>
<button id="save_owner" label="Save" onclick="nm_submit_popup(this); return false;"/>
<buttononly label="Cancel" onclick="nm_hide_popup(this,'owner_popup');"/>
</hbox>
</vbox>
</box>
<box id="allowed_popup" class="action_popup prompt">
<vbox>
<description value="Change allowed users" class="promptheader"/>
<description value="Select groups"/>
<checkbox label="%s Just me" id="allowed_private"/>
<checkbox label="%s All users" id="all_users"/>
<listbox type="select-account" id="allowed" rows="5" account_type="groups"/>
<hbox>
<button id="save_allowed" label="Save" onclick="nm_submit_popup(this); return false;" image="save" background_image="1"/>
<buttononly label="Cancel" onclick="nm_hide_popup(this,'allowed_popup');" image="cancel" background_image="1"/>
</hbox>
</vbox>
</box>
</box>
</row>
</rows>
</grid>
<styles> <styles>
td.lr_padding { padding-left: 5px; padding-right: 5px; } td.lr_padding { padding-left: 5px; padding-right: 5px; }