<html xmlns:py="http://genshi.edgewall.org/"
  xmlns:i18n="http://genshi.edgewall.org/i18n"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  py:strip="">
  
  <py:def function="page_title">${c.pkg.title or c.pkg.name} - Edit - Datasets</py:def>
  <py:def function="page_heading">Edit: ${c.pkg.title or c.pkg.name}</py:def>

  <py:def function="body_class">hide-sidebar</py:def>

  <py:def function="optional_head">
    <script>
      var preload_dataset = ${c.pkg_json};
    </script>
  </py:def>

  <py:match path="primarysidebar">
    <li class="widget-container widget_text">
      <ul class="dataset-edit-nav">
        <!-- One button for each fieldset -->
        <li><a href="#section-basic-information">Basic Information</a></li>
        <li><a href="#section-further-information">Futher Information</a></li>
        <li><a href="#section-resources">Resources</a></li>
        <li><a href="#section-groups">Groups &amp; Tags</a></li>
        <li><a href="#section-extras">Extras</a></li>
      </ul>
    </li>
  </py:match>

  <div py:match="content" class="dataset-edit-form">
    ${c.form}
  </div>

  <xi:include href="layout.html" />
</html>

