96 lines
3.0 KiB
XML
96 lines
3.0 KiB
XML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
|
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
|
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
|
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
lang="en"
|
|
metal:use-macro="context/main_template/macros/master"
|
|
i18n:domain="plone.app.dexterity">
|
|
<body>
|
|
|
|
<metal:main fill-slot="main">
|
|
|
|
<h1 class="documentFirstHeading" tal:content="context/Title" />
|
|
<div tal:replace="structure provider:plone.belowcontenttitle" />
|
|
|
|
<input type="hidden" name="folder_intid" tal:attributes="value context/intid"/>
|
|
<div id="searchresults"><span class="loading">(chargement en cours...)</span></div>
|
|
|
|
<div style="display: none;">
|
|
<input id="sort_on" value="sortable_title"/>
|
|
<input id="sort_order" type="checkbox"/>
|
|
</div>
|
|
|
|
<div style="margin-top: 2em">
|
|
<div tal:condition="context/description">
|
|
<label>Description</label>
|
|
<div tal:content="context/description">
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<div id="folder-metadata">
|
|
<fieldset>
|
|
<legend>Métadonnées et permissions</legend>
|
|
<div tal:condition="context/keywords">
|
|
<label>Mots-clés</label>
|
|
<tal:list>
|
|
<ul id="" class=""
|
|
tal:attributes="id string:form-widgets-related;
|
|
class string:contenttree-widget relatedthesauruskeywords-field;
|
|
"><li tal:repeat="value view/w/keywords/displayItems"
|
|
><a href="#"
|
|
tal:content="value/title"
|
|
tal:attributes="href value/href"
|
|
/></li
|
|
></ul></tal:list>
|
|
|
|
</div>
|
|
|
|
<div tal:condition="context/treating_groups">
|
|
<label>Modifiable par</label> <div tal:content="structure view/w/treating_groups"/>
|
|
</div>
|
|
|
|
<div tal:condition="context/recipient_groups">
|
|
<label>Lisible par</label> <div tal:content="structure view/w/recipient_groups"/>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div id="folder-filed">
|
|
<tal:belowcontent replace="structure provider:folder.belowcontent" />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
$.querywidget.updateSearch = function () {
|
|
var context_url = (function() {
|
|
var baseUrl, pieces;
|
|
baseUrl = $('base').attr('href');
|
|
if (!baseUrl) {
|
|
pieces = window.location.href.split('/');
|
|
pieces.pop();
|
|
baseUrl = pieces.join('/');
|
|
}
|
|
return baseUrl;
|
|
})();
|
|
var query = context_url + "/@@querybuilder_html_results?";
|
|
query += "query.i:records=object_folders&query.o:records=plone.app.querystring.operation.int.is&query.v:records:list=";
|
|
query += $("input[name='folder_intid']").val();
|
|
query += '&sort_on=' + $('#sort_on').val();
|
|
if ($('#sort_order:checked').length > 0) {
|
|
query += '&sort_order=reverse';
|
|
}
|
|
$.querywidget.runQuery(query);
|
|
};
|
|
|
|
$(function() {
|
|
$.querywidget.updateSearch();
|
|
});
|
|
</script>
|
|
</metal:main>
|
|
|
|
</body>
|
|
</html>
|