mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends 'users/base.html' %}
 | 
						|
{% load helpers %}
 | 
						|
 | 
						|
{% block title %}User Preferences{% endblock %}
 | 
						|
 | 
						|
{% block usercontent %}
 | 
						|
    {% if preferences %}
 | 
						|
        <form method="post" action="">
 | 
						|
            {% csrf_token %}
 | 
						|
            <table class="table table-striped">
 | 
						|
                <thead>
 | 
						|
                    <tr>
 | 
						|
                        <th><input type="checkbox" class="toggle" title="Toggle all"></th>
 | 
						|
                        <th>Preference</th>
 | 
						|
                        <th>Value</th>
 | 
						|
                    </tr>
 | 
						|
                </thead>
 | 
						|
                <tbody>
 | 
						|
                    {% for key, value in preferences.items %}
 | 
						|
                        <tr>
 | 
						|
                            <td class="min-width"><input type="checkbox" name="pk" value="{{ key }}"></td>
 | 
						|
                            <td><samp>{{ key }}</samp></td>
 | 
						|
                            <td><samp>{{ value }}</samp></td>
 | 
						|
                        </tr>
 | 
						|
                    {% endfor %}
 | 
						|
                </tbody>
 | 
						|
            </table>
 | 
						|
            <button type="submit" class="btn btn-danger">
 | 
						|
                <span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Clear Selected
 | 
						|
            </button>
 | 
						|
        </form>
 | 
						|
    {% else %}
 | 
						|
        <h3 class="text-muted text-center">No preferences found</h3>
 | 
						|
    {% endif %}
 | 
						|
{% endblock %}
 |