Commit 52aa2323 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Changement du visuelle des notes (WIP)

parent a181688c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -16,10 +16,12 @@ $canSupprimer = $this->isAllowed(NotePrivileges::getResourceId(NotePrivileges::
?>

<div class="row">
    <div class="col-md-9 <?php echo $note->getType()->getStyle(); ?>">
<!--    <div class="col-md-10 --><?php //echo $note->getType()->getStyle(); ?><!--">-->
    <div class="<?php echo $note->getType()->getStyle(); ?>" style="width: 95%; display: inline-block;">
        <?php echo $note->getTexte(); ?>
    </div>
    <div class="col-md-2">
<!--    <div class="col-md-1">-->
    <div class="pull-right">
        <?php if ($canModifier) : ?>
            <a href="<?php echo $this->url('unicaen-note/note/modifier', ['note' => $note->getId()], [], true); ?>"
               class="ajax-modal" data-event="modification" title="Modifier la note"
@@ -27,6 +29,7 @@ $canSupprimer = $this->isAllowed(NotePrivileges::getResourceId(NotePrivileges::
                <span class="icon editer"></span></a>
        <?php endif; ?>
        <?php if ($canHistoriser) : ?>
            <br/>
            <?php if ($note->estNonHistorise()) : ?>
                <a href="<?php echo $this->url('unicaen-note/note/historiser', ['note' => $note->getId()], [], true); ?>"
                   class="zajax-modal" data-event="modification" title="Historiser la note"
@@ -40,6 +43,7 @@ $canSupprimer = $this->isAllowed(NotePrivileges::getResourceId(NotePrivileges::
            <?php endif; ?>
        <?php endif; ?>
        <?php if ($canSupprimer) : ?>
            <br/>
            <a href="<?php echo $this->url('unicaen-note/note/supprimer', ['note' => $note->getId()], [], true); ?>"
               class="ajax-modal" data-event="modification" title="Supprimer la note"
            >
+4 −2
Original line number Diff line number Diff line
@@ -15,7 +15,8 @@ $canAjouter = $this->isAllowed(NotePrivileges::getResourceId(NotePrivileges::NOT
<?php if ($portenote !== null) : ?>
    <div class="row">
        <?php if ($canAjouter) : ?>
        <div class="col-md-1" style="text-align: right; padding-right: 1rem;">
<!--        <div class="col-md-1" style="text-align: right; padding-right: 1rem;">-->
        <div>
            <a href="<?php echo $this->url('unicaen-note/note/ajouter', ['porte-note' => $portenote->getId()], [], true); ?>"
               class="ajax-modal" data-event="modification"
            >
@@ -24,7 +25,8 @@ $canAjouter = $this->isAllowed(NotePrivileges::getResourceId(NotePrivileges::NOT
            ></span></a>
        </div>
        <?php endif; ?>
        <div class="col-md-11">
<!--        <div class="col-md-11">-->
        <div>
            <?php foreach ($portenote->getNotes() as $note) : ?>
                <?php echo $this->note($note, $mode, $options); ?>
            <?php endforeach; ?>
+3 −1
Original line number Diff line number Diff line
@@ -72,7 +72,9 @@ button.btn.dropdown-toggle.btn-default{
/** ALERT *************************************************************************************************************/

div.alert {
    margin: 1rem;
    margin: 0.1rem;
    padding: 0.5rem;
    /*text-align: justify;*/
}
div.alert-info {
    color: var(--color-info);