Added trade page

This commit is contained in:
S.W.S. de Zeeuw 2020-12-12 07:34:19 +01:00
parent 3f0e6f36ef
commit 12a6be6e50
3 changed files with 29 additions and 0 deletions

View File

@ -62,6 +62,11 @@ def explore():
posts=posts.items, next_url=next_url, posts=posts.items, next_url=next_url,
prev_url=prev_url) prev_url=prev_url)
@bp.route('/trade')
@login_required
def trade():
return render_template('trade.html', title=_('Trade'))
@bp.route('/user/<username>') @bp.route('/user/<username>')
@login_required @login_required

View File

@ -20,6 +20,7 @@
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="{{ url_for('main.index') }}">{{ _('Home') }}</a></li> <li><a href="{{ url_for('main.index') }}">{{ _('Home') }}</a></li>
<li><a href="{{ url_for('main.explore') }}">{{ _('Explore') }}</a></li> <li><a href="{{ url_for('main.explore') }}">{{ _('Explore') }}</a></li>
<li><a href="{{ url_for('main.trade') }}">{{ _('Trade') }}</a></li>
</ul> </ul>
{% if g.search_form %} {% if g.search_form %}
<form class="navbar-form navbar-left" method="get" action="{{ url_for('main.search') }}"> <form class="navbar-form navbar-left" method="get" action="{{ url_for('main.search') }}">

23
app/templates/trade.html Normal file
View File

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block app_content %}
<h1>{{ _('Trade') }}</h1>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="limit" autocomplete="off" checked> Limit
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="market" autocomplete="off"> Market
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="cond." autocomplete="off"> Cond.
</label>
</div>
<form>
<div class="form-group">
<label for="exampleInputEmail1">Ticker</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="ETHBTC">
<small id="emailHelp" class="form-text text-muted">Please enter a symbol</small>
</div>
</form>
{% endblock %}