Skip to content

Commit

Permalink
Fixes #46. Added instructions to the export screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
dryror committed Jun 25, 2014
1 parent 799facc commit f1b96c8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/controllers/exportModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ var titleLabel = Titanium.UI.createLabel({
});
$.exportWin.setTitleControl(titleLabel);

// User Instructions
var instructions =
"Please press the Select button above.\n\n" +
"Use the picker below to select the Site Survey you wish to prepare for export and press Done.\n\n" +
"Press the Export button and wait for the confirmation that the Survey is ready for export.\n\n" +
"You can now connect your device to iTunes to retrieve the Survey folder.\n\n";
$.info.text = instructions;

function backBtnClick(){
Ti.App.fireEvent("app:enableIndexExportButton");
$.modalNav.close();
Expand Down Expand Up @@ -74,6 +82,7 @@ try {
$.selectLbl.addEventListener('click', surveyBtn);
} else {
$.selectLbl.text = "Please complete a survey before exporting";
$.info.text = "Please complete a survey before exporting.\n\n";
}

} catch (e) {
Expand Down
14 changes: 14 additions & 0 deletions app/styles/exportModal.tss
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,18 @@
height: 'auto',
style: Titanium.UI.iPhone.ProgressBarStyle.DEFAULT,
font: {fontSize: 20}
},
"#footerLine": {
height: 1,
top: 165, //479
left: 5,
right: 5,
borderWidth: 1,
borderColor:'#aaa'
},
"#info": {
left: 80,
right: 80,
top: 180,
font: {fontSize: 18}
}
4 changes: 3 additions & 1 deletion app/views/exportModal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<View id="formView">
<Label id="surveyLbl" text="Survey:" />
<Label id="selectLbl" text="Select" />
<Button id="exportBtn" title="Export" onClick="exportBtn">
<Button id="exportBtn" title="Export" onClick="exportBtn" />
<View id="footerLine" />
<Label id="info" />
</View>
<View id="surveyPkrView" visible="false">
<Button id="doneSurveyPkr" title="Done" onClick="doneSelectBtn"/>
Expand Down

0 comments on commit f1b96c8

Please sign in to comment.