Skip to content
Snippets Groups Projects
Commit 1b5e9cc7 authored by Jean-Philippe Laverdure's avatar Jean-Philippe Laverdure
Browse files

small updates

parent 3c72afa6
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ function activateDropzone(dzone) {
});
}
// Inspiration: https://www.html5rocks.com/en/tutorials/file/dndfiles/
function handleFileSelect(event) {
event.stopPropagation();
event.preventDefault();
......@@ -57,7 +58,7 @@ function handleFileSelect(event) {
data[tabs[0]] = tabs[1];
});
var out = JSON.stringify(data)
console.log(out);
// console.log(out);
event.srcElement.value = out;
};
......
{% extends './portal/skeleton.html' %}
{% load static %}
{% load i18n %}
{% block main_container %}
<main role="main" class="mb-5" style="background-color: #008cba; color: #fff !important;">
<div class="container-fluid">
{% block main_body %}
<div class="row">
<div class="col-md-6 col-lg-4">
<div class="d-flex justify-content-center">
<img src="{% static 'gas/dist/images/404_focus.png' %}" alt="404" />
<p class="my-5">
{% trans "Sorry, access to the requested resource has been restricted" %}
</p>
</div>
</div>
</div> <!-- /row -->
{% endblock %}
</div>
</main>
{% endblock %}
......@@ -174,7 +174,7 @@ $(function() {
this.submit();
} catch {
console.log('bug')
annot_field.parent().append('<div class="invalid-feedback">{% trans "Problem parsing annotation" %}</div>')
annot_field.parent().append("<div class='invalid-feedback'>{% trans 'Problem parsing annotation' %}</div>")
}
});
......
......@@ -13,7 +13,7 @@ class LoginSuccess(View):
External lab associations are to be managed manually
"""
user = self.request.user
if hasattr(user, 'ldapuser'):
user.profile.labs.remove(*Lab.objects.filter(ldap__startswith='iric-'))
user.profile.labs.add(*Lab.objects.filter(ldap__in=user.ldap_user.group_names))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment