<%def name="add()"> ${self.fileUpload()} ${self.generalInfo()} ${self.recordingInfo()} <%def name="update()"> ${self.unalterableData()} ${self.generalInfo()} ${self.recordingInfo()} <%def name="unalterableData()"> <%namespace file="/base/fileViews.html" name="fileViews" import="displayFile"/>
${c.file.name} % if app_globals.allowedFileTypes[c.file.MIMEtype]: <% fileType = app_globals.allowedFileTypes[c.file.MIMEtype] %> % else: <% fileType = c.file.MIMEtype.split('/')[0] %> % endif ${displayFile(c.file, fileType)} <%def name="fileUpload()">
File

  1. ${h.file('fileData', tabindex=1)}
<%def name="generalInfo()">
General Info
<%def name="recordingInfo()">
Recording-specific Info
  1. <% speakers = [('', '')] + app_globals.speakers %> ${h.select(name='speaker', selected_values="", options=speakers, tabindex=3)}
  2. <% users = [('', '')] + app_globals.users %> ${h.select(name='elicitor', selected_values="", options=users, tabindex=4)}
  3. ${h.select(name='utteranceType', selected_values="None", options=[('', 'None'), 'Object Language Utterance', 'Metalanguage Utterance', 'Mixed Utterance'], tabindex=5)}