Skip to content

Commit ccc0cdd

Browse files
committed
Merge branch 'hotfix-19.1' into develop
# Conflicts: # RockWeb/Themes/Rock/Assets/Lava/GroupDetail.lava
2 parents 58b9ccc + 03926c6 commit ccc0cdd

5 files changed

Lines changed: 26 additions & 1 deletion

File tree

Rock.Frontend.Styles/src/themes/RockNextGen/Assets/Lava/GroupDetail.lava

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@
165165

166166
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
167167
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
168+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
168169
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
169170
<i class="ti ti-x"></i>
170171
</a>
172+
{% endif %}
171173
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
172174
<i class="ti ti-pencil"></i>
173175
</a>
@@ -232,9 +234,11 @@
232234

233235
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
234236
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
237+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
235238
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
236239
<i class="ti ti-x"></i>
237240
</a>
241+
{% endif %}
238242
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
239243
<i class="ti ti-pencil"></i>
240244
</a>
@@ -299,9 +303,11 @@
299303

300304
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
301305
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
306+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
302307
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
303308
<i class="ti ti-x"></i>
304309
</a>
310+
{% endif %}
305311
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
306312
<i class="ti ti-pencil"></i>
307313
</a>

RockWeb/Blocks/Groups/GroupDetailLava.ascx.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ private void DisplayViewGroup()
987987
Dictionary<string, object> buttonVisibility = new Dictionary<string, object>();
988988
buttonVisibility.Add( AttributeKey.ShowEmailGroupLeadersButton, GetAttributeValue( AttributeKey.ShowEmailGroupLeadersButton ) );
989989
buttonVisibility.Add( AttributeKey.ShowEmailRosterParentsButton, GetAttributeValue( AttributeKey.ShowEmailRosterParentsButton ) );
990+
buttonVisibility.Add( AttributeKey.AllowGroupMemberDelete, GetAttributeValue( AttributeKey.AllowGroupMemberDelete ) );
990991
mergeFields.Add( "ButtonVisibility", buttonVisibility );
991992

992993
string template = GetAttributeValue( AttributeKey.LavaTemplate );
@@ -1378,7 +1379,7 @@ private void DisplayDeleteGroupMember( int groupMemberId )
13781379
// persist the group member id for use in partial postbacks
13791380
this.CurrentGroupMemberId = groupMember.Id;
13801381

1381-
lConfirmDeleteMsg.Text = string.Format( "Are you sure you want to delete (remove) {0} from {1}?", groupMember.Person.FullName, groupMember.Group.Name );
1382+
lConfirmDeleteMsg.Text = string.Format( "Are you sure you want to remove {0} from {1}?", groupMember.Person.FullName, groupMember.Group.Name );
13821383

13831384
mdConfirmDelete.Show();
13841385
//mdConfirmDelete.Header.Visible = false;

RockWeb/Themes/Flat/Assets/Lava/GroupDetail.lava

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@
165165

166166
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
167167
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
168+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
168169
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
169170
<i class="ti ti-x"></i>
170171
</a>
172+
{% endif %}
171173
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
172174
<i class="ti ti-pencil"></i>
173175
</a>
@@ -232,9 +234,11 @@
232234

233235
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
234236
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
237+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
235238
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
236239
<i class="ti ti-x"></i>
237240
</a>
241+
{% endif %}
238242
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
239243
<i class="ti ti-pencil"></i>
240244
</a>
@@ -299,9 +303,11 @@
299303

300304
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
301305
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
306+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
302307
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
303308
<i class="ti ti-x"></i>
304309
</a>
310+
{% endif %}
305311
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
306312
<i class="ti ti-pencil"></i>
307313
</a>

RockWeb/Themes/RockManager/Assets/Lava/GroupDetail.lava

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@
165165

166166
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
167167
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
168+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
168169
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
169170
<i class="ti ti-x"></i>
170171
</a>
172+
{% endif %}
171173
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
172174
<i class="ti ti-pencil"></i>
173175
</a>
@@ -232,9 +234,11 @@
232234

233235
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
234236
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
237+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
235238
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
236239
<i class="ti ti-x"></i>
237240
</a>
241+
{% endif %}
238242
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
239243
<i class="ti ti-pencil"></i>
240244
</a>
@@ -299,9 +303,11 @@
299303

300304
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
301305
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
306+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
302307
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
303308
<i class="ti ti-x"></i>
304309
</a>
310+
{% endif %}
305311
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
306312
<i class="ti ti-pencil"></i>
307313
</a>

RockWeb/Themes/Stark/Assets/Lava/GroupDetail.lava

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,11 @@
162162

163163
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
164164
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
165+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
165166
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
166167
<i class="ti ti-x"></i>
167168
</a>
169+
{% endif %}
168170
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
169171
<i class="ti ti-pencil"></i>
170172
</a>
@@ -229,9 +231,11 @@
229231

230232
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
231233
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
234+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
232235
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
233236
<i class="ti ti-x"></i>
234237
</a>
238+
{% endif %}
235239
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
236240
<i class="ti ti-pencil"></i>
237241
</a>
@@ -296,9 +300,11 @@
296300

297301
{% if AllowedActions.Edit == true or AllowedActions.ManageMembers == true %}
298302
<div class="pull-left rollover-item" style="position: absolute; right:0; top:0;">
303+
{% if ButtonVisibility.AllowGroupMemberDelete == true %}
299304
<a href="#" onclick="{{ member.Id | Postback:'DeleteGroupMember' }}" >
300305
<i class="ti ti-x"></i>
301306
</a>
307+
{% endif %}
302308
<a href="#" onclick="{{ member.Id | Postback:'EditGroupMember' }}" class="margin-l-sm">
303309
<i class="ti ti-pencil"></i>
304310
</a>

0 commit comments

Comments
 (0)