<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="senaite.core">
  <body>

    <metal:content-title fill-slot="content-title">
      <h1>
        <span class="documentFirstHeading" i18n:translate="">
          Copy analysis services
        </span>
      </h1>
    </metal:content-title>

    <metal:content-description fill-slot="content-description">
      <div
        class="text-muted text-secondary"
        i18n:translate=""
        tal:condition="python:view.services">
        Enter the details of each of the analysis services you want to copy.
      </div>
    </metal:content-description>

    <metal:content-core fill-slot="content-core">
      <span class="text-danger" tal:condition="python:not view.services" i18n:translate="">
        No analysis services were selected.
      </span>
      <form id="copy_form"
            tal:condition="python:view.services">
        <table class="table table-borderless table-hover">
          <tr class="border-bottom">
            <th>Analysis Service</th>
            <th>Title</th>
            <th>Keyword</th>
          </tr>
          <tal:x repeat="service view/services">
            <tr tal:attributes="source service/Title">
              <td>
                <input type="hidden" name="uids:list" tal:attributes="value service/UID"/>
                <span class="font-weight-bold" tal:content="service/Title"/>
              </td>
              <td>
                <input type="text" class="form-control" name="dst_title:list"/>
              </td>
              <td>
                <input type="text" class="form-control" name="dst_keyword:list"/>
              </td>
            </tr>
          </tal:x>
        </table>
        <input type="hidden" name="copy_form_submitted" value="1"/>
        <input type="submit" value="Copy" class="btn btn-outline-secondary" i18n:attributes="value"/>
      </form>
    </metal:content-core>

  </body>
</html>

