Commit 7ecdae81 authored by David Surville's avatar David Surville
Browse files

Modification des pages de gestion des privilèges et des périmètres suite au passage à Boostrap 5

parent d93ff060
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
div.unicaen-privilege > .titre {
div.unicaen-privilege > .page-header {
    margin-bottom: 20px;
}

div.unicaen-privilege > .titre h2 {
div.unicaen-privilege > .page-header h2 {
    margin: 5px 0 0;
}

div.unicaen-privilege h3.sous-titre {
    margin-top: 40px;
}

div.unicaen-privilege > .titre .btn {
div.unicaen-privilege > .page-header .btn {
    float: right;
    border: none;
    min-width: 50px;
@@ -18,6 +14,10 @@ div.unicaen-privilege > .titre .btn {
    margin-left: 10px;
}

div.unicaen-privilege h3.sous-titre {
    margin-top: 40px;
}

div.unicaen-privilege .table-header-rotated th.rotate-45 {
    border-bottom-width: 1px;
    border-bottom-style: inherit;
+7 −5
Original line number Diff line number Diff line
@@ -20,13 +20,14 @@ $canSupprimer = $this->isAllowed(PerimetrePrivileges::getResourceId(PerimetreP
<?php $this->headTitle($this->translate($title)) ?>

<div class="unicaen-privilege">

    <div class="titre">
    <div class="page-header">
        <div class="row">
            <div class="col-sm-6">
                <h2><?php echo sprintf("<strong>Gestion</strong> du périmètre : <strong>%s</strong>", $categorie->getLibelle()); ?></h2>
            <div class="col-sm-10">
                <h2 class="title">
                    <?php echo sprintf('%s : <strong>%s</strong>', $title, $categorie); ?>
                </h2>
            </div>
            <div class="col-sm-6">
            <div class="col-sm-2">
                <?php if ($canConsulter) : ?>
                    <?php /** @see PerimetreCategorieController::indexAction() */ ?>
                    <a href="<?php echo $this->url('unicaen-perimetre/categorie', [], [], true); ?>" class="btn btn-primary">
@@ -96,6 +97,7 @@ $canSupprimer = $this->isAllowed(PerimetrePrivileges::getResourceId(PerimetreP

    <h3 class="sous-titre">
        Valeurs possibles
        <span class="badge rounded-pill bg-primary"><?php echo count($perimetres); ?></span>
    </h3>

    <table id="perimetre-liste" class="table table-condensed">
+5 −3
Original line number Diff line number Diff line
@@ -20,11 +20,13 @@ $canSupprimer = $this->isAllowed(PerimetrePrivileges::getResourceId(PerimetreP
<?php $this->headTitle($this->translate($title)) ?>

<div class="unicaen-privilege">

    <div class="titre">
    <div class="page-header">
        <div class="row">
            <div class="col-sm-5">
                <h2><strong>Gestion</strong> des périmètres</h2>
                <h2 class="title">
                    <?php echo $title; ?>
                    <span class="badge rounded-pill bg-primary"><?php echo count($categories); ?></span>
                </h2>
            </div>
            <div class="col-sm-7">
                <?php if ($canEditer): ?>
+2 −34
Original line number Diff line number Diff line
@@ -16,11 +16,10 @@ use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges;
<?php $this->headTitle($this->translate($title)) ?>

<div class="unicaen-privilege">

    <div class="titre">
    <div class="page-header">
        <div class="row">
            <div class="col-sm-5">
                <h2><strong>Activation</strong> des périmètres</h2>
                <h2 class="title"><?php echo $title; ?></h2>
            </div>
            <div class="col-sm-7">
                <?php /** @see PerimetreCategorieController::indexAction() */ ?>
@@ -74,37 +73,6 @@ use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges;

</div>

<style>
    .table-header-rotated th.rotate-45 {
        border: none;
        width: 50px;
        padding: 0;
        white-space: nowrap;
    }
    .table-header-rotated th.rotate-45 > div {
        position: relative;
        top: 0;
        height: 200px;
        left: 84px;
        transform: skew(-40deg, 0deg);
        overflow: hidden;
        border-right: 1px solid #ddd;
        z-index: 99;
    }
    .table-header-rotated th.rotate-45 > div.first {
        border-left: 1px solid #ddd;
    }
    .table-header-rotated th.rotate-45 span {
        transform: skew(40deg, 0deg) rotate(310deg);
        position: absolute;
        bottom: 40px;
        left: -30px;
        display: inline-block;
        width: 100px;
        text-align: left;
    }
</style>

<script type="text/javascript">
    $(function () {
        var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+7 −5
Original line number Diff line number Diff line
@@ -23,13 +23,14 @@ $canProvider = $this->isAllowed(PrivilegePrivileges::getResourceId(PrivilegePriv
<?php $this->headTitle($this->translate($title)) ?>

<div class="unicaen-privilege">

    <div class="titre">
    <div class="page-header">
        <div class="row">
            <div class="col-sm-6">
                <h2><?php echo sprintf("<strong>Gestion</strong> de la catégorie : <strong>%s</strong>", $categorie->getLibelle()); ?></h2>
            <div class="col-sm-10">
                <h2 class="title">
                    <?php echo sprintf('%s : <strong>%s</strong>', $title, $categorie); ?>
                </h2>
            </div>
            <div class="col-sm-6">
            <div class="col-sm-2">
                <?php if ($canVoir) : ?>
                    <?php /** @see PrivilegeCategorieController::indexAction() */ ?>
                    <a href="<?php echo $this->url('unicaen-privilege/categorie', [], [], true); ?>" class="btn btn-primary">
@@ -113,6 +114,7 @@ $canProvider = $this->isAllowed(PrivilegePrivileges::getResourceId(PrivilegePriv

    <h3 class="sous-titre">
        Privilèges
        <span class="badge rounded-pill bg-primary"><?php echo count($privileges); ?></span>
    </h3>

    <table id="privilege-liste" class="table table-condensed">
Loading