mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
Simplify grids
This commit is contained in:
parent
700ad7c9f7
commit
7af76899e3
@ -26,10 +26,8 @@ $(document).ready(function() {
|
|||||||
// Switching in double consumptions mode should update the layout
|
// Switching in double consumptions mode should update the layout
|
||||||
$("#double_conso").click(function() {
|
$("#double_conso").click(function() {
|
||||||
$("#consos_list_div").removeClass('d-none');
|
$("#consos_list_div").removeClass('d-none');
|
||||||
$("#infos_div").attr('class', 'col-sm-5 col-xl-6');
|
|
||||||
$("#note_infos_div").attr('class', 'col-xl-3');
|
|
||||||
$("#user_select_div").attr('class', 'col-xl-4');
|
$("#user_select_div").attr('class', 'col-xl-4');
|
||||||
$("#buttons_div").attr('class', 'col-sm-7 col-xl-6');
|
$("#infos_div").attr('class', 'col-sm-5 col-xl-6');
|
||||||
|
|
||||||
let note_list_obj = $("#note_list");
|
let note_list_obj = $("#note_list");
|
||||||
if (buttons.length > 0 && note_list_obj.text().length > 0) {
|
if (buttons.length > 0 && note_list_obj.text().length > 0) {
|
||||||
@ -45,10 +43,8 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$("#single_conso").click(function() {
|
$("#single_conso").click(function() {
|
||||||
$("#consos_list_div").addClass('d-none');
|
$("#consos_list_div").addClass('d-none');
|
||||||
$("#infos_div").attr('class', 'col-sm-5 col-md-4');
|
|
||||||
$("#note_infos_div").attr('class', 'col-xl-5');
|
|
||||||
$("#user_select_div").attr('class', 'col-xl-7');
|
$("#user_select_div").attr('class', 'col-xl-7');
|
||||||
$("#buttons_div").attr('class', 'col-sm-7 col-md-8');
|
$("#infos_div").attr('class', 'col-sm-5 col-md-4');
|
||||||
|
|
||||||
let consos_list_obj = $("#consos_list");
|
let consos_list_obj = $("#consos_list");
|
||||||
if (buttons.length > 0) {
|
if (buttons.length > 0) {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div class="col-sm-5 col-md-4" id="infos_div">
|
<div class="col-sm-5 col-md-4" id="infos_div">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{# User details column #}
|
{# User details column #}
|
||||||
<div class="col-xl-5" id="note_infos_div">
|
<div class="col">
|
||||||
<div class="card border-success shadow mb-4 text-center">
|
<div class="card border-success shadow mb-4 text-center">
|
||||||
<img src="/media/pic/default.png"
|
<img src="/media/pic/default.png"
|
||||||
id="profile_pic" alt="" class="card-img-top">
|
id="profile_pic" alt="" class="card-img-top">
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# Buttons column #}
|
{# Buttons column #}
|
||||||
<div class="col-sm-7 col-md-8" id="buttons_div">
|
<div class="col">
|
||||||
{# Show last used buttons #}
|
{# Show last used buttons #}
|
||||||
<div class="card shadow mb-4">
|
<div class="card shadow mb-4">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
|
Loading…
Reference in New Issue
Block a user