<tal:block i18n:domain="schooltool">
  <h3>
    <tal:block replace="context/title" />
    <a class="modify" href="" title="Edit this skill set"
       tal:attributes="href string:${context/@@absolute_url}/edit.html"
       i18n:attributes="title"
       tal:condition="context/schooltool:can_edit">
      <img tal:attributes="src context/++resource++schooltool.skin.flourish/edit-icon.png"
           alt="Edit"
           i18n:attributes="alt" />
    </a>
  </h3>

  <metal:block define-macro="subform-display">
    <div class="viewspace" metal:define-slot="viewspace">
      <div metal:define-slot="main">
        <table class="form-fields" metal:define-macro="formtable">
          <tr class="extraTopRow"
              metal:define-slot="extra_top"
              tal:replace="nothing">
            <td class="label"> Extra top </td>
            <td class="field"><input type="text" />
            </td>
          </tr>
          <tbody metal:define-slot="formbody" tal:omit-tag="">
            <tal:block omit-tag="" repeat="widget view/widgets/values">
              <tr metal:define-macro="formrow" class="row"
                  tal:condition="python:widget.mode != 'hidden'">
                <td class="label" metal:define-macro="labelcell">
                  <label tal:attributes="for widget/id">
                    <span tal:content="widget/label"> label </span>
                  </label>
                </td>
                <td class="field" metal:define-macro="widgetcell">
                  <div class="widget" tal:content="structure widget/render">
                    <input type="text" />
                  </div>
                </td>
              </tr>
            </tal:block>
          </tbody>
          <tr class="extraBottomRow"
              metal:define-slot="extra_bottom"
              tal:replace="nothing">
            <td class="label"> Extra bottom </td>
            <td class="label"><input type="text" />
            </td>
          </tr>
        </table>
        <metal:block define-macro="groups">
          <fieldset tal:condition="view/groups|nothing"
                    tal:repeat="view view/groups">
            <legend tal:condition="view/label"
                    tal:content="view/label">Label</legend>
            <metal:block define-slot="group-header">
            </metal:block>
            <metal:block define-slot="group-rows">
              <div metal:use-macro="macro:form-table" />
            </metal:block>
          </fieldset>
        </metal:block>
        <tal:block repeat="widget view/widgets/values"
                   ><input type="hidden" value=""
                   tal:condition="python:widget.mode == 'hidden'"
                   tal:replace="structure widget/render"
                   /></tal:block>
      </div>
      <metal:block define-slot="above-buttons">
      </metal:block>
    </div>
    <metal:block define-slot="bottom">
    </metal:block>
  </metal:block>

  <h3>
    <tal:block i18n:translate="">Skills</tal:block>
  </h3>

  <div tal:content="structure context/schooltool:content/ajax/table" />

  <h3>
    <a tal:attributes="href string:${context/schooltool:app/@@absolute_url}/skills"
       i18n:translate="">Done</a>
  </h3>

</tal:block>
