Skip to content

Commit

Permalink
Missing syndicate templates from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
meurig committed Sep 18, 2011
1 parent 89c4e59 commit 64e3ff0
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wggateway/templates/syndicate.html
@@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block subsidenav %}
<ul id="subnavlist">
<li><a href="{% url syndicates page=1 %}">All Syndicates</a></li>
</ul>
{% endblock %}
32 changes: 32 additions & 0 deletions wggateway/templates/syndicate_detail.html
@@ -0,0 +1,32 @@
{% extends "syndicate.html" %}
{% load humanize %}
{% block title %}Syndicate Detail{% endblock %}
{% block content %}
<h1>Syndicate Detail</h1>
<div class="formrow"><div class="formlabel2">Name</div> <div class="formfield">{{ syndicate.name }}</div>
<div class="formlabel2"><a href="{% url admin:wggateway_syndicate_change syndicate.id %}">Edit</a></div>
</div>
<div class="formrow">
<div class="formlabel2">Purchases</div>
<div class="formfieldwide">
<table class="ps_table">
<tr class="ps_row">
<td class="ps_col">Code</td>
<td class="ps_col">Currency</td>
<td class="ps_col">Notional</td>
<td class="ps_col">Product</td>
<td class="ps_col">Provider</td>
</tr>
{% for purchase in syndicate.purchase_set.all %}
<tr class="ps_row">
<td class="ps_col">{{ purchase.code }}</td>
<td class="ps_col">{{ purchase.notional_currency }}</td>
<td class="ps_col">{{ purchase.notional_amount|intcomma }}</td>
<td class="ps_col">{{ purchase.product }}</td>
<td class="ps_col">{{ purchase.product.provider }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock %}
18 changes: 18 additions & 0 deletions wggateway/templates/syndicate_list.html
@@ -0,0 +1,18 @@
{% extends "syndicate.html" %}

{% block title %}Syndicate List{% endblock %}

{% block content %}
<h1>Syndicate List</h1>
{% for syndicate in syndicate_list %}
<div class="formrow">
<div class="formfield">
<a href="{{ syndicate.get_absolute_url }}">{{ syndicate.name }}</a>
</div>
</div>
{% endfor %}
{% endblock %}

{% block pagination %}
{% include "pagination.html" %}
{% endblock %}

0 comments on commit 64e3ff0

Please sign in to comment.