Added the ability to add a reference image to a person, and connect the two in the db
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{% extends "base.html" %} {% block main_content %}
|
||||
<div class="container">
|
||||
<h3 class="offset-lg-2">{{page_title}}</h3>
|
||||
{{reference_imgs}}
|
||||
<div class="row">
|
||||
<form class="form form-inline col-xl-12" action="" method="POST">
|
||||
{% for field in form %}
|
||||
@@ -14,6 +13,18 @@
|
||||
</div class="form-row col-lg-12">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="form-row col-lg-12">
|
||||
<span class="col-lg-4"><center>Reference Images:</center></span>
|
||||
{% for ref_img in reference_imgs %}
|
||||
<div class="form-control col">
|
||||
<input id="ref-img-id-{{ref_img.id}}" name="ref-img-id-{{ref_img.id}}" type="checkbox"
|
||||
{% if ref_img in object.refimg %}
|
||||
checked
|
||||
{% endif %}
|
||||
> {{ref_img.fname}}</input>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div class="form-row col-lg-12">
|
||||
<div class="row col-lg-12">
|
||||
<br>
|
||||
</div class="row">
|
||||
|
||||
Reference in New Issue
Block a user