diff --git a/castellum/contacts/templates/contacts/__guardian_item.html b/castellum/contacts/templates/contacts/__guardian_item.html
index 82fbd160aa4063f5476f9079bad77e2d5e653d4c..25285b53ef6cbf9168fc54fa661704570d894ef3 100644
--- a/castellum/contacts/templates/contacts/__guardian_item.html
+++ b/castellum/contacts/templates/contacts/__guardian_item.html
@@ -1,4 +1,4 @@
-{% load i18n auth %}
+{% load i18n recruitment %}
@@ -10,9 +10,16 @@
{% endif %}
- {% has_perm 'subjects.view_subject' user as can_view_subject %}
- {% if slug and can_view_subject %}
-
{% translate 'Details' %}
+ {% if guardian %}
+ {% if view.context == 'subject_management' %}
+
{% translate 'Details' %}
+ {% elif view.context == 'recruitment' %}
+ {% study_guardian_hash study guardian as hash %}
+
{% translate 'Details' %}
+ {% elif view.context == 'execution' %}
+ {% study_guardian_hash study guardian as hash %}
+
{% translate 'Details' %}
+ {% endif %}
{% endif %}
diff --git a/castellum/contacts/templates/contacts/contact_form.html b/castellum/contacts/templates/contacts/contact_form.html
index d0856e847951b54c15a5e44a473a6ab32673fa8a..7daa4d63eda55fda2ce6f7426e9f9306c13597d0 100644
--- a/castellum/contacts/templates/contacts/contact_form.html
+++ b/castellum/contacts/templates/contacts/contact_form.html
@@ -1,5 +1,5 @@
{% extends view.base_template|default:"subjects/base.html" %}
-{% load static i18n auth bootstrap4 %}
+{% load static i18n auth recruitment bootstrap4 %}
{% block title %}
{% if object %}
@@ -42,7 +42,7 @@
{% for widget in form.guardians_remove %}
- {% include 'contacts/__guardian_item.html' with name=form.guardians_remove.name pk=widget.data.value label=widget.choice_label slug=widget.choice_label.subject.slug removed=widget.data.selected %}
+ {% include 'contacts/__guardian_item.html' with name=form.guardians_remove.name pk=widget.data.value label=widget.choice_label guardian=widget.choice_label.subject removed=widget.data.selected %}
{% endfor %}
{% for subject in form.cleaned_data.guardians_add %}
@@ -59,8 +59,14 @@
{{ contact }}
- {% if can_view_subject %}
+ {% if view.context == 'subject_management' %}