Files
caminus/templates/market/index.html
Trever Fischer 58e4d2d9dd typo--
2012-11-17 16:11:33 -05:00

64 lines
1.3 KiB
HTML

{% extends 'base_simple.html' %}
{% block title %}The Market{% endblock %}
{% block sectiontitle %}The Market{% endblock %}
{% block content %}
<h2>Market Prices</h2>
<table>
<tr>
<th>Item</th>
<th>High</th>
<th>Low</th>
</tr>
{% for itemData in items %}
<tr>
<td>
<a href="{% url market.views.itemStats itemID=itemData.item.id%}">
{% include 'common/item.html' with item=itemData.item %}
</a>
</td>
<td>{{itemData.high}}</td>
<td>{{itemData.low}}</td>
</tr>
{% endfor %}
</table>
<h2>Sell Orders</h2>
<table>
<tr>
<th>Item</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Total Price</th>
<th>Action</th>
</tr>
{% for order in sell_orders %}
<tr>
<td><a href="{% url market.views.itemStats itemID=order.item.id%}">{{order.item}}</a></td>
<td>{{order.quantity}}</td>
<td>{{order.unit_price}}</td>
<td>{{order.total_price}}</td>
<td><a href="{% url market.views.buy orderID=order.id %}">Buy Now</a></td>
</tr>
{% endfor %}
</table>
<h2>Buy Orders</h2>
<table>
<tr>
<th>Item</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Total Price</th>
</tr>
{% for order in buy_orders %}
<tr>
<td>{{order.item}}</td>
<td>{{order.quantity}}</td>
<td>{{order.unit_price}}</td>
<td>{{order.total_price}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}