Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
6650f9cd
Commit
6650f9cd
authored
Apr 15, 2020
by
Vladislav Rykov
Browse files
application appearance changed
parent
a64b8045
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/app.html
View file @
6650f9cd
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment