Skip to content
Snippets Groups Projects
Commit 4b7f53f6 authored by Jonathan Séguin's avatar Jonathan Séguin
Browse files

Merge branch '122-add-json-example-for-annotations-in-file-upload-form' into 'master'

Resolve "Add JSON example for annotations in file upload form"

Closes #122

See merge request !72
parents 9ff1e8c8 be6b0649
No related branches found
No related tags found
1 merge request!72Resolve "Add JSON example for annotations in file upload form"
......@@ -218,7 +218,8 @@ class DataFileServletUploadForm(forms.ModelForm):
class DataFileAnnotationForm(forms.Form):
dropzone_files = forms.CharField(required=False, widget=forms.HiddenInput)
annotations = HStoreField(required=False, label=_('Attach these annotations with the uploaded files:'), help_text=_('Pro Tip: You can also drop a tab separated value file onto this field'))
annotations = HStoreField(required=False, label=_('Attach these annotations with the uploaded files:'), help_text=_('Pro Tip: You can also drop a tab separated value file onto this field'),
widget=forms.Textarea(attrs={'placeholder':'{"key": "value"}'}))
lab = forms.ChoiceField(required=False, label=_('Attach uploaded files to this lab:'))
def __init__(self, request, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment