updateroles.html (1179B)
1 {% extends 'base.html' %} 2 3 {% block title %}Current Activated Users{% endblock %} 4 5 {% block content %} 6 <section class="role-permissions"> 7 <table> 8 <tr> 9 <th>User Role</th> 10 {% for field in dashform %} 11 <th>{{ field.label }}</th> 12 {% endfor %} 13 </tr> 14 <form action="" method="post" novalidate> 15 {{ dashform.hidden_tag() }} 16 {% for error in dashform.errors %} 17 <span style="color:red;">[{{ error }}]</span> 18 {% endfor %} 19 {% for role in ['Crew','Crew Lead','Project Manager','Developer','Accountant'] %} 20 <tr><td>{{ role }}</td> 21 {% for field in dashform %} 22 <td>{{ field }}</td> 23 {% endfor %} 24 </tr> 25 {% endfor %} 26 </form> 27 </table> 28 29 <table> 30 <tr> 31 <th>Admin Roles</th> 32 {% for field in admnform %} 33 <th>{{ field.label }}</th> 34 {% endfor %} 35 </tr> 36 <form action="" method="post" novalidate> 37 {{ admnform.hidden_tag() }} 38 {% for error in admnform.errors %} 39 <span style="color:red;">[{{ error }}]</span> 40 {% endfor %} 41 {% for role in ['Crew','Crew Lead','Project Manager','Developer','Accountant'] %} 42 <tr><td>{{ role }}</td> 43 {% for field in admnform %} 44 <td>{{ field }}</td> 45 {% endfor %} 46 </tr> 47 {% endfor %} 48 </form> 49 </table> 50 </section> 51 {% endblock %}