Commit 9fd097ad authored by Romain Loth's avatar Romain Loth

minor changes

parent 7d56227c
......@@ -117,7 +117,7 @@ SOURCE_FIELDS = [
# NB password values have already been sent by ajax to Doors
# mandatory minimum of keywords # TODO use
# mandatory minimum of keywords
MIN_KW = 5
# ============= context =============
......@@ -889,6 +889,9 @@ def read_record_from_request(request):
# replace str by array
clean_records[tok_field] = temp_array
if tok_field == 'keywords' and len(temp_array) < MIN_KW:
mlog('WARNING', 'only %i keywords instead of %i' % (len(temp_array), MIN_KW))
# special treatment for pic_file
if hasattr(request, "files") and 'pic_file' in request.files and request.files['pic_file']:
new_fname = tools.pic_blob_to_filename(request.files['pic_file'])
......
......@@ -626,6 +626,7 @@
<div class="row">
<div class="spacer col-lg-2 col-md-1 hidden-sm-down">&nbsp;</div>
<div class="my-centering-box col-lg-8 col-md-10 col-sm-12">
<div>
<h3 class="formcat"> About your data </h3>
<div class="cartouche" id="cnil_warning">
<p>Les informations recueillies à partir de ce formulaire font l’objet d’un traitement
......@@ -651,6 +652,7 @@
</p>
</div>
</div>
</div>
<div class="spacer col-lg-2 col-md-1 hidden-sm-down">&nbsp;</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment