<html metal:use-macro="views/apidoc_macros/details">
<body metal:fill-slot="contents"
      tal:define="iface view/getInterface">

  <h1 class="details-header">
    <a href=""
       tal:attributes="
           href string:../../../Interface/${iface/getId}/apiindex.html"
       tal:content="iface/getId" /> <br />
    (Name: "<span tal:replace="view/getName" />")
  </h1>

  <div class="indent" 
       tal:define="component view/getComponent"
       tal:condition="component">
    <h3>
      <span i18n:translate="">Component:</span>
      <a href=""
         tal:attributes="href 
             string:../../../Class/${component/url}/index.html"
         tal:content="component/path" /></h3>
  </div>

  <div class="indent">
    <div class="documentation" tal:content="structure iface/getDoc">
      Here is the doc string
    </div>
  </div>

  <h2 class="details-section" i18n:translate="">Attributes/Fields</h2>

  <div class="indent"
      tal:define="attributes iface/getAttributes;
                  fields iface/getFields">

  <ul class="attr-list" 
      tal:condition="python: attributes or fields">
  
    <li tal:repeat="attr attributes">
      <b><code tal:content="attr/name">attr</code></b>
      	<span i18n:translate="">(Attribute)</span><br>
      <div class="inline-documentation" tal:content="structure attr/doc">
        attr desc
      </div>      
    </li>

    <li tal:repeat="field fields">
      <b><code tal:content="field/name">field</code></b>
      - <a href=""
           tal:attributes="
               href string:../../../Interface/${field/iface/id}/apiindex.html">
          <code tal:content="field/iface/name">IField</code></a>
      (<span tal:content="string:${field/required}, ">optional, </span>
        default = <code tal:content="field/default" />)<br>
      <span tal:content="field/description">field desc</span>      
    </li>

  </ul>

  <p tal:condition="python: not (attributes or fields)">
    <em i18n:translate="">There are no attributes or fields specified.</em>
  </p>

  </div>



  <h2 class="details-section" i18n:translate="">Methods</h2>

  <div class="indent"
       tal:define="methods iface/getMethods">

  <ul class="attr-list" tal:condition="methods">
    <li tal:repeat="method methods">
      <b><code 
          tal:content="string:${method/name}${method/signature}" />
      </b><br>
      <div class="inline-documentation" tal:content="structure method/doc">
        method desc
      </div>      
    </li>
  </ul>

  <p tal:condition="not: methods">
    <em i18n:translate="">There are no methods or fields specified.</em>
  </p>

  </div>


</body>
</html>
