Source

django-swingcms / swingcms / custodian / templates / custodian / edit_users.html

{% load i18n %}



<div id='custodian'>

    <h2>Users</h2>
    <br />

    <form enctype='multipart/form-data' method='post' action='' onsubmit="return js_single_submit(this.submit);">

        {% csrf_token %}

	    <table>
		    <tr>
			    <td><a href='/edit_users/by_id'>Id</a></td>
			    <td><a href='/edit_users/by_username'>Username</a></td>
                		<td></td>
                		<td></td>
                		<td></td>
		    </tr>
		    {% for u in users %}

		        <tr>
			        <td>{{u.id}}</td>
			        <td>{{u.username}}</td>
                    <td>
	            	<a href='/change_user/{{ u.id }}'>change</a> | 
	            	<a href='/delete_user/{{ u.id }}'>delete</a>
                    {% if not u.is_superuser %}
                         | <a href='/edit_global_and_model_perms/user/{{ u.id }}'>permissions</a>
                    {% endif %}
	            </td>
	            </tr>		

		    {% endfor %}
	    </table>
	    <br />
	    <br />

        <input type='hidden' name='order' value='{{ order }}'>

    </form>


    <table>
	    <tr>
		    <td>
		    - <a href='/add_user'>add user</a>
		    </td>
	    </tr>
	
    </table>

</div>