Skip to content

Commit

Permalink
Changes the teams panel so read only users cannot edit it.
Browse files Browse the repository at this point in the history
Read only users should not be able to edit the teams modal so override
the opal panel and hide the icon if the user is read only.
  • Loading branch information
fredkingham committed May 24, 2023
1 parent ee546cf commit 7cf22d4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions elcid/templates/_helpers/teams_panel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% load forms %}
<div class="panel panel-default record-panel">
<div class="panel-heading">
<h3>
{% icon 'fa-users' %}
Teams
<span ng-show="!profile.readonly">
<i class="fa fa-pencil edit pull-right"
ng-click="open_modal('EditTeamsCtrl', '/templates/modals/edit_teams.html', {episode: episode})"></i>
</span>
</h3>
</div>
<ul class="list-group">
<li class="list-group-item"
ng-repeat="tag in episode.getTags()"
ng-show="metadata.tag_visible_in_list.indexOf(tag) != -1">
<a href="/#/list/[[ metadata.tags[tag].slug ]]" >[[ metadata.tags[tag].display_name ]]</a>
</li>
</ul>
</div>

0 comments on commit 7cf22d4

Please sign in to comment.