Skip to content

Commit

Permalink
Merge pull request MNNIT-Robotics-Club-Official#141 from Lalit1471/main
Browse files Browse the repository at this point in the history
First and last name getting displayed in manage user roles page.
  • Loading branch information
prackode authored Oct 13, 2023
2 parents 8fdc56a + 45edde3 commit 2e2c590
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions user/templates/user/user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ <h3 class="name">Heads</h3>
<div class="list-group-item list-group-item-action">
<div class="row">
<div class="col-md-6">
<a href="{% url 'user:profile_page' user%}"><b class="issuer"> {{ user }} &nbsp;| {{ user.profile.regnum }}&nbsp;</b> </a>
<a href="{% url 'user:profile_page' user%}"><b class="issuer"> {{ user }} &nbsp;| {{ user.profile.first_name }} {{ user.profile.last_name }} &nbsp;| {{ user.profile.regnum }}&nbsp;</b> </a>
</div>

<div class="col-md-6">
<button type="button" id="appbtn" class="userbtn" user="{{user.pk}}" r_type=1>
Demote &nbsp; &nbsp;<i class="fa fa-caret-down"></i>
</button>

</div>
</div>
</div>
Expand All @@ -52,7 +50,7 @@ <h3 class="name">Coordinators</h3>
<div class="list-group-item list-group-item-action">
<div class="row">
<div class="col-md-6">
<a href="{% url 'user:profile_page' user%}"><b class="issuer"> {{ user }} &nbsp;| {{ user.profile.regnum }}&nbsp;</b> </a>
<a href="{% url 'user:profile_page' user%}"><b class="issuer"> {{ user }} &nbsp;| {{ user.profile.first_name }} {{ user.profile.last_name }} &nbsp;| {{ user.profile.regnum }}&nbsp;</b> </a>
</div>

<div class="col-md-6">
Expand Down Expand Up @@ -83,16 +81,14 @@ <h3 class="name">Members</h3>
<div class="list-group-item list-group-item-action">
<div class="row">
<div class="col-md-6">
<a href="{% url 'user:profile_page' user%}"><b class="issuer"> {{ user }} &nbsp;| {{ user.profile.regnum }}&nbsp;</b> </a>
<a href="{% url 'user:profile_page' user%}"><b class="issuer"> {{ user }} &nbsp;| {{ user.profile.first_name }} {{ user.profile.last_name }} &nbsp;| {{ user.profile.regnum }}&nbsp;</b> </a>
</div>

<div class="col-md-6">
<button type="button" id="appbtn" class="userbtn promotebtn" user="{{user.pk}}" r_type=0>
Promote &nbsp; &nbsp;<i class="fa fa-caret-up"></i>
</button>
<button type="button" id="appbtn" class="userbtn" user="{{user.pk}}" r_type=1>
Demote &nbsp; &nbsp;<i class="fa fa-caret-down"></i>
</button>

</div>
</div>
</div>
Expand Down

0 comments on commit 2e2c590

Please sign in to comment.