Skip to content
Snippets Groups Projects
Commit 4fc3d5f5 authored by Remco Tukker's avatar Remco Tukker
Browse files

make sure the introduction text is accurate

parent 13b459ac
Branches
Tags
1 merge request!63Feature/locking bugfixes
...@@ -46,14 +46,20 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi ...@@ -46,14 +46,20 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi
); );
}; };
const saveAndStopEdit = 'Save and stop editing';
const save = 'Save progress';
const startEditing = 'Start editing';
const completeSurvey = 'Complete Survey';
const renderExternalNavigation = () => { const renderExternalNavigation = () => {
return ( return (
<div className="survey-edit-buttons-block"> <div className="survey-edit-buttons-block">
{!editing && !lockedBy && surveyModel.editAllowed && renderButton('Start editing', 'startEdit')} {!editing && !lockedBy && surveyModel.editAllowed && renderButton(startEditing, 'startEdit')}
{!editing && lockedBy && lockedBy == loggedInUser.name && renderButton('Discard any unsaved changes and release your lock', 'releaseLock')} {!editing && lockedBy && lockedBy == loggedInUser.name && renderButton('Discard any unsaved changes and release your lock', 'releaseLock')}
{editing && (pageNo === surveyModel.visiblePages.length - 1) && renderButton('Complete Survey', 'complete')} {editing && (pageNo === surveyModel.visiblePages.length - 1) && renderButton(completeSurvey, 'complete')}
{editing && renderButton(saveAndStopEdit, 'saveAndStopEdit')} {editing && renderButton(saveAndStopEdit, 'saveAndStopEdit')}
{editing && renderButton('Save progress', 'save')} {editing && renderButton(save, 'save')}
{/* {(pageNo !== surveyModel.visiblePages.length - 1) && renderButton('Next Page', incrementPageNo)} */} {/* {(pageNo !== surveyModel.visiblePages.length - 1) && renderButton('Next Page', incrementPageNo)} */}
{/* {renderButton('Validate Page', 'validatePage')} */} {/* {renderButton('Validate Page', 'validatePage')} */}
{/* {pageNo !== 0 && renderButton('Previous Page', decrementPageNo)} */} {/* {pageNo !== 0 && renderButton('Previous Page', decrementPageNo)} */}
...@@ -61,18 +67,19 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi ...@@ -61,18 +67,19 @@ function SurveyNavigationComponent({ surveyModel, surveyActions, year, nren, chi
); );
}; };
const saveAndStopEdit = 'Save and stop editing';
const _year = parseInt(year); const _year = parseInt(year);
return ( return (
<Container> <Container>
<Row className="survey-content"> <Row className="survey-content">
<h2><span className="survey-title">{year} Compendium Survey </span><span className="survey-title-nren"> {nren} </span><span> - {responseStatus}</span></h2> <h2><span className="survey-title">{year} Compendium Survey </span><span className="survey-title-nren"> {nren} </span><span> - {responseStatus}</span></h2>
<p style={{marginTop: '1rem'}}> <p style={{marginTop: '1rem'}}>
To get started, check that nobody else from your NREN is currently working on the survey, then click “start editing” to end read-only mode. To get started, click “{startEditing}” to end read-only mode. This is only possible when nobody else from your NREN is currently working on the survey.
<br />Where available, the survey questions are pre-filled with answers from the previous year. The survey asks about the past year, i.e. the {year} survey asks about data from {_year - 1} (or {_year - 1}/{year} if your NRENs financial year does not match the calendar year). You can edit the prefilled answer to provide new information, or press the “no change from previous year” button. <br />Where available, the survey questions are pre-filled with answers from the previous year. The survey asks about the past year, i.e. the {year} survey asks about data from {_year - 1} (or {_year - 1}/{year} if your NRENs financial year does not match the calendar year).
<br />As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, i.e. different parts of your NREN can contribute to the survey if needed. You can edit the prefilled answer to provide new information, or press the “no change from previous year” button.
<br />When you reach the last section of the survey (Services), you will find a “Complete Survey“ button which saves all answers in the survey and lets the Compendium team know that you wish to submit your responses. If you accidentally complete the survey before you have completed it, please contact us and we will re-open the survey for you. <br />Press the “{save}“ or “{saveAndStopEdit}“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “{completeSurvey}“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published.
<br />As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “{completeSurvey}“ button. Different people from your NREN can contribute to the survey if needed.
<br />Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. <br />Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question.
<br />If you notice any errors after the survey was closed, please contact us for correcting those.
</p> </p>
<p>Thank you for taking the time to fill in the {year} Compendium Survey. Any questions or requests can be sent to <a href={`mailto:Partner-Relations@geant.org`}><span>Partner-Relations@geant.org</span></a></p> <p>Thank you for taking the time to fill in the {year} Compendium Survey. Any questions or requests can be sent to <a href={`mailto:Partner-Relations@geant.org`}><span>Partner-Relations@geant.org</span></a></p>
{editing && <><br /><b>Remember to click “{saveAndStopEdit}” before leaving the page.</b></>} {editing && <><br /><b>Remember to click “{saveAndStopEdit}” before leaving the page.</b></>}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment