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

  <h1 class="details-header"
      tal:content="string:${context/zope:name} Service"> 
    SampleService
  </h1>

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

  <div class="indent">
    <h3><span i18n:translate="">Interface:</span>
      <a href=""
         tal:attributes="href 
             string:../../Interface/${iface/getId}/apiindex.html"
         tal:content="iface/getId">zope.fields.Iface
      </a>
    </h3>
  </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> (Attribute)<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:../${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>


  
  <h2 class="details-section" i18n:translate="">Implementations</h2>
  <div class="indent">
    <ul>
      <li tal:repeat="impl view/implementations">
        <code><a href=""
           tal:attributes="href string:../../Class/${impl/url}/index.html"
           tal:content="impl/path" /></code>
      </li>
    </ul>
  </div>

</body>
</html>
