Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing syndicate templates from last commit
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |