<div xmlns:py="http://genshi.edgewall.org/" id="timingandestimationext_box">
　　<script type="text/javascript">
　　　　$(function() {
       $("#timingandestimationext_date").datepicker({dateFormat: 'yy-mm-dd'});
　　　　});
　　</script>
  <h2>作業時間入力</h2>
  <div>
    <form method="POST" action="${req.href.timingandestimationext()}">
      <input type="hidden" name="ticket_id" value="${ticket_id}" />
      <div>日付: <input id="timingandestimationext_date" type="text" name="timingandestimationext_date" value="${today}"/></div>
      <div>時間: <input type="text" name="timingandestimationext_hour" /></div>
      <div align="right"><input type="submit" name="submit" value="登録" /></div>
    </form>
    <form method="POST" action="${req.href.timingandestimationext('delete')}">
      <input type="hidden" name="ticket_id" value="${ticket_id}" />
      <br/>
      <div class="time_title"><span class="author">${req.authname}</span>の作業時間</div>
      <div>
        <dl>
          <dt py:if="len(my_works) == 0">未入力です。</dt>
          <dt py:if="len(my_works) > 0" class="time_sum">合計:${my_works_sum}</dt>
          <py:for each="row in my_works">
            <dt><span class="time">${row[0]}:&nbsp;</span>${row[1]}</dt>
          </py:for>
        </dl>
      </div>
    </form>
  </div>
</div>