from django import forms
from django.contrib.auth.models import User
from .models import Submission
from django.utils.translation import ugettext_lazy as _


class SubmissionForm(forms.ModelForm):
	class Meta:
		model = Submission
		fields = ['state', 'bucket', 'bidsdir', 'jobdir', 'creds_file', 'datasetname', 'modality', 'slice_timing']
		labels={
			'state':_('Analysis Level'),
			'bucket':_('S3 Bucket Name'),
			'bidsdir':_('S3 Bucket BIDS Directory'),
			'jobdir':_('Unique Token'),
			'creds_file':_('AWS Credentials File'),
			'datasetname':_('Dataset Name'),
			'modality':_('Modality'),
			'slice_timing':_('Slice Timing Method')
		}
		help_texts={
			'state':_('Level of analysis to perform'),
			'bucket':_('Name of S3 bucket where data lives'),
			'bidsdir':_('Path on S3 bucket where data lives'),
			'jobdir':_('Unique identifier for job submission to facilitate later queries'),
			'creds_file':_('File containing user credentials for AWS services'),
			'datasetname':_('Dataset name (group analysis)'),
			'modality':_('Modality of data'),
			'slice_timing':_('The method in which slices were acquired.')
		}

@@ -331,16 +331,29 @@
 _timing'
+, 'data_file'
 %5D%0A%09%09labe
@@ -647,16 +647,57 @@
 Method')
+,%0A%09%09%09'data_file':_('Local Data (Zipped)')
 %0A%09%09%7D%0A%09%09h
@@ -1170,13 +1170,112 @@
 uired.')
+,%0A%09%09%09'data_file':_('Local data to be uploaded to S3 bucket(stored in BIDS formatting and zipped).')
 %0A%09%09%7D%0A

Update forms.py