Mobile theme W.I.P.:

- Implement addressbook edit dialog
This commit is contained in:
Hadi Nategh 2016-01-25 10:13:49 +00:00
parent 4eefabc256
commit a68e94a197

View File

@ -146,43 +146,38 @@
</details> </details>
</template> </template>
<template id="addressbook.edit.details" template="" lang="" group="0" version="1.9.002"> <template id="addressbook.edit.details" template="" lang="" group="0" version="1.9.002">
<grid width="100%" overflow="auto"> <details title="Details">
<columns> <grid width="100%">
<column disabled="!@cat_tab=Tree" width="40%"/> <columns>
<column disabled="@cat_tab=Tree" width="40%"/> <column width = "120"/>
<column width="60%"/> <column width="600"/>
</columns> </columns>
<rows> <rows>
<row valign="top"> <row>
<tree-cat id="cat_id_tree" options="13,,width:99%"/> <description value="Notes"/>
<listbox type="select-cat" id="cat_id" rows="11"/> <textbox multiline="true" id="note" rows="10" resize_ratio="0" class="et2_fullWidth" height="200"/>
<grid width="100%"> </row>
<columns> <row disabled="@hidebuttons">
<column width="80"/> <description value="Last date"/>
<column/> <link id="last_link"/>
</columns> </row>
<rows> <row disabled="@hidebuttons">
<row valign="top"> <description value="Next date"/>
<description value="Notes"/> <link id="next_link"/>
<textbox multiline="true" id="note" rows="10" class="et2_fullWidth" height="100"/> </row>
</row> <row>
<row disabled="@hidebuttons"> <description for="pubkey" value="Public key"/>
<description value="Last date"/> <textbox multiline="true" id="pubkey" rows="4" resize_ratio="0" class="et2_fullWidth"/>
<link id="last_link"/> </row>
</row> <row disabled="!@cat_tab=Tree">
<row disabled="@hidebuttons"> <tree-cat id="cat_id_tree" options="13,,width:99%"/>
<description value="Next date"/> </row>
<link id="next_link"/> <row disabled="@cat_tab=Tree">
</row> <listbox type="select-cat" id="cat_id" rows="11"/>
<row valign="top"> </row>
<description for="pubkey" value="Public key"/> </rows>
<textbox multiline="true" id="pubkey" rows="4" resize_ratio="0" class="et2_fullWidth"/> </grid>
</row> </details>
</rows>
</grid>
</row>
</rows>
</grid>
</template> </template>
<template id="addressbook.edit.home" template="" lang="" group="0" version="1.9.001"> <template id="addressbook.edit.home" template="" lang="" group="0" version="1.9.001">
<details title="Private"> <details title="Private">
@ -284,44 +279,76 @@
</details> </details>
</template> </template>
<template id="addressbook.edit.links" template="" lang="" group="0" version="1.9.001"> <template id="addressbook.edit.links" template="" lang="" group="0" version="1.9.001">
<grid width="100%" overflow="auto"> <details title="Links">
<columns> <grid width="100%">
<column/> <columns>
</columns> <column width = "120"/>
<rows> <column width="600"/>
<row class="th" disabled="@view"> </columns>
<description value="Create new links"/> <rows>
</row> <row disabled="@view">
<row> <link-to id="link_to"/>
<link-to id="link_to"/> </row>
</row> <row>
<row class="th"> <description value="Existing links"/>
<description value="Existing links"/> <link-list id="link_to"/>
</row> </row>
<row> </rows>
<link-list id="link_to"/> </grid>
</row> </details>
</rows>
</grid>
</template> </template>
<template id="addressbook.edit.distribution_list" template="" lang="" group="0" version="1.9.001"> <template id="addressbook.edit.distribution_list" template="" lang="" group="0" version="1.9.001">
<box width="100%" overflow="auto"> <details title="Distribution list">
<description id="distrib_lists" span="all"/> <grid width="100%">
</box> <columns>
<column width = "120"/>
<column width="600"/>
</columns>
<rows>
<row>
<box width="100%" overflow="auto">
<description id="distrib_lists" span="all"/>
</box>
</row>
</rows>
</grid>
</details>
</template> </template>
<template id="addressbook.edit.custom" template="" lang="" group="0" version="1.9.001"> <template id="addressbook.edit.custom" template="" lang="" group="0" version="1.9.001">
<box width="100%" overflow="auto"> <details title="Customfields">
<customfields options="$cont[tid],$cont[no_private_cfs]"/> <grid width="100%">
</box> <columns>
<column width = "120"/>
<column width="600"/>
</columns>
<rows>
<row>
<box width="100%" overflow="auto">
<customfields options="$cont[tid],$cont[no_private_cfs]"/>
</box>
</row>
</rows>
</grid>
</details>
</template> </template>
<template id="addressbook.edit.custom_private" template="" lang="" group="0" version="1.9.001"> <template id="addressbook.edit.custom_private" template="" lang="" group="0" version="1.9.001">
<box width="100%" overflow="auto"> <details title="Private customfields">
<customfields id="private_cfs" options="$cont[tid],1"/> <grid width="100%">
</box> <columns>
</template> <column width = "120"/>
<template id="addressbook.edit.history" template="" lang="" group="0" version="1.9.001"> <column width="600"/>
<historylog id="history" width="100%"/> </columns>
<rows>
<row>
<box width="100%" overflow="auto">
<customfields id="private_cfs" options="$cont[tid],1"/>
</box>
</row>
</rows>
</grid>
</details>
</template> </template>
<template id="addressbook.edit" template="" lang="" group="0" version="1.9.004" class="addressbook_edit"> <template id="addressbook.edit" template="" lang="" group="0" version="1.9.004" class="addressbook_edit">
<template id="addressbook.editname"/> <template id="addressbook.editname"/>
<grid class="addressbook_edit" border="1" width="100%"> <grid class="addressbook_edit" border="1" width="100%">
@ -387,37 +414,27 @@
<description for="url" value="url"/> <description for="url" value="url"/>
<url id="url" class="et2_fullWidth" autocomplete="url" /> <url id="url" class="et2_fullWidth" autocomplete="url" />
</row> </row>
<row> <row>
<template id="addressbook.edit.general"/> <template id="addressbook.edit.general"/>
<!-- <tabbox id="tabs" span="all" width="100%" tab_height="250">
<tabs>
<tab id="general" label="Organisation"/>
<tab id="home" label="Private" statustext="Home address, Birthday, ..."/>
<tab id="details" label="Details" statustext="Categories, Notes, ..."/>
<tab id="links" label="Links" statustext="Links"/>
<tab id="distribution_list" label="Distribution lists" statustext="Distribution lists, ..."/>
<tab id="custom" label="Extra" statustext="Custom fields"/>
<tab id="custom_private" label="Extra private" statustext="Private custom fields"/>
<tab id="history" label="History"/>
</tabs>
<tabpanels>
<template id="addressbook.edit.general"/>
<template id="addressbook.edit.home"/>
<template id="addressbook.edit.details"/>
<template id="addressbook.edit.links"/>
<template id="addressbook.edit.distribution_list"/>
<template id="addressbook.edit.custom"/>
<template id="addressbook.edit.custom_private"/>
<template id="addressbook.edit.history"/>
</tabpanels>
</tabbox> !-->
</row> </row>
<row> <row>
<template id="addressbook.edit.home"/> <template id="addressbook.edit.home"/>
</row>
<row>
<template id="addressbook.edit.details"/>
</row>
<row>
<template id="addressbook.edit.links"/>
</row>
<row>
<template id="addressbook.edit.distribution_list"/>
</row> </row>
<row>
<template id="addressbook.edit.custom"/>
</row>
<row>
<template id="addressbook.edit.custom_private"/>
</row>
<row> <row>
<details title="Ownership"> <details title="Ownership">
<grid width="100%"> <grid width="100%">