fix: [UI items_submit] add active tag + fix template name

This commit is contained in:
Terrtia 2019-06-25 14:18:39 +02:00
parent 244b5ae2f6
commit 3357b855de
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
3 changed files with 13 additions and 15 deletions

View file

@ -280,7 +280,7 @@ def PasteSubmit_page():
#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_galaxies = active_galaxies)

View file

@ -169,7 +169,7 @@
</div>
<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>
</form>
@ -187,6 +187,7 @@ var ltags
var ltagsgalaxies
$(document).ready(function(){
$("#page-items-submit").addClass("active");
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
function(data) {
@ -208,9 +209,6 @@ $(document).ready(function(){
});
});
activePage = "page-PasteSubmit"
$("#"+activePage).addClass("active");
$('#modalsubmit').modal({backdrop: 'static'})
});

View file

@ -13,7 +13,7 @@
<a class="nav-link mr-3" id="page-Dashboard" href="{{ url_for('dashboard.index') }}">Home</a>
</li>
<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 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>