moved styles to force folder naming correctly from base to files.html so that file_list.html didnt end up with crud. Also allowed move DBox to handle multiple storage paths and passes chosen (or only) storage path through to web front-end then to back-end job
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
{% block main_content %}
|
||||
|
||||
<style>
|
||||
/* used to force the figcaption to break long words (even without spaces) */
|
||||
figure { display: table; }
|
||||
figcaption {
|
||||
display: table-caption;
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
word-break: break-word;
|
||||
caption-side: bottom;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid">
|
||||
<form id="main_form" method="POST">
|
||||
<input type="hidden" name="cwd" id="cwd" value="{{cwd}}">
|
||||
@@ -326,7 +339,22 @@ function MoveDBox()
|
||||
dt=$('.highlight').first().attr('date')
|
||||
div+=`
|
||||
<div class="input-group col-lg-12 my-3">
|
||||
<alert class="alert alert-primary my-auto py-1">To: <i class="my-auto fas fa-database"></i>/</alert><input id="prefix" type="text" name="prefix" class="text-primary input-group-prepend col-lg-3 form-control-plaintext text-right"
|
||||
<alert class="alert alert-primary my-auto py-1"> <i class="my-auto fas fa-database"></i>
|
||||
`
|
||||
sps={{StoragePathNames()|safe}}
|
||||
if( sps.length > 1 ) {
|
||||
div+= '<select name="storage_rp" style="border-radius:4px" class="table-primary">'
|
||||
for(p of sps) {
|
||||
div+= '<option>/'+p+'/</option>'
|
||||
}
|
||||
div+= '</select>'
|
||||
} else {
|
||||
div+= '/'+sps[0]+'/'
|
||||
div+= '<input type="hidden" name="storage_rp" value="' + sps[0] + '">'
|
||||
}
|
||||
div+=`
|
||||
</alert>
|
||||
<input id="prefix" type="text" name="prefix" class="text-primary input-group-prepend col-lg-3 form-control-plaintext text-right"
|
||||
`
|
||||
div+="value="+yr+'/'+dt+"-"
|
||||
div+=`
|
||||
|
||||
Reference in New Issue
Block a user