48 lines
No EOL
2.8 KiB
HTML
48 lines
No EOL
2.8 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Current Serverbörse Offers</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename = 'vendor/datatables/DataTables-1.10.24/css/jquery.dataTables.min.css') }}"/>
|
|
</head>
|
|
<body>
|
|
<table id="datatable">
|
|
<thead>
|
|
<th>Name</th>
|
|
<th>Price</th>
|
|
<th>Data Center</th>
|
|
<th>CPU</th>
|
|
<th>Price/CPU Point</th>
|
|
<th>RAM</th>
|
|
<th>Price/GB RAM</th>
|
|
<th>HDD</th>
|
|
<th>Price/GB HDD</th>
|
|
<th>Free text</th>
|
|
<th>Order</th>
|
|
</thead>
|
|
{% for server in servers %}
|
|
<tr>
|
|
<td>{{ server.name }}</td>
|
|
<td data-order="{{ server.price }}">€ {{ server.price }}</span></td>
|
|
<td>{{ server.datacenter }}</td>
|
|
<td><span title="{{ server.cpu.count }} x {{ server.cpu.name }}">{{ server.cpu.benchmark }}</span></td>
|
|
<td data-order="{{ server.price_per_cpu }}"><span title="€ {{ server.price_per_cpu }}">€ {{ server.price_per_cpu | round(4) }}</span></td>
|
|
<td data-order="{{ server.ram }}">{{ server.ram }} GB</td>
|
|
<td data-order="{{ server.price_per_ram }}"><span title="€ {{ server.price_per_ram }}">€ {{ server.price_per_ram | round(4) }}</span></td>
|
|
<td data-order="{{ server.hdd.total_size }}"><span title="{{ server.hdd.total_size }} GB">{{ server.hdd.count }} x {{ server.hdd.size }} GB</span></td>
|
|
<td data-order="{{ server.price_per_hdd }}"><span title="€ {{ server.price_per_hdd }}">€ {{ server.price_per_hdd | round(4) }}</span></td>
|
|
<td>{{ server.freetext }}</td>
|
|
<td>
|
|
<form class="order" action="https://robot.your-server.de/order/marketConfirm" method="POST" target="_blank">
|
|
<input type="hidden" name="id" value="{{ server.key }}">
|
|
<input type="hidden" name="server_id" value="{{ server.key }}">
|
|
<button class="btn btn-yellow btn-md btn-buy-product-list btn-block" type="submit"><i class="fa fa-shopping-cart"></i> Order</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</body>
|
|
<script type="text/javascript" src="{{ url_for('static', filename = 'vendor/jquery/jquery-3.6.0.min.js') }}"></script>
|
|
<script type="text/javascript" src="{{ url_for('static', filename = 'vendor/datatables/DataTables-1.10.24/js/jquery.dataTables.min.js') }}"></script>
|
|
<script type="text/javascript" src="{{ url_for('static', filename = 'js/datatable.js') }}"></script>
|
|
</html> |