<html metal:use-macro="context/@@standard_macros/page">
<body>

<metal:slot metal:fill-slot="body">
<metal:macro metal:define-macro="heading">
<h1 i18n:translate="heading_edit_marker">Assign Marker Interfaces</h1>
</metal:macro>
<metal:macro metal:define-macro="main">
<p class="form-help formHelp" i18n:translate="">Change the behavior of this
 object by adding or removing marker interfaces. You can choose one or more
 interfaces to be added to the list of provided interfaces for this
 object.</p>

<p class="form-help formHelp" i18n:translate="">A marker interface is used to
 identify an instance of a piece of content. When in conjunction with Five,
 this allows you to enable and disable views based on marker interfaces for
 example.</p>

<form action="." method="post"
   tal:attributes="action request/ACTUAL_URL">

<fieldset>
 <legend i18n:translate="legend_provided">Provided Interfaces</legend>
 <tal:loop tal:repeat="interface view/getInterfaceNames">
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <label class="form-mono"
    tal:content="interface/name">INTERFACE</label><br />
 </tal:loop>
 <tal:loop tal:repeat="interface view/getDirectlyProvidedNames">
 <input type="checkbox" id="INTERFACE" name="remove:list"
    tal:attributes="id interface/name; value interface/name" />
 <label class="form-mono" for="INTERFACE" tal:attributes="for interface/name"
    tal:content="interface/name">INTERFACE</label><br />
 </tal:loop>
 <tal:case tal:condition="view/getDirectlyProvidedNames">
 <div class="formControls FormButtons">
  <input class="form-element" type="submit" name="SAVE" value="Remove"
     i18n:attributes="value" />
 </div>
 </tal:case>
</fieldset>

<fieldset>
 <legend i18n:translate="legend_available_marker">Available Marker
  Interfaces</legend>
 <tal:loop tal:repeat="interface view/getAvailableInterfaceNames">
 <input type="checkbox" id="INTERFACE" name="add:list"
    tal:attributes="id interface/name; value interface/name" />
 <label class="form-mono" for="INTERFACE" tal:attributes="for interface/name"
    tal:content="interface/name">INTERFACE</label><br />
 </tal:loop>
 <div class="formControls FormButtons">
  <input class="form-element" type="submit" name="SAVE" value="Add"
     i18n:attributes="value" />
 </div>
</fieldset>

</form>
</metal:macro>
</metal:slot>

</body>
</html>
