index.html (992B)
1 {% extends 'base.html' %} 2 3 {% block title %}Employee Reports{% endblock %} 4 5 {% block content %} 6 <section class="admin-grid"> 7 <!-- returned values from admin check is array of permissive ACCESS else return 'missing permissions response' --> 8 <section class="agreements"> 9 <h3>Hours by Employee</h3> 10 {% for user in by_user %} 11 {{ user }} 12 {% endfor %} 13 <table> 14 <tr><th>First</th><th>Middle</th><th>Last</th><th>Pay</th><th>Hours</th></tr> 15 {%- for user in users %} 16 {# 17 <tr><td>{{user.fname}}</td><td>{{user.mname}}</td><td>{{user.lname}}</td><td>{{user.pay_value}}</td><td>{{user.total_hours}}</td><td><a href="{{url_for('employee_report',username=user.username)}}"><button>More</button></a></td></tr> 18 #} 19 {{ user }} 20 {% endfor %} 21 </table> 22 </section> 23 {%- for x in ['reports','roles','users'] %} 24 {% include 'admin/'~x~'/widget.html' %} 25 {%- else-%} 26 {{ 'You do not have permission to access this page' }} 27 {%- endfor %} 28 </section> 29 {% endblock %}