-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from SEL-Columbia/0.3.3-dev
0.3.3 dev
- Loading branch information
Showing
5 changed files
with
95 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block body %} | ||
<div class="container-fluid notification-alert"> | ||
</div> | ||
<div class="full-page-content"> | ||
<div class="center-wrap"> | ||
{% if message is not None %} | ||
<p><strong>{{ message }}</strong></p> | ||
{% end %} | ||
<h2>Read and validate cards:</h2> | ||
<div class="device-info"> | ||
<div class="card-info-header"> | ||
<span>Device Info</span> | ||
</div> | ||
</div> | ||
<br> | ||
<div class="card-info"> | ||
<div class="card-info-header"> | ||
<span>Card Info</span> | ||
</div> | ||
</div> | ||
<div> | ||
<form action="/cards" method="POST"> | ||
{% module xsrf_form_html() %} | ||
<input type="hidden" name="action" value="write" /> | ||
{% if device_active %} | ||
<input class="card-value" type="submit" value="Erase card" /> | ||
{% else %} | ||
<input class="card-value" type="submit" value="Erase card" title="Touch card to reader" disabled/> | ||
{% end %} | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<footer><a href="/">« Return to minigrid index</a></footer> | ||
|
||
<script> | ||
var http_protocol = '{{ http_protocol }}'; | ||
</script> | ||
<script type="text/javascript" src="{{ static_url('dist/read_card.bundle.js') }}"></script> | ||
<script type="text/javascript" src="{{ static_url('dist/write_card.bundle.js') }}"></script> | ||
|
||
{% end %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters