mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-13 01:58:22 +00:00
fix: [UI items_submit] add active tag + fix template name
This commit is contained in:
parent
244b5ae2f6
commit
3357b855de
3 changed files with 13 additions and 15 deletions
|
@ -280,7 +280,7 @@ def PasteSubmit_page():
|
||||||
#active galaxies
|
#active galaxies
|
||||||
active_galaxies = r_serv_tags.smembers('active_galaxies')
|
active_galaxies = r_serv_tags.smembers('active_galaxies')
|
||||||
|
|
||||||
return render_template("submiting.html",
|
return render_template("submit_items.html",
|
||||||
active_taxonomies = active_taxonomies,
|
active_taxonomies = active_taxonomies,
|
||||||
active_galaxies = active_galaxies)
|
active_galaxies = active_galaxies)
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button class="btn btn-primary " name="submit" type="submit">Submit this item</button>
|
<button class="btn btn-primary " name="submit" type="submit">Submit Item</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
@ -187,6 +187,7 @@ var ltags
|
||||||
var ltagsgalaxies
|
var ltagsgalaxies
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
$("#page-items-submit").addClass("active");
|
||||||
|
|
||||||
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
|
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
|
||||||
function(data) {
|
function(data) {
|
||||||
|
@ -198,20 +199,17 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}",
|
$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}",
|
||||||
function(data) {
|
function(data) {
|
||||||
|
|
||||||
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
|
ltagsgalaxies = $('#ltagsgalaxies').tagSuggest({
|
||||||
data: data,
|
data: data,
|
||||||
maxDropHeight: 200,
|
maxDropHeight: 200,
|
||||||
name: 'ltagsgalaxies'
|
name: 'ltagsgalaxies'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
activePage = "page-PasteSubmit"
|
$('#modalsubmit').modal({backdrop: 'static'})
|
||||||
$("#"+activePage).addClass("active");
|
|
||||||
|
|
||||||
$('#modalsubmit').modal({backdrop: 'static'})
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function toggle_sidebar(){
|
function toggle_sidebar(){
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<a class="nav-link mr-3" id="page-Dashboard" href="{{ url_for('dashboard.index') }}">Home</a>
|
<a class="nav-link mr-3" id="page-Dashboard" href="{{ url_for('dashboard.index') }}">Home</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mr-3">
|
<li class="nav-item mr-3">
|
||||||
<a class="nav-link" href="{{ url_for('PasteSubmit.PasteSubmit_page') }}" aria-disabled="true"><i class="fas fa-external-link-alt"></i> Submit</a>
|
<a class="nav-link" id="page-items-submit" href="{{ url_for('PasteSubmit.PasteSubmit_page') }}" aria-disabled="true"><i class="fas fa-external-link-alt"></i> Submit</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item mr-3">
|
<li class="nav-item mr-3">
|
||||||
<a class="nav-link" id="page-Browse-Items" href="{{ url_for('Tags.Tags_page') }}" aria-disabled="true"><i class="fas fa-tag"></i> Browse Items</a>
|
<a class="nav-link" id="page-Browse-Items" href="{{ url_for('Tags.Tags_page') }}" aria-disabled="true"><i class="fas fa-tag"></i> Browse Items</a>
|
||||||
|
|
Loading…
Reference in a new issue