
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1081 fd906abe-77d9-0310-91a1-e0d9ade77398
115 lines
3.9 KiB
XML
115 lines
3.9 KiB
XML
<html i18n:domain="loops">
|
|
|
|
|
|
<metal:assignments define-macro="listing">
|
|
<fieldset>
|
|
<legend tal:content="legend"
|
|
i18n:translate="">Listing</legend>
|
|
<metal:top define-slot="topActions" />
|
|
<form metal:define-macro="listing_form"
|
|
method="post" name="listing" action="."
|
|
tal:attributes="action request/URL"
|
|
tal:condition="items">
|
|
<input type="hidden" name="action" value="remove"
|
|
tal:attributes="value action" />
|
|
<input type="hidden" name="qualifier" value="parents"
|
|
tal:condition="qualifier"
|
|
tal:attributes="value qualifier" />
|
|
<table class="listing" summary="Currently assigned objects"
|
|
i18n:attributes="summary"
|
|
tal:attributes="summary summary">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th i18n:translate="label_title">Title</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr tal:repeat="item items">
|
|
<td class="field">
|
|
<input class="formSelection"
|
|
type="checkbox" name="tokens:list" id="#" value=""
|
|
tal:attributes="value item/token" />
|
|
</td>
|
|
<td>
|
|
<a tal:content="item/title" href="#"
|
|
tal:attributes="href string:${item/url}/@@SelectedManagementView.html">
|
|
Title
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="formControls">
|
|
<input class="context" type="submit" name="form.button.submit"
|
|
value="Remove Assignment(s)"
|
|
i18n:attributes="value"
|
|
tal:attributes="value buttonText" />
|
|
<metal:buttons define-slot="specialButtons" />
|
|
</div>
|
|
</form>
|
|
</fieldset>
|
|
</metal:assignments>
|
|
|
|
|
|
<metal:create define-macro="create">
|
|
<fieldset>
|
|
<legend tal:content="legend"
|
|
i18n:translate="">Create Object</legend>
|
|
<form method="post" name="listing" action="."
|
|
tal:attributes="action request/URL">
|
|
<input type="hidden" name="action" value="create" />
|
|
<div class="row">
|
|
<span i18n:translate="">Name</span>
|
|
<input name="create.name" size="15"
|
|
tal:attributes="value nothing" />
|
|
<span i18n:translate="">Title</span>
|
|
<input name="create.title" size="30"
|
|
tal:attributes="value nothing" />
|
|
<span i18n:translate="">Type</span>
|
|
<select name="create.type">
|
|
<option value=".loops/concepts/topic"
|
|
i18n:translate="">Topic</option>
|
|
</select>
|
|
</div><br />
|
|
<div class="formControls">
|
|
<input class="context" type="submit" name="form.button.submit"
|
|
value="Create Object"
|
|
i18n:attributes="value"
|
|
tal:attributes="value buttonText" />
|
|
and assign as
|
|
<select name="assignAs">
|
|
<option value="child" selected i18n:translate="">Child</option>
|
|
<option value="parent" i18n:translate="">Parent</option>
|
|
</select>
|
|
</div>
|
|
</form>
|
|
</fieldset>
|
|
</metal:create>
|
|
|
|
|
|
<metal:search define-macro="search">
|
|
<form method="post" name="listing" action="."
|
|
tal:attributes="action request/URL">
|
|
<input type="hidden" name="action" value="search" />
|
|
<div class="row">
|
|
<span i18n:translate="">Search Term</span>
|
|
<input name="searchTerm"
|
|
tal:attributes="value request/searchTerm | nothing" />
|
|
<span i18n:translate="">Type</span>
|
|
<select name="search.type">
|
|
<option value="*">Any</option>
|
|
<option value=".loops/concepts/topic"
|
|
i18n:translate="">Topic</option>
|
|
</select>
|
|
</div>
|
|
<div class="formControls">
|
|
<input class="context" type="submit" name="form.button.submit"
|
|
value="Search"
|
|
i18n:attributes="value" />
|
|
</div>
|
|
</form>
|
|
</metal:search>
|
|
|
|
|
|
</html>
|