diff --git a/gramps/data/templates/view_name_detail.html b/gramps/data/templates/view_name_detail.html index b3aceb49a..e995a4f0c 100644 --- a/gramps/data/templates/view_name_detail.html +++ b/gramps/data/templates/view_name_detail.html @@ -115,7 +115,7 @@
diff --git a/gramps/webapp/grampsdb/view/note.py b/gramps/webapp/grampsdb/view/note.py index c816ccf49..5ccfe8cde 100644 --- a/gramps/webapp/grampsdb/view/note.py +++ b/gramps/webapp/grampsdb/view/note.py @@ -37,6 +37,13 @@ dji = DjangoInterface() db = DbDjango() snf = StyledNoteFormatter(db) +# add a note to a person: +# /note/add/person/c51759195496de06da3ca5ba2c1 + +def process_note_on_name(request, action, handle, order): + # add, edit, delete + raise Exception("testing") + def process_note(request, context, handle, act, add_to=None): # view, edit, save """ Process act on person. Can return a redirect. diff --git a/gramps/webapp/grampsdb/views.py b/gramps/webapp/grampsdb/views.py index aca1dc472..e00b7d1c2 100644 --- a/gramps/webapp/grampsdb/views.py +++ b/gramps/webapp/grampsdb/views.py @@ -1365,6 +1365,7 @@ def process_list_item(request, view, handle, act, item, index): "eventref": "#tab-events", "citationref": "#tab-citations", "repositoryref": "#tab-repositories", + "noteref": "#tab-notes", "attribute": "#tab-attributes", "media": "#tab-media", "lds": "#tab-lds", @@ -1394,6 +1395,9 @@ def process_list_item(request, view, handle, act, item, index): elif item == "repositoryref": refs = dji.RepositoryRef.filter(object_id=obj.id, object_type=obj_type).order_by("order") + elif item == "noteref": + refs = dji.NoteRef.filter(object_id=obj.id, + object_type=obj_type).order_by("order") elif item == "parentfamily": refs = dji.MyParentFamilies.filter(person=obj).order_by("order") elif item == "family": diff --git a/gramps/webapp/urls.py b/gramps/webapp/urls.py index 7d074c510..c9adbe0e2 100644 --- a/gramps/webapp/urls.py +++ b/gramps/webapp/urls.py @@ -96,6 +96,8 @@ urlpatterns += patterns('', (r'^family/(?P