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
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)

View file

@ -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) {
@ -208,9 +209,6 @@ $(document).ready(function(){
}); });
}); });
activePage = "page-PasteSubmit"
$("#"+activePage).addClass("active");
$('#modalsubmit').modal({backdrop: 'static'}) $('#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> <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>