diff options
author | Konstantin Vorobyev <vorobyev@coacha.com> | 2017-02-15 17:38:48 +0900 |
---|---|---|
committer | Konstantin Vorobyev <vorobyev@coacha.com> | 2017-02-15 17:38:48 +0900 |
commit | 6e9de547c074ad794b6d272eda9bf9b7d7bef792 (patch) | |
tree | d147bb8d8d286e9293b6ce7642906a48d7817603 /app/Template/config/upload_db.php | |
parent | 5376bb9e0cf2aad9b12d6fde1f43f92854b55cf9 (diff) |
Fix #3030: Add upload the sqlite database feature
Diffstat (limited to 'app/Template/config/upload_db.php')
-rw-r--r-- | app/Template/config/upload_db.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/Template/config/upload_db.php b/app/Template/config/upload_db.php new file mode 100644 index 00000000..4d02c9a8 --- /dev/null +++ b/app/Template/config/upload_db.php @@ -0,0 +1,18 @@ +<div class="page-header"> + <h2><?= t('Upload the Sqlite database') ?></h2> +</div> + +<div class="alert"> + <ul> + <li><?= t('You can upload Gzip compressed Sqlite database you previously downloaded') ?></li> + </ul> +</div> + +<form action="<?= $this->url->href('ConfigController', 'uploadDbSave') ?>" method="post" enctype="multipart/form-data"> + <?= $this->form->csrf() ?> + + <?= $this->form->label(t('Database file'), 'file') ?> + <?= $this->form->file('file') ?> + + <?= $this->modal->submitButtons(array('submitLabel' => t('Upload'))) ?> +</form> |