59 lines
2.1 KiB
HTML
59 lines
2.1 KiB
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
|
|
<h2>{{title}}</h2>
|
|
<!-- Div Table -->
|
|
<div class="table-responsive">
|
|
<table class="table table-hover table-sm" cellspacing="0" width="100%">
|
|
<thead class="bg-dark text-light">
|
|
<tr>
|
|
<th>#</th>
|
|
{% for column in columns %}
|
|
<th>{{column}}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for index, sample in enumerate(data) %}
|
|
<tr>
|
|
<td><a href="{{url_for('copy_to_form', scenario = scenario, index = index)}}"><i class="fas fa-link text-dark"></i></a></td>
|
|
{% for column_index in range(columns.__len__()) %}
|
|
<td>{{sample[column_index]}}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- End of table-->
|
|
|
|
<!-- Forms-->
|
|
<h2>Forms</h2>
|
|
<form class="container-fluid" method="post" action="{{url_for('enviar_exemplo', scenario = scenario)}}">
|
|
<div class="row alert alert-dark bg-dark text-light">
|
|
|
|
{% for index, column in enumerate(columns) %}
|
|
<div class="col-2">
|
|
<input type="checkbox" style="margin:1rem;" name="checkbox{{index}}" id="" {{'checked' if loop.index < 5}}>
|
|
<label for="f{{index}}">{{column}}</label>
|
|
<input type="text" class="form-control form-control-sm" name="caixa{{index}}" value="{{selected[index] if selected }}">
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<div class="col-12 py-1">
|
|
<button type="submit" class="btn btn-light float-right">Submit</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- End of forms -->
|
|
|
|
<!-- API Section -->
|
|
<h2> API Exemples</h2>
|
|
<div>
|
|
<div class="alert alert-dark bg-light">
|
|
<pre><code class="text-dark">POST Trequest Code</code></pre>
|
|
</div>
|
|
</div>
|
|
<!-- API -->
|
|
{% endblock %}
|