django-swingcms / swingcms / cms / templates / cms / edit_folder.html

{% load i18n %}
{% load cms_filters %}
{% load custodian_tags_and_filters %}



<div id='folder'>

    {% if parent %}
        <a href='/edit/{{ parent.model_name }}/{{ parent.id }}'>
            <img src='{{ STATIC_URL }}cms/icons/edit_parent_arrow.png' alt="upper folder">
        </a><br />
        <br />
    {% endif %}

    <b>{% trans 'name' %}</b>: {{ obj.name }}<br />

    {% if obj.title %}
        <b>{% trans 'title' %}</b>: {{ obj.title }}<br />
    {% endif %}

    {% if obj.categories_list %}
        <b>{% trans 'categories' %}</b>:
        {% for c in obj.categories_list %}
	        {% if forloop.last %}
	            {{ cat }}
	        {% else %}
	            {{ cat }},
	        {% endif %}
        {% endfor %}<br />
    {% endif %}

    <b>{% trans 'max size' %}</b>: {% if obj.max_size %}
                                       {{ obj.max_size|filesizeformat }}
                                   {% else %}
                                       {% trans "undefined" %}
                                   {% endif %}<br />

    <b>{% trans 'owner' %}</b>: {{ obj.owner|default:'undefined' }}<br />

    <b>{% trans 'status' %}</b>: {{ obj.status }}<br />

    {% if obj.introduction %}
        <b>{% trans 'introduction' %}</b>: {{ obj.introduction|safe }}<br />
    {% endif %}
    <br />


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

        {% csrf_token %}

	    <table>
		    <tr class='column_names'>
			    <td></td>
			    <td><a href='/edit/folder/{{ obj.id }}/name'>{% trans 'name' %}</a></td>
			    <td><a href='/edit/folder/{{ obj.id }}/model_name'>{% trans 'type' %}</a></td>
			    <td><!--<a href='/edit/folder/{{ obj.id }}/id'>{% trans 'id' %}</a>--></td>
                <td><a href='/edit/folder/{{ obj.id }}/language'>{% trans 'lang' %}</a></td>
			    <td><a href='/edit/folder/{{ obj.id }}/dt_addition'>{% trans 'addition' %}</a></td>
			    <td><a href='/edit/folder/{{ obj.id }}/dt_modification'>{% trans 'modification' %}</a></td>
			    <td><a href='/edit/folder/{{ obj.id }}/owner'>{% trans 'owner' %}</a></td>
			    <td><a href='/edit/folder/{{ obj.id }}/status'>{% trans 'status' %}</a></td>
                <td><a href='/edit/folder/{{ obj.id }}/size'>{% trans 'size' %}</a></td>
                <td></td>
		    </tr>
	        {% for o in obj.objs %}
                {% ifperm 'view' 'obj' in o.perms %}
                    <tr>
                        <td class='col_0'>
                            <input type='checkbox' name='selected' value='{{ o.model_name }}/{{ o.id }}' />
                        </td>
                        {% if o.model_name == 'folder' %}
                            {% ifperm 'edit' 'obj' in o.perms %}
                                <td class='col_1'><a href='/edit/{{ o.model_name }}/{{ o.id }}'>{{ o.name }}</a></td>
                            {% else %}
                                <td class='col_1'>{{ o.name }}</td>
                            {% endifperm %}
                        {% else %}
                            {% ifperm 'view' 'obj' in o.perms %}
                                <td class='col_1'><a href='/view/{{ o.model_name }}/{{ o.id }}'>{{ o.name }}</a></td>
                            {% else %}
                                <td class='col_1'>{{ o.name }}</td>
                            {% endifperm %}
                        {% endif %}
                        {% if o.icon %}
                            {% if o.model_name == 'folder' or o.model_name == 'link' %}
                                <td class='col_2'><img class='icon' src='{{ STATIC_URL }}cms/icons/{{ o.icon }}' alt={{ o.model_name }}></td>
                            {% else %}
                                <td class='col_2'>{% trans o.model_name %}</td>
                            {% endif %}
                        {% else %}
                            <td class='col_2'>{% trans o.model_name %}</td>
                        {% endif %}
                        <td class='col_3'>{{ o.node.position }}</td>
                        <td class='col_4'>{{ o.language|default:'' }}</td>
                        <td class='col_5'>{{ o.dt_addition|date:'j-m-y' }}</td>
                        <td class='col_6'>{{ o.dt_modification|date:'j-m-y' }}</td>
                        <td class='col_7'>{{ o.owner }}</td>
                        <td class='col_8'>{% trans o.status %}</td>
                        <td class='col_9'>
                            {% if o.model_name == 'folder' %}
                                {{ o.size }} objects
                            {% else %}
                                {{ o.size|filesizeformat }}
                            {% endif %}
                        </td>
                        <td class='col_10'>
                            {% ifperm 'change' 'obj' in o.perms %}
                                <a href='/change/{{ o.model_name }}/{{ o.id }}' title='{% trans 'change' %}'>
                                    <img src="{{ STATIC_URL }}cms/icons/change.png" alt="{% trans 'change' %}">
                                </a>
                            {% endifperm %}
                            {% ifperm 'edit' 'obj' in o.perms %}
                                <a href='/edit/{{ o.model_name }}/{{ o.id }}' title='{% trans 'edit' %}'>
                                    <img src='{{ STATIC_URL }}cms/icons/edit.png' alt="{% trans 'edit' %}">
                                </a>
                            {% endifperm %}
                            {% ifperm 'edit' 'permission' in o.perms %}
                                <a href='/edit/specific_permissions/{{ o.model_name }}/{{ o.id }}' title='{% trans 'permissions' %}'>
                                    <img src='{{ STATIC_URL }}cms/icons/permissions.png' alt="{% trans 'permissions' %}">
                                </a>
                            {% endifperm %}
                        </td>
                    </tr>
                {% endifperm %}
            {% endfor %}
	    </table>

        <br />
        <br />
        <div class='buttons'>

            <h4>{% trans 'actions on selected objs' %}:</h4>
            <br />
            <div class="line">

                <b>{% trans 'actions' %}: </b>

                <input type="submit" value="{% trans 'copy' %}" onclick="set_hidden_value('action', 'copy');">|
                <input type="submit" value="{% trans 'cut' %}" onclick="set_hidden_value('action', 'cut');">|
                <input type="submit" value="{% trans 'delete' %}" onclick="set_hidden_value('action', 'delete');">|
                <input type="submit" value="{% trans 'swap' %}" onclick="set_hidden_value('action', 'swap');">|

            </div>

            <div class="line">

                <b>{% trans 'status' %}:</b>

                {% for s in statuses %}
                    <input type="submit" value="{% trans s %}" onclick="set_hidden_value('action', '{{ s }}');">|
                {% empty %}
                    {% trans 'not available' %}
                {% endfor %}

                &nbsp;( {% trans 'recursive' %} <input id='recursive' name='selected_objs_recursive' type='checkbox'> )

            </div>

            <input type="hidden" name="action" value="">

        </div> <!-- buttons -->

    </form>


    {% if obj.notes %}
        <b>{% trans 'notes' %}</b>: {{ obj.notes|safe }}<br />
    {% endif %}


</div> <!-- folder -->
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.