-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submission submission via Webforms #1125
base: master
Are you sure you want to change the base?
Conversation
39de8c8
to
83caae4
Compare
e82d6d7
to
fd66477
Compare
…orms supports it)
* created separate components to render Enketo vs ODK-Web-Forms * handle draft submissions * redirect on Enketo submission * all routes are now async * webhistory based navigation instead of hash-based * show correct URL in public links page
fd66477
to
0cac584
Compare
|
||
location ~* "^/-/(?<enketoPath>single|X)/(?<enketoId>[a-zA-Z0-9]{31})" { | ||
# Form fill link, public | ||
if ($request_method = GET) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this if condition is not necessary because we only send GET request to this location
</template> | ||
</modal> | ||
|
||
<modal v-bind="submissionModal" hideable backdrop @hide="submissionModal.hide()"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this modal can be move to separate file, but I am expecting UI changes to this so I will move it along with those changes.
}, | ||
"formSetting": { | ||
"formTech": "Web based form technology", | ||
"enableWebForms": "Use WebForms instead of Enketo", | ||
"enableWebFormsExplanation": "When users fill out forms via the web (not via ODK Collect), we use Enketo by default. Its successor is \"WebForms\", which is a work in progress that you can already test.", | ||
"enableWebFormsExplanationLinktext": "Before enabling this, read up on WebForms and which form features it currently supports!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking to remove these translations and enter static text since they might change
@@ -96,12 +96,18 @@ export default { | |||
|
|||
$border-height: 3px; | |||
|
|||
:root { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why this change was made, I should revert this.
Closes getodk/web-forms#23 and getodk/central#883
Underlying strategy: redirect the Enketo URLs for form filling, previewing, public links etc to central-frontend routes. Then decide dynamically (based on a form's settings) whether to use Webforms, or Enketo after all (in an iframe).
See Google doc, Jan 21 meeting notes for loose ends.
Depends on: #1141 should be merged first.
This branch still uses web-forms#v0.6.0 that doesn't emits submission payload, hence I have kept dead code in here. I will enable that code in the related PR when a new version of web-forms is available.
There is one unanswered question about what to do when session times out while filling out the Form, that will be handle in getodk/central#910.
Another known issue to me is that if you copy the URL from the "New Submission" button and paste it in a new browser or incognito window, you will see error message instead of login page. I don't if that's important to fix. I can fix it with getodk/central#910 if required.