diff --git a/www/js/survey/enketo/EnketoModal.tsx b/www/js/survey/enketo/EnketoModal.tsx index c7e8bfc95..768fcd0d1 100644 --- a/www/js/survey/enketo/EnketoModal.tsx +++ b/www/js/survey/enketo/EnketoModal.tsx @@ -1,7 +1,7 @@ import React, { useRef, useEffect } from 'react'; import { Form } from 'enketo-core'; import { StyleSheet, Modal, ScrollView, SafeAreaView, Pressable } from 'react-native'; -import { ModalProps } from 'react-native-paper'; +import { Button, Icon, ModalProps } from 'react-native-paper'; import useAppConfig from '../../useAppConfig'; import { useTranslation } from 'react-i18next'; import { SurveyOptions, fetchSurvey, getInstanceStr, saveResponse } from './enketoHelper'; @@ -97,7 +97,7 @@ const EnketoModal = ({ surveyName, onResponseSaved, opts, ...rest }: Props) => { {/* The retrieved form will be injected here */} -
+
{/* Used some quick-and-dirty inline CSS styles here because the form-footer should be styled in the mother application. The HTML markup can be changed as well. */} { style={{ position: 'absolute', left: 10, bottom: 40 }}> {t('survey.back')} - - - {t('survey.next')} + style={{ width: 200, margin: 'auto' }}> + + + +
{t('survey.powered-by')}{' '} enketo logo - {' '} +
- {t('survey.return-to-beginning')} + style={{ display: 'inline-flex', flex: 1, borderRadius: 0 }}> + + {t('survey.return-to-beginning')} - {t('survey.go-to-end')} + style={{ display: 'inline-flex', flex: 1, borderRadius: 0 }}> + {t('survey.go-to-end')} +
{/*
    */}