Add basic support for Person quickie lookup
shows profile view if person is found
This commit is contained in:
parent
d77de76c97
commit
12eeb5df97
7 changed files with 109 additions and 5 deletions
|
@ -79,6 +79,22 @@ class EmployeeView(MasterView):
|
|||
'departments',
|
||||
]
|
||||
|
||||
def should_expose_quickie_search(self):
|
||||
if self.expose_quickie_search:
|
||||
return True
|
||||
app = self.get_rattail_app()
|
||||
return app.get_people_handler().should_expose_quickie_search()
|
||||
|
||||
def get_quickie_perm(self):
|
||||
return 'people.quickie'
|
||||
|
||||
def get_quickie_url(self):
|
||||
return self.request.route_url('people.quickie')
|
||||
|
||||
def get_quickie_placeholder(self):
|
||||
app = self.get_rattail_app()
|
||||
return app.get_people_handler().get_quickie_search_placeholder()
|
||||
|
||||
def configure_grid(self, g):
|
||||
super(EmployeeView, self).configure_grid(g)
|
||||
route_prefix = self.get_route_prefix()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue