diff --git a/tailbone/views/customers.py b/tailbone/views/customers.py index 5f28b672..df0650c9 100644 --- a/tailbone/views/customers.py +++ b/tailbone/views/customers.py @@ -85,6 +85,8 @@ class CustomersView(MasterView): g.set_label('phone', "Phone Number") g.set_label('email', "Email Address") + g.set_link('name') + def get_mobile_data(self, session=None): # TODO: hacky! return self.get_data(session=session).order_by(model.Customer.name) diff --git a/tailbone/views/master2.py b/tailbone/views/master2.py index 68483f31..cac8cee9 100644 --- a/tailbone/views/master2.py +++ b/tailbone/views/master2.py @@ -410,6 +410,8 @@ class MasterView2(MasterView): g.set_label('issued_at', "Changed") g.set_label('user', "Changed by") g.set_label('remote_addr', "IP Address") + # TODO: why does this render '#' as url? + # g.set_link('issued_at') def render_version_comment(self, transaction, column): return transaction.meta.get('comment', "") diff --git a/tailbone/views/people.py b/tailbone/views/people.py index b2a6147a..b81f8558 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -103,6 +103,8 @@ class PeopleView(MasterView): g.set_label('email', "Email Address") g.set_label('customer_id', "Customer ID") + g.set_link('display_name') + def get_instance(self): # TODO: I don't recall why this fallback check for a vendor contact # exists here, but leaving it intact for now. diff --git a/tailbone/views/roles.py b/tailbone/views/roles.py index 7432cfa7..c5e55765 100644 --- a/tailbone/views/roles.py +++ b/tailbone/views/roles.py @@ -56,6 +56,7 @@ class RolesView(PrincipalMasterView): g.filters['name'].default_active = True g.filters['name'].default_verb = 'contains' g.default_sortkey = 'name' + g.set_link('name') def _preconfigure_fieldset(self, fs): fs.append(PermissionsField('permissions')) diff --git a/tailbone/views/users.py b/tailbone/views/users.py index ece76bf8..9f55c225 100644 --- a/tailbone/views/users.py +++ b/tailbone/views/users.py @@ -174,6 +174,9 @@ class UsersView(PrincipalMasterView): g.set_label('person', "Person's Name") + g.set_link('username') + g.set_link('person') + def _preconfigure_fieldset(self, fs): fs.username.set(renderer=forms.renderers.StrippedTextFieldRenderer, validate=unique_username) fs.person.set(renderer=forms.renderers.PersonFieldRenderer, options=[])