mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Cleanup database import modal
This commit is contained in:
parent
3043956dec
commit
43a7758acd
1 changed files with 6 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
<h4 class="modal-title">Import ${app} Database</h4>
|
<h4 class="modal-title">Import ${app} Database</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="modal-text">
|
<div class="modal-body" id="modal-text">
|
||||||
<form id="import_database" enctype="multipart/form-data" method="post" name="import_database">
|
<form id="import_database_form" enctype="multipart/form-data" method="post" name="import_database_form">
|
||||||
<input type="hidden" id="import_app" name="import_app" value="${app.lower()}" />
|
<input type="hidden" id="import_app" name="import_app" value="${app.lower()}" />
|
||||||
% if app in ('PlexWatch', 'Plexivity'):
|
% if app in ('PlexWatch', 'Plexivity'):
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
|
@ -64,7 +64,6 @@
|
||||||
<li><strong>Merge</strong> will add all history and remove any duplicates from the imported database into the current database.</li>
|
<li><strong>Merge</strong> will add all history and remove any duplicates from the imported database into the current database.</li>
|
||||||
<li><strong>Overwrite</strong> will replace all history in the current database with the imported database.</li>
|
<li><strong>Overwrite</strong> will replace all history in the current database with the imported database.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p class="help-block">Note: Libraries, users, notification agents, newsletter agents, and registered mobile devices will also be imported</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
|
@ -72,6 +71,10 @@
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">Automatically create a backup of the current database before importing.</p>
|
<p class="help-block">Automatically create a backup of the current database before importing.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Import Notes</label>
|
||||||
|
<p class="help-block">Libraries, users, notification agents, newsletter agents, and registered mobile devices will also be imported</p>
|
||||||
|
</div>
|
||||||
% else:
|
% else:
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="import_table_name">Table Name</label>
|
<label for="import_table_name">Table Name</label>
|
||||||
|
@ -107,7 +110,7 @@
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$('#import_database_path_browse').click(function () {
|
$('#import_database_path_browse').click(function () {
|
||||||
$('#browse-path-type').text('Databse File');
|
$('#browse-path-type').text('Database File');
|
||||||
$('#browse-path-modal').modal('show');
|
$('#browse-path-modal').modal('show');
|
||||||
browsePath(null, null, '.db');
|
browsePath(null, null, '.db');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue