<h1 tal:replace="structure context/manage_page_header" />
<h1 tal:replace="structure context/manage_tabs" />

<style type="text/css">
  dl {
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 10pt;
  }
  dt {
    font-weight: bold;
  }
  pre {
    background-color: #cccccc;
    border: 1px solid black;
    padding: 0.5em;
    margin: 0.5em;
    font-size: 85%;
  }
  dl, pre, form {
    margin-left: 1em;
  }
</style>

<div>

  <p i18n:translate="">The following is the source of the
  "<code tal:content="request/form/view_name">viewname</code>"
  view registered as:</p>

  <dl tal:define="info view/getTemplateViewRegistrationInfo">
    <dt> view name </dt>
      <dd tal:content="info/viewname" />
    <dt> registered for interface </dt>
      <dd tal:content="info/for" />
    <dt> registered for request type </dt>
      <dd tal:content="info/type" />
    <dt> template file </dt>
      <dd tal:content="info/zptfile" />
    <dt> zcml file </dt>
      <dd tal:content="info/zcmlfile" />
  </dl>

  <pre tal:content="view/getTemplateCodeFromRegistration">
    template source
  </pre>

  <form action="@@customizezpt" method="post"
        enctype="multipart/form-data">
    <input type="hidden" name="for_name" value="theviewname"
           tal:attributes="value request/form/for_name" />
    <input type="hidden" name="type_name" value="theviewname"
           tal:attributes="value request/form/type_name" />
    <input type="hidden" name="view_name" value="theviewname"
           tal:attributes="value request/form/view_name" />
    <input type="submit" name="" value="Customize" />
  </form>

</div>

<h1 tal:replace="structure context/manage_page_footer" />