| OLD | NEW |
| 1 {% extends 'auth/base.html' %} | 1 {% extends 'auth/base.html' %} |
| 2 {% block content %} | 2 {% block content %} |
| 3 | 3 |
| 4 | 4 |
| 5 {# IP whitelist selector. #} | 5 {# IP whitelist selector. #} |
| 6 {% set is_readonly = auth_service_config_locked or not is_admin %} | 6 {% set is_readonly = auth_service_config_locked or not is_admin %} |
| 7 <div class="row"> | 7 <div class="row"> |
| 8 <div class="col-md-12"> | 8 <div class="col-md-12"> |
| 9 <div class="panel panel-default"> | 9 <div class="panel panel-default"> |
| 10 <div class="panel-heading"> | 10 <div class="panel-heading"> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 Update whitelist | 40 Update whitelist |
| 41 </button> | 41 </button> |
| 42 <button id="delete-btn" type="button" class="btn btn-danger"> | 42 <button id="delete-btn" type="button" class="btn btn-danger"> |
| 43 Delete whitelist | 43 Delete whitelist |
| 44 </button> | 44 </button> |
| 45 </div> | 45 </div> |
| 46 {% endif %} | 46 {% endif %} |
| 47 </div> | 47 </div> |
| 48 {% if auth_service_config_locked %} | 48 {% if auth_service_config_locked %} |
| 49 <div class="form-group"> | 49 <div class="form-group"> |
| 50 {{ render_config_locked() }} | 50 {{ render_config_locked("ip_whitelist.cfg") }} |
| 51 </div> | 51 </div> |
| 52 {% endif %} | 52 {% endif %} |
| 53 </form> | 53 </form> |
| 54 </div> | 54 </div> |
| 55 </div> | 55 </div> |
| 56 </div> | 56 </div> |
| 57 </div> | 57 </div> |
| 58 | 58 |
| 59 | 59 |
| 60 {# "Create new whitelist" modal box, copy pasted straight from bootstrap docs. #
} | 60 {# "Create new whitelist" modal box, copy pasted straight from bootstrap docs. #
} |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 <button type="button" class="btn btn-primary" id='create-btn'> | 95 <button type="button" class="btn btn-primary" id='create-btn'> |
| 96 Create | 96 Create |
| 97 </button> | 97 </button> |
| 98 </div> | 98 </div> |
| 99 </div> | 99 </div> |
| 100 </div> | 100 </div> |
| 101 </div> | 101 </div> |
| 102 | 102 |
| 103 | 103 |
| 104 {% endblock %} | 104 {% endblock %} |
| OLD | NEW |