Addressbook edit dialog:

- Fix category id in mobile template
- Implement categories in mobile view template
- Remove not used buttons
This commit is contained in:
Hadi Nategh 2016-04-26 13:31:52 +00:00
parent 171a160383
commit 737990bf7d
3 changed files with 8 additions and 10 deletions

View File

@ -174,7 +174,7 @@
<rows>
<row valign="top">
<tree-cat id="cat_id_tree" options="13,,width:99%"/>
<taglist-cat id="cat_id" tags="true" empty_label="Category" width="100%" height="195"/>
<taglist-cat id="cat_id" empty_label="Category" width="100%" height="195"/>
<description/>
<grid width="100%">
<columns>
@ -449,9 +449,6 @@
</row>
<row disabled="@hidebuttons" class="dialogFooterToolbar">
<hbox span="all" width="100%">
<button label="Edit" id="button[edit]" class="button_edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$cont[id]'),'_blank','dependent=yes,width=900,height=560,scrollbars=yes,status=yes'); return false;" image="edit" background_image="1"/>
<button label="Copy" id="button[copy]" class="button_copy" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$cont[id]&amp;makecp=1'),'_blank','dependent=yes,width=900,height=560,scrollbars=yes,status=yes'); return false;" image="copy" background_image="1"/>
<button statustext="download this contact as vCard file" label="vCard" id="button[vcard]" image="vcard" background_image="1"/>
<button accesskey="s" label="Save" id="button[save]" class="button_save" image="save" background_image="1"/>
<button label="Apply" id="button[apply]" class="button_apply" image="apply" background_image="1"/>
<button label="Cancel" id="button[cancel]" class="button_cancel" onclick="if($cont[view] || false) return true; window.close(); return false;" image="cancel" background_image="1"/>

View File

@ -138,7 +138,7 @@
<rows>
<row>
<description for="category" value="Categories"/>
<taglist-cat id="category" class="et2_fullWidth" empty_label="Select categories"/>
<taglist-cat id="cat_id" class="et2_fullWidth" empty_label="Select categories"/>
</row>
<row>
<description value="Notes"/>
@ -362,12 +362,7 @@
<rows>
<row disabled="@hidebuttons" class="dialogHeadbar" >
<hbox span="all" width="100%">
<button id="button[edit]" class="button_edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$cont[id]'),'_blank','dependent=yes,width=900,height=560,scrollbars=yes,status=yes'); return false;" image="edit" background_image="1"/>
<button id="button[copy]" class="button_copy" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$cont[id]&amp;makecp=1'),'_blank','dependent=yes,width=900,height=560,scrollbars=yes,status=yes'); return false;" image="copy" background_image="1"/>
<button statustext="download this contact as vCard file" id="button[vcard]" image="vcard" background_image="1"/>
<button accesskey="s" id="button[save]" class="button_save" image="save" background_image="1"/>
<button id="button[apply]" class="button_apply" image="apply" background_image="1"/>
<button id="button[cancel]" class="button_cancel" onclick="if($cont[view] || false) return true; window.close(); return false;" image="cancel" background_image="1"/>
<button id="button[delete]" class="button_delete" onclick="et2_dialog.confirm(widget,'Do you really want to delete this contact?','Delete')" tabindex="25" image="delete" background_image="1"/>
</hbox>
</row>

View File

@ -173,6 +173,12 @@
<description value="Notes"/>
<textbox multiline="true" id="note" rows="10" resize_ratio="0" class="et2_fullWidth" height="200"/>
</row>
<row>
<description value="Categories"/>
<menulist>
<menupopup type="select-cat" id="cat_id"/>
</menulist>
</row>
</rows>
</grid>
</template>