1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Set fluid container on parent template

This commit is contained in:
Alexandre Iooss 2020-08-23 00:03:10 +02:00
parent 2c1cf148fa
commit 342d3910c7
3 changed files with 30 additions and 36 deletions

View File

@ -1,8 +1,5 @@
{% extends "member/noteowner_detail.html" %}
{# Use a fluid-width container #}
{% block containertype %}container-fluid{% endblock %}
{% block profile_info %}
{% include "member/club_info.html" %}
{% endblock %}
@ -12,10 +9,10 @@
{% endblock %}
{% block extrajavascript %}
<script>
function refreshHistory() {
$("#history_list").load("{% url 'member:club_detail' pk=object.pk %} #history_list");
$("#profile_infos").load("{% url 'member:club_detail' pk=object.pk %} #profile_infos");
}
</script>
<script>
function refreshHistory() {
$("#history_list").load("{% url 'member:club_detail' pk=object.pk %} #history_list");
$("#profile_infos").load("{% url 'member:club_detail' pk=object.pk %} #profile_infos");
}
</script>
{% endblock %}

View File

@ -1,32 +1,32 @@
{% extends "base.html" %}
{% load static %}
{% load i18n %}
{% load static i18n pretty_money %}
{% load render_table from django_tables2 %}
{% load pretty_money %}
{# Use a fluid-width container #}
{% block containertype %}container-fluid{% endblock %}
{% block content %}
<div class="row mt-4">
<div class="col-xl-4">
{% block profile_info %}
{% endblock %}
</div>
<div class="col-xl-8">
{% block profile_content %}
{% endblock %}
</div>
<div class="row mt-4">
<div class="col-xl-4">
{% block profile_info %}
{% endblock %}
</div>
<div class="col-xl-8">
{% block profile_content %}
{% endblock %}
</div>
</div>
{% block extra_content %}
{% endblock %}
{% block extra_content %}{% endblock %}
{% endblock %}
{% block extrajavascript %}
<script>
{% if object %}
function refreshHistory() {
$("#history_list").load("{% url 'member:user_detail' pk=object.pk %} #history_list");
$("#profile_infos").load("{% url 'member:user_detail' pk=object.pk %} #profile_infos");
}
{% endif %}
</script>
<script>
{% if object %}
function refreshHistory() {
$("#history_list").load("{% url 'member:user_detail' pk=object.pk %} #history_list");
$("#profile_infos").load("{% url 'member:user_detail' pk=object.pk %} #profile_infos");
}
{% endif %}
</script>
{% endblock %}

View File

@ -1,8 +1,5 @@
{% extends "member/noteowner_detail.html" %}
{# Use a fluid-width container #}
{% block containertype %}container-fluid{% endblock %}
{% block profile_info %}
{% include "member/profile_info.html" %}
{% endblock %}