Commit 6650f9cd authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

application appearance changed

parent a64b8045
...@@ -6,23 +6,44 @@ ...@@ -6,23 +6,44 @@
<div class="row"> <div class="row">
<div class="col-md-6 col-md-offset-3"> <div class="col-md-6 col-md-offset-3">
<p>Name: {{ app[0] }} </p> <div class="panel panel-primary">
<p>Description : {{ app[3] }} </p> <div class="panel-heading">
<p>app-key: {{ app[1] }} </p> <h2><center> {{ app[0] }} </center></h2>
</div>
<p>Devices:</p> <div class="panel-body">
{% if devs %} <table class="table table-hover">
<ol> <tbody>
{% for dev in devs %} <tr>
<li><a href="/dev?id={{ dev[1] }}"> {{ dev[0] }} </a></li> <th>Description</th>
{% endfor %} <th> {{ app[3] }} </th>
</ol> </tr>
{% else %} <tr>
<p> No registed devices </p> <th>app-key</th>
{% endif %} <th> {{ app[1] }} </th>
</tr>
<a href="/add-dev"><button type="submit" class="btn btn-primary">Add Device</button></a> </tbody>
<a href="/delete-app"><button type="submit" class="btn btn-danger" onclick="return conf();">Delete Application</button></a> </table>
</div>
{% if devs %}
<h3><center>Devices:</center></h3>
<ol class="list-group">
{% for dev in devs %}
<a href="/dev?id={{ dev[1] }}"><li class="list-group-item"><strong> {{ dev[0] }} <strong></li></a>
{% endfor %}
</ol>
{% else %}
<h3> No registed devices </h3>
{% endif %}
<br><br>
<center>
<a href="/add-dev"><button type="submit" class="btn btn-primary">Add Device</button></a>
<a href="/delete-app"><button type="submit" class="btn btn-danger" onclick="return conf();">Delete Application</button></a>
</center>
<br>
</div>
</div> </div>
</div> </div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment