ministerchief commited on
Commit
de3a065
·
verified ·
1 Parent(s): 4da631e

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +12 -5
templates/index.html CHANGED
@@ -38,11 +38,18 @@
38
  <button type="submit">Generate QR</button>
39
  </form>
40
 
41
- {% if qr_image %}
42
- <hr>
43
- <h3>Generated QR</h3>
44
- <img src="{{ url_for('static', filename=qr_image) }}" width="200">
45
-
 
 
 
 
 
 
 
46
  <h3>Asset Details</h3>
47
  <p><strong>Asset ID:</strong> {{ asset["Asset ID"] }}</p>
48
  <p><strong>Type:</strong> {{ asset["Asset Type"] }}</p>
 
38
  <button type="submit">Generate QR</button>
39
  </form>
40
 
41
+ {% if qr_image %}
42
+ <hr>
43
+ <h3>Generated QR</h3>
44
+
45
+ <img src="{{ url_for('static', filename=qr_image) }}" width="200">
46
+
47
+ <br><br>
48
+
49
+ <a href="{{ url_for('static', filename=qr_image) }}" download="asset_qr.png">
50
+ <button>⬇ Download QR</button>
51
+ </a>
52
+
53
  <h3>Asset Details</h3>
54
  <p><strong>Asset ID:</strong> {{ asset["Asset ID"] }}</p>
55
  <p><strong>Type:</strong> {{ asset["Asset Type"] }}</p>