From b27987f1d1e12ad7555d48c763e42ca0413dde5e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 3 Jun 2024 11:15:22 -0500 Subject: [PATCH] More butterball fixes for "view profile" template --- tailbone/templates/people/view_profile.mako | 129 +++++++++++++++----- 1 file changed, 96 insertions(+), 33 deletions(-) diff --git a/tailbone/templates/people/view_profile.mako b/tailbone/templates/people/view_profile.mako index bf94b7fa..c5c86806 100644 --- a/tailbone/templates/people/view_profile.mako +++ b/tailbone/templates/people/view_profile.mako @@ -404,33 +404,53 @@ % if request.has_perm('people_profile.edit_person'): <${b}-table-column label="Actions" v-slot="props"> - + % if request.use_oruga: - + + + Edit + % else: + Edit % endif - Edit - + % if request.use_oruga: - + + + Delete + % else: + Delete % endif - Delete - + % if not request.use_oruga: + class="grid-action" + % endif + > % if request.use_oruga: - + + + Set Preferred + % else: + Set Preferred % endif - Set Preferred % endif @@ -618,33 +638,52 @@ % if request.has_perm('people_profile.edit_person'): <${b}-table-column label="Actions" v-slot="props"> - + % if request.use_oruga: - + + + Edit + % else: + Edit % endif - Edit - + % if request.use_oruga: - + + + Delete + % else: + Delete % endif - Delete - + % if request.use_oruga: - + + + Set Preferred + % else: + Set Preferred % endif - Set Preferred % endif @@ -1200,8 +1239,15 @@ label="Actions" v-slot="props"> - - Edit + % if request.use_oruga: + + + Edit + + % else: + + Edit + % endif % endif @@ -1428,15 +1474,30 @@ v-slot="props"> % if request.has_perm('people_profile.edit_note'): - - Edit + % if request.use_oruga: + + + Edit + + % else: + + Edit + % endif % endif % if request.has_perm('people_profile.delete_note'): - - Delete + % if request.use_oruga: + + + Delete + + % else: + + Delete + % endif + % endif @@ -1477,14 +1538,16 @@ + :disabled="editNoteDelete" + expanded> + :disabled="editNoteDelete" + expanded>