Skip to content

Commit 55b963e

Browse files
add + button in display
1 parent 80bed80 commit 55b963e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

openatlas/display/display.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,13 @@ def add_data(self) -> None:
416416
if name in ['creator', 'license_holder']:
417417
if value := getattr(self.entity, name):
418418
names = [rh.name for rh in value]
419+
# todo: start again from here
420+
# todo: make a button
421+
link_ = link(f'+ {name}', url_for('rights_holder_insert'))
419422
# todo: if RH gets an own view, then make a link
420-
self.data[attribute['label']] = str('<br>'.join(names))
423+
html = f'{link_}<br>{str('<br>'.join(names))}'
424+
425+
self.data[attribute['label']] = html
421426
if name in ['example_id', 'public', 'resolver_url', 'website_url']:
422427
if value := getattr(self.entity, name):
423428
if isinstance(value, bool):

0 commit comments

Comments
 (0)