Identities:

* Removed 'edit' button
* Clicking on an identity name now opens the edit box

fixes #213
This commit is contained in:
Antoine Nguyen
2012-04-06 10:14:43 +02:00
parent 67ec55beac
commit fbe5cc215f
3 changed files with 28 additions and 32 deletions
+8 -2
View File
@@ -74,8 +74,14 @@ class ActionColumn(Column):
class LinkColumn(Column):
def render(self, rowid, value):
linkdef = dict(url=reverse(self.urlpattern, args=[rowid]), label=value,
modal=self.modal, modalcb=self.modalcb)
linkdef = dict(label=value, modal=self.modal)
if type(self.urlpattern) == dict:
t, value = rowid.split(":")
linkdef.update(url=reverse(self.urlpattern[t], args=[value]),
modalcb=self.modalcb[t])
else:
linkdef.update(url=reverse(self.urlpattern, args=[rowid]),
modalcb=self.modalcb)
return render_link(linkdef)
class Table(object):