mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Added fixes, displaying templates still needs to be fixed.
This commit is contained in:
@@ -33,6 +33,10 @@ class TemplatesBrowsableItem(BrowsableItem):
|
||||
def title(self):
|
||||
return self._item['name']
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return self._item['template_type']
|
||||
|
||||
@property
|
||||
def link(self):
|
||||
return url_for(
|
||||
@@ -47,3 +51,6 @@ class TemplatesBrowsableItem(BrowsableItem):
|
||||
@property
|
||||
def hint(self):
|
||||
return "Some service template hint here"
|
||||
|
||||
def get_field(self, field):
|
||||
return self._item.get(field, None)
|
||||
|
||||
Reference in New Issue
Block a user