Irvin Blais rock!

This commit is contained in:
didier amyot committed 2023-04-01 14:27:38 -04:00
1 parent f2c6c8d65c
commit 0d0337a6aa
17 files changed
+175 -39

No files matched your search

+25 -1
View File
@@ -4,7 +4,31 @@
{% block body %}
<div>bob le chef</div>
<table class="uk-table uk-table-divider uk-table-striped uk-table-hover uk-table-small">
<thead>
<tr>
<th></th>
<th>id</th>
<th>Amount</th>
<th>Account Type</th>
<th>Last Update</th>
<th>Security</th>
</tr>
</thead>
<tbody>
{% for account in accounts %}
<tr>
<td><a href="/accounts/{{ account.id }}"><span uk-icon="info"></span></a></td>
<td>{{ account.id }}</td>
<td>{{ account.amount }}</td>
<td>{{ account.account_type }}</td>
<td>{{ account.last_update }}</td>
<td>{{ account.security_symbol }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
@@ -7,6 +7,7 @@
<ul class="uk-navbar-nav">
{% set nav_bar_items = [{'id': 'overview', 'label': 'Overview'},
{'id': 'accounts', 'label': 'Accounts'},
{'id': 'securities', 'label': 'Securities'},
{'id': 'actions', 'label': 'Actions'}]%}
{% for itm in nav_bar_items %}
<li class="{% if active_navbar_item == itm.id %}uk-active"{% endif %}"><a href="{{ itm.id }}">{{ itm.label }}</a></li>
@@ -1,7 +1,7 @@
<div class="uk-margin">
<label class="uk-form-label"> Security
<select class="uk-select">
<select class="uk-select" name="event.CreateNewAccount.securityId">
{% for sec in securities %}
<option value="{{ sec.id }}">{{ sec.name }} ({{ sec.symbol }}) </option>
{% endfor %}
@@ -10,4 +10,7 @@
</label>
</div>
<input type="hidden" name="event.CreateNewAccount.userId" value="{{ user.id }}">
{%include "partials/actions/submit_button.html"%}
@@ -30,4 +30,6 @@
</label>
</div>
<input type="hidden" name="event.CreateNewSecurity.userId" value="{{ user.id }}">
{%include "partials/actions/submit_button.html"%}
+34
View File
@@ -0,0 +1,34 @@
{% set active_navbar_item = 'securities' %}
{% extends "base.html" %}
{% block body %}
<table class="uk-table uk-table-divider uk-table-striped uk-table-hover uk-table-small">
<thead>
<tr>
<th></th>
<th>Id</th>
<th>Name</th>
<th>Symbol</th>
<th>Type</th>
</tr>
</thead>
<tbody>
{% for sec in securities %}
<tr>
<td><a href="/securities/{{ sec.id }}"><span uk-icon="info"></span></a></td>
<td>{{ sec.id }}</td>
<td>{{ sec.name }}</td>
<td>{{ sec.symbol }}</td>
<td>{{ sec.security_type }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}