<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>${_('Delete Milestone %(name)s', name=milestone.name)}</title>
    <link rel="stylesheet" type="text/css"
          href="${chrome.htdocs_location}css/roadmap.css" />
    <script type="text/javascript">
      jQuery(document).ready(function($) {
        $("#retarget").click(function(){ $("#target").enable(this.checked) });
      });
    </script>
  </head>

  <body>
    <div id="content" class="milestone">
      <h1>${_('Delete Milestone %(name)s', name=milestone.name)}</h1>

    <form id="edit" action="" method="post">
      <div>
        <input type="hidden" name="action" value="delete" />
        <p><strong>${_('Are you sure you want to delete this milestone?')}</strong></p>
        <input type="checkbox" id="retarget" name="retarget" checked="checked" />
        <label for="target">${_('Retarget associated tickets to milestone')}</label>
        <select name="target" id="target">
          <option value="">None</option>
          <optgroup py:for="(label, milestones) in milestone_groups"
                    py:if="milestones" label="${label}">
            <option py:for="milestone in milestones"
                    py:content="milestone.name"></option>
          </optgroup>
        </select>
      </div>
      <div class="buttons">
       <input type="submit" name="cancel" value="${_('Cancel')}" />
       <input type="submit" value="${_('Delete milestone')}" />
      </div>
    </form>

    <!--! FIXME: message_contains_tag --> 
    <div id="help"><strong>Note:</strong> ロードマップについてのヘルプは 
      <a href="${href.wiki('TracRoadmap')}">TracRoadmap</a> を参照
      して下さい。
    </div>

    </div>
  </body>
</html>
