Source

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

{% load i18n %}



<div id='custodian' class='lists'>

    <h2>Global and model permission granted to group {{ group.name }}</h2>
    <br />
    <br />

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

        {% csrf_token %}

        <table>
            <tr>
                <td>

                    <div class='switch0'>
                        <a href="javascript:switch_element('block0','block');switch_icons('switch0');">
                            <img src="{{ STATIC_URL }}cms/icons/minus.gif" title="minus" alt="minus">
                        </a> <h5>Calculated model permissions</h5><br />
                        <br />
                    </div>
                    <div class='block0 perms' style='display:block;'>
	                    {% for p in calculated_model_perms %}
                    		can {{ p|first }} {{ p|last }}<br />
                        {% empty %}
                            NONE<br />
	                    {% endfor %}
                    </div>

                </td>

                <td>

                    <div class='switch1'>
                        <a href="javascript:switch_element('block1','block');switch_icons('switch1');">
                            <img src="{{ STATIC_URL }}cms/icons/minus.gif" title="minus" alt="minus">
                        </a> <h5>Calculated global permissions</h5><br />
                        <br />
                    </div>
                    <div class='block1 perms' style='display:block;'>
	                    {% for p in calculated_global_perms %}
                    		can {{ p|first }} {{ p|last|default:'' }}<br />
                        {% empty %}
                            NONE<br />
	                    {% endfor %}
                    </div>

                </td>

                <td>

                    <div class='switch2'>
                        <a href="javascript:switch_element('block2','block');switch_icons('switch2');">
                            <img src="{{ STATIC_URL }}cms/icons/minus.gif" title="minus" alt="minus">
                        </a> <h5>Model permissions</h5><br />
                        <br />
                    </div>

                    <div class='block2 perms checkable' style='display:block;'>
	                    {% for p in all_model_perms %}
		                    <input type='checkbox' name='model_selected' value='CAN/{{ p|first }}/{{ p|last }}'
		                {% if p in model_perms|first %}
		                    checked
		                {% endif %}/>
                    		can {{ p|first }} {{ p|last }}<br />
	                    {% endfor %}
                    </div>

                    <div class='switch3'>
                        <a href="javascript:switch_element('block3','block');switch_icons('switch3');">
                            <img src="{{ STATIC_URL }}cms/icons/minus.gif" title="minus" alt="minus">
                        </a> <h5>Model prohibitions</h5><br />
                        <br />
                    </div>

                    <div class='block3 perms checkable' style='display:block;'>
	                    {% for p in all_model_perms %}
		                    <input type='checkbox' name='model_selected' value='CANNOT/{{ p|first }}/{{ p|last }}'
		                {% if p in model_perms|last %}
		                    checked
		                {% endif %}/>
                    		cannot {{ p|first }} {{ p|last }}<br />
	                    {% endfor %}
                    </div>

                </td>

                <td>

                    <div class='switch4'>
                        <a href="javascript:switch_element('block4','block');switch_icons('switch4');">
                            <img src="{{ STATIC_URL }}cms/icons/minus.gif" title="minus" alt="minus">
                        </a> <h5>Global permissions</h5><br />
                        <br />
                    </div>

                    <div class='block4 perms checkable' style='display:block;'>
	                    {% for p in all_global_perms %}
		                    <input type='checkbox' name='global_selected' value='CAN/{{ p|first }}/{{ p|last|default:'' }}'
		                {% if p in global_perms|first %}
		                    checked
		                {% endif %}/>
                    		can {{ p|first }} {{ p|last|default:'' }}<br />
	                    {% endfor %}
                    </div>

                    <div class='switch5'>
                        <a href="javascript:switch_element('block5','block');switch_icons('switch5');">
                            <img src="{{ STATIC_URL }}cms/icons/minus.gif" title="minus" alt="minus">
                        </a> <h5>Global prohibitions</h5><br />
                        <br />
                    </div>

                    <div class='block5 perms checkable' style='display:block;'>
	                    {% for p in all_global_perms %}
		                    <input type='checkbox' name='cannot_global_selected' value='CANNOT/{{ p|first }}/{{ p|last|default:'' }}'
		                {% if p in global_perms|last %}
		                    checked
		                {% endif %}/>
                    		cannot {{ p|first }} {{ p|last|default:'' }}<br />
	                    {% endfor %}
                    </div>

                </td>

            </tr>
        </table>

        <input type='submit' name='submit' value='Save'>

    </form>

</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.