{% extends "base/headermenu.html" %}
{% load i18n %}

{% block contents %}

  <p><br></p>

  <table class="pageheader">
    <tr>
      <td align="left">
        {% trans "Category" %}: {{form.instance.category|escape}}
      </td>
      <td align="right">
      </td>
    </tr>
  </table>

{% if form.instance.is_complete %}
<p><br></p>

  <div class="mainbox">
    <div class="inner">
      <div class="top"><span></span></div>
        <div class="content">
          <p>
            <h3>このオークションは終了しています。</h3>
          </p>
        </div>
        <div class="base"><span></span></div>
      </div>
    </div>
  </div>

<p><br></p>
{% endif %}

<p><br></p>

  <div class="mainbox">
    <div class="inner">
      <div class="top"><span></span></div>
        <div class="content">
          <p>
            <h3>{% trans "Item Detail" %}</h3>

            <p>

              <form enctype="multipart/form-data"  action="{% url djanction.item.views.info model.id %}" method="POST">
              <input type="hidden" name="item" value="{{model.id}}"/>
                <table width="100%" border="0" collapse="0" cellspacing="10">
                  <tr>
                    <th width="100" align="left">{% trans "item name" %}</th>
                    <td>{{model.item_name|escape}}</td>
                  </tr>
                  <tr>
                    <th width="100" align="left">{% trans "item comment" %}</th><td bgcolor="#EFEFEF">{{model.comment|escape|linebreaks}}</td>
                  </tr>
                  <tr>
                    <th width="100" align="left">{% trans "add comment" %}</th><td>{{form.comment}}</td>
                    <b><td><font color="red">{{form.comment.errors}}</font></td></b>
                  </tr>
                  <tr>
                    <th width="100" align="left">{% trans "end date" %}</th>
                    <td>{{model.end_date}}</td>
                  </tr>
                  <tr>
                    <th width="100" align="left">{% trans "current price" %}</th>
                    <td><b>{{model.current_price}}{% trans "$"%}</b></td>
                  </tr>
                  <tr>
                   <th width="100" align="left">{% trans "start price" %}</th>
                    <td>{{model.start_price}}{% trans "$"%}</td>
                  </tr>
                  <tr>
                    <th width="100" align="left">{% trans "prompt price" %}</th>
                    <td>{{model.prompt_price}}{% trans "$"%}</td>
                  </tr>
                </table>

                <table width="100%" border="0" collapse="0" cellspacing="10">
                  {% if form.image1exist %}
                  <tr>
                    <td colspan="2"><img src="{% url top_page %}static/img/items/{{ model.id }}/1.jpeg" style="width:600px;" alt="{% trans 'image1' %}"></td>
                  </tr>
                  {% else %}
                  <tr>
                    <th width="100" align="left">{% trans "image1" %}</th>
                    <td>{{form.image1}}</td>
                  </tr>
                  {% endif %}
                  {% if form.image2exist %}
                  <tr>
                    <td colspan="2"><img src="{% url top_page %}static/img/items/{{ model.id }}/2.jpeg" style="width:600px;" alt="{% trans 'image2' %}"></td>
                  </tr>
                  {% else %}
                  <tr>
                    <th width="100" align="left">{% trans "image2" %}</th>
                    <td>{{form.image2}}</td>
                  </tr>
                  {% endif %}
                  {% if form.image3exist %}
                  <tr>
                    <td colspan="2"><img src="{% url top_page %}static/img/items/{{ model.id }}/3.jpeg" style="width:600px;" alt="{% trans 'image3' %}"></td>
                  </tr>
                  {% else %}
                  <tr>
                    <th width="100" align="left">{% trans "image3" %}</th>
                    <td>{{form.image3}}</td>
                  </tr>
                  {% endif %}
                </table>
              <p>
<input type="submit" value="更新"/>
              </p>
              </form>

            </p>
          </p>
        </div>
        <div class="base"><span></span></div>
      </div>
    </div>
  </div>


{% endblock %}
