Skip to content

Commit

Permalink
πŸ’„ (src/templates/users/admin): update request button
Browse files Browse the repository at this point in the history
Now for synced users no more button are shown, only a tick symbol.
  • Loading branch information
ncvescera committed Oct 16, 2024
1 parent ad96a37 commit 5cf2daf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/templates/users/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ <h3 class="mt-5">Request status</h3>
<td>{{req['status']}}</td>
<td>{{ req['enddate'] if req['enddate'] else '-'}}</td>
<td>
{% if req['user']['status'] == 'synced %}
<p><i class="bi bi-check-all"></i><p>

{% else %}
<form method="POST">
<input type="hidden" name="id" value="{{req['user']}}"/>
<input type="submit" class="btn btn-{{'danger' if req['status']=='approved' else 'primary'}} btn-sm" value="{{'Revoke' if req['status']=='approved' else 'Approve'}}"/>
</form>
{% endif %}
</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 5cf2daf

Please sign in to comment.