Add progress bar for installer...still need to write the actual migrations

This commit is contained in:
Mike Koch 2017-09-28 13:04:22 -04:00
parent 8b0fe2cdaf
commit 5aeb90852b
No known key found for this signature in database
GPG Key ID: 9BA5D7F8391455ED
2 changed files with 13 additions and 6 deletions

View File

@ -122,7 +122,13 @@ if (hesk_dbNumRows($tableSql) > 0) {
</table> </table>
</div> </div>
<div data-step="install-or-update" style="display: none"> <div data-step="install-or-update" style="display: none">
<p>Here we'd actually be doing some things</p> <div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"
style="min-width: 2em; width: 100%">
<span class="sr-only">100% Complete</span>
100%
</div>
</div>
</div> </div>
<?php // END INSTALL SCREENS ?> <?php // END INSTALL SCREENS ?>
<div id="buttons"> <div id="buttons">

View File

@ -7,7 +7,12 @@ var steps = [
{ {
name: 'db-confirm', name: 'db-confirm',
text: 'Confirm the information below', text: 'Confirm the information below',
callback: confirmDatabaseInformation callback: undefined
},
{
name: 'install-or-update',
text: 'Updating to the latest version...',
callback: undefined
} }
]; ];
@ -42,8 +47,4 @@ function goToStep(step) {
} }
$('#header-text').text(steps[step].text); $('#header-text').text(steps[step].text);
}
function confirmDatabaseInformation() {
} }