Add n_prefix and n_middle to filter and grid
authorMichael Spahn <m.spahn@metaways.de>
Fri, 20 Jun 2014 10:57:52 +0000 (12:57 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Mon, 7 Jul 2014 13:38:50 +0000 (15:38 +0200)
Change-Id: I8108e3abe6662847beb8d74970d6448e78a0e3be
Reviewed-on: http://gerrit.tine20.com/customers/824
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Addressbook/js/ContactGrid.js
tine20/Addressbook/js/Model.js

index c13d9e4..7971289 100644 (file)
@@ -108,6 +108,8 @@ Tine.Addressbook.ContactGridPanel = Ext.extend(Tine.widgets.grid.GridPanel, {
                 width: 150,
                 renderer: Tine.Tinebase.common.containerRenderer
             },
+            { id: 'n_prefix', header: this.app.i18n._('Title'), dataIndex: 'n_prefix', width: 80 },
+            { id: 'n_middle', header: this.app.i18n._('Middle Name'), dataIndex: 'n_middle', width: 80 },
             { id: 'n_family', header: this.app.i18n._('Last Name'), dataIndex: 'n_family' },
             { id: 'n_given', header: this.app.i18n._('First Name'), dataIndex: 'n_given', width: 80 },
             { id: 'n_fn', header: this.app.i18n._('Full Name'), dataIndex: 'n_fn' },
index 1adf00d..a6bf6e8 100644 (file)
@@ -137,8 +137,10 @@ Tine.Addressbook.Model.Contact.getFilterModel = function() {
         {label: _('Quick Search'),                                                      field: 'query',              operators: ['contains']},
         {filtertype: 'tine.widget.container.filtermodel', app: app, recordClass: Tine.Addressbook.Model.Contact},
         {filtertype: 'addressbook.listMember', app: app},
+        {label: app.i18n._('Title'),                                                    field: 'n_prefix' },
         {label: app.i18n._('First Name'),                                               field: 'n_given' },
         {label: app.i18n._('Last Name'),                                                field: 'n_family'},
+        {label: app.i18n._('Middle Name'),                                              field: 'n_middle'},
         {label: app.i18n._('Company'),                                                  field: 'org_name'},
         {label: app.i18n._('Unit'),                                                     field: 'org_unit'},
         {label: app.i18n._('Phone'),                                                    field: 'telephone',          operators: ['contains']},