diff --git a/app/controllers/forms.server.controller.js b/app/controllers/forms.server.controller.js index 32e3348c..9c157f81 100644 --- a/app/controllers/forms.server.controller.js +++ b/app/controllers/forms.server.controller.js @@ -174,7 +174,7 @@ exports.uploadTemp = function(req, res) { */ exports.readForRender = function(req, res) { var newForm = req.form.toJSON(); - console.log(req.user); + if (!newForm.isLive && !req.user) { return res.status(404).send({ message: 'Form Does Not Exist' diff --git a/app/views/form.server.view.html b/app/views/form.server.view.html index a4d3030a..97b8497f 100644 --- a/app/views/form.server.view.html +++ b/app/views/form.server.view.html @@ -61,47 +61,6 @@ - - - - - - - - - - - -{% for bowerJSFile in bowerJSFiles %} - -{% endfor %} - - - - -{% for jsFile in formJSFiles %} - -{% endfor %} - - -{% if process.env.NODE_ENV === 'development' %} - - -{% endif %} - - - - - - + + + + + + + + + +{% for jsFile in formJSFiles %} + +{% endfor %} + + +{% if process.env.NODE_ENV === 'development' %} + + +{% endif %} + + + +
# | {{value.title}} | {{ 'PERCENTAGE_COMPLETE' | translate }} | {{ 'TIME_ELAPSED' | translate }} | {{ 'DEVICE' | translate }} | {{ 'LOCATION' | translate }} | {{ 'IP_ADDRESS' | translate }} | {{ 'DATE_SUBMITTED' | translate }} (UTC) | |
---|---|---|---|---|---|---|---|---|
{{$index+1}} | {{field.fieldValue}} | {{row.percentageComplete}}% | {{row.timeElapsed | secondsToDateTime | date:'mm:ss'}} | {{row.device.name}}, {{row.device.type}} | {{row.geoLocation.City}}, {{row.geoLocation.Country}} | {{row.ipAddr}} | {{row.created | date:'yyyy-MM-dd HH:mm:ss'}} |
{{pageData.introParagraph}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{myform.startPage.introParagraph}}
{{myform.endPage.paragraph}}
{{ \'BEFORE_YOU_CONTINUE\' | translate }} polydaic@gmail.com
{{ \'CHECK_YOUR_EMAIL\' | translate }} polydaic@gmail.com
# | {{value.title}} | {{ 'PERCENTAGE_COMPLETE' | translate }} | {{ 'TIME_ELAPSED' | translate }} | {{ 'DEVICE' | translate }} | {{ 'LOCATION' | translate }} | {{ 'IP_ADDRESS' | translate }} | {{ 'DATE_SUBMITTED' | translate }} (UTC) | |
---|---|---|---|---|---|---|---|---|
{{$index+1}} | {{field.fieldValue}} | {{row.percentageComplete}}% | {{row.timeElapsed | secondsToDateTime | date:'mm:ss'}} | {{row.device.name}}, {{row.device.type}} | {{row.geoLocation.City}}, {{row.geoLocation.Country}} | {{row.ipAddr}} | {{row.created | date:'yyyy-MM-dd HH:mm:ss'}} |
{{pageData.introParagraph}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{myform.startPage.introParagraph}}
{{myform.endPage.paragraph}}
{{ \'BEFORE_YOU_CONTINUE\' | translate }} polydaic@gmail.com
{{ \'CHECK_YOUR_EMAIL\' | translate }} polydaic@gmail.com
{{pageData.introParagraph}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{myform.startPage.introParagraph}}
{{myform.endPage.paragraph}}
{{pageData.introParagraph}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{field.description}}
{{myform.startPage.introParagraph}}
{{myform.endPage.paragraph}}