fix label to checkbox

This commit is contained in:
Jakobus Schürz 2019-09-23 12:56:32 +02:00
parent e55e8609bd
commit e133fcecfc

View file

@ -12,8 +12,10 @@
<label for="ssh_pubkey">SSH-Pubkey</label> <label for="ssh_pubkey">SSH-Pubkey</label>
<textarea name="ssh_pubkey" id="ssh_pubkey" readonly>{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}</textarea> <textarea name="ssh_pubkey" id="ssh_pubkey" readonly>{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}</textarea>
<!--div class="about">{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}<div--> <!--div class="about">{{ request.form['ssh_pubkey'] or pubkey['ssh_pubkey'] }}<div-->
<div>
<input type="checkbox" name="deleted" id="deleted" {% if pubkey['deleted'] != 0 %}checked="checked" {% endif %}> <input type="checkbox" name="deleted" id="deleted" {% if pubkey['deleted'] != 0 %}checked="checked" {% endif %}>
<label for="deleted">Key marked as deleted</label> <label for="deleted">Key marked as deleted</label>
</div>
<input type="submit" value="Save"> <input type="submit" value="Save">
</form> </form>
<hr> <hr>