Add second part in README
This commit is contained in:
@ -38,7 +38,15 @@
|
||||
<td><img class="img-responsive" src="{{ item.pictureURL }}" alt="{{ item.title }}"></td>
|
||||
<td>{{ item.title }}</td>
|
||||
<td>{{ item.price }}</td>
|
||||
<td><a href="#" class="btn btn-success">+</a></td>
|
||||
<td>
|
||||
<form action="{{ url_for('programadas_nuevo') }}" method="post">
|
||||
<input type="hidden" name="itemId" value="{{ item.itemId }}">
|
||||
<input type="hidden" name="title" value="{{ item.title }}">
|
||||
<input type="hidden" name="price" value="{{ item.price }}">
|
||||
<input type="hidden" name="pictureURL" value="{{ item.pictureURL }}">
|
||||
<input type="submit" class="btn btn-success" value="+">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -3,4 +3,28 @@
|
||||
{% block title %}Programadas{% endblock %}
|
||||
{% block body %}
|
||||
<h1>Programadas</h1>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Imagen</th>
|
||||
<th scope="col">Titulo</th>
|
||||
<th scope="col">Precio</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in programado_all %}
|
||||
<tr>
|
||||
<td><img src="{{ item.picture_URL }}" alt="{{ item.title }}"></td>
|
||||
<td>{{ item.title }}</td>
|
||||
<td>{{ item.price }}</td>
|
||||
<td>
|
||||
<form action="{{ url_for('programadas_borrar') }}" method="post">
|
||||
<input type="hidden" name="id" value="{{ item.id }}">
|
||||
<input type="submit" class="btn btn-danger" value="-">
|
||||
</form>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
@ -12,6 +12,15 @@
|
||||
<li role="presentation" {% if active_page == "buscador" or not active_page %}class="active"{% endif %}><a href="{{ url_for('buscador') }}">Buscador</a></li>
|
||||
<li role="presentation" {% if active_page == "programadas" %}class="active"{% endif %}><a href="{{ url_for('programadas') }}">Programadas</a></li>
|
||||
</ul>
|
||||
{# Flashed messages #}
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-success" role="alert">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{# End Flashed messages #}
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user