parent
be9a12a9d8
commit
04c5230b6d
@ -0,0 +1,34 @@ |
||||
.corps { |
||||
height: 80vh; |
||||
display: block; |
||||
position: relative; |
||||
|
||||
} |
||||
|
||||
.bg-passageOk |
||||
{ |
||||
background-color: seagreen; |
||||
} |
||||
|
||||
.corps::after { |
||||
content: ""; |
||||
background-repeat:no-repeat; |
||||
background-position:center center; |
||||
background-attachment:fixed; |
||||
background-size: 50vh auto; |
||||
background-image: url("../src/assets/logo.png"); |
||||
opacity: 0.5; |
||||
top: 0; |
||||
left: 0; |
||||
bottom: 0; |
||||
right: 0; |
||||
position: absolute; |
||||
z-index: -1; |
||||
} |
||||
|
||||
.fade-enter-active{ |
||||
transition: opacity .5s; |
||||
} |
||||
.fade-enter /* .fade-leave-active below version 2.1.8 */ { |
||||
opacity: 0; |
||||
} |
@ -0,0 +1,296 @@ |
||||
@charset "UTF-8"; |
||||
@import url("https://fonts.googleapis.com/css?family=Ubuntu:400,700|Cabin+Condensed:400,600"); |
||||
|
||||
|
||||
|
||||
body { |
||||
background-color: #FFF; |
||||
margin: 0px; |
||||
font-family: Ubuntu, sans-serif; |
||||
color: #1e1e1e; |
||||
font-weight: normal; |
||||
padding-top: 0; |
||||
} |
||||
|
||||
h1, h2, h3, h4 { |
||||
font-family: "Cabin Condensed", sans-serif; |
||||
} |
||||
|
||||
header { |
||||
padding: 1em; |
||||
} |
||||
|
||||
header .headline { |
||||
max-width: 640px; |
||||
margin: 0 auto; |
||||
} |
||||
|
||||
header .headline h1 { |
||||
font-size: 3em; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
header .headline h2 { |
||||
margin-top: 0.2em; |
||||
} |
||||
|
||||
footer { |
||||
padding: 1em 2em 2em; |
||||
} |
||||
|
||||
#container { |
||||
width: 640px; |
||||
margin: 20px auto; |
||||
padding: 10px; |
||||
} |
||||
|
||||
#interactive.viewport { |
||||
width: 640px; |
||||
height: 480px; |
||||
} |
||||
|
||||
|
||||
#interactive.viewport canvas, video { |
||||
float: left; |
||||
width: 640px; |
||||
height: 480px; |
||||
} |
||||
|
||||
#interactive.viewport canvas.drawingBuffer, video.drawingBuffer { |
||||
margin-left: -640px; |
||||
} |
||||
|
||||
.controls fieldset { |
||||
border: none; |
||||
margin: 0; |
||||
padding: 5px; |
||||
} |
||||
|
||||
.controls .input-group { |
||||
float: left; |
||||
} |
||||
|
||||
.controls .input-group input, .controls .input-group button { |
||||
display: block; |
||||
} |
||||
|
||||
.controls .reader-config-group { |
||||
float: right; |
||||
} |
||||
|
||||
.controls .reader-config-group label { |
||||
display: block; |
||||
} |
||||
|
||||
.controls .reader-config-group label span { |
||||
width: 9rem; |
||||
display: inline-block; |
||||
text-align: right; |
||||
} |
||||
|
||||
.controls:after { |
||||
content: ''; |
||||
display: block; |
||||
clear: both; |
||||
} |
||||
|
||||
|
||||
#result_strip { |
||||
margin: 10px 0; |
||||
border-top: 1px solid #EEE; |
||||
border-bottom: 1px solid #EEE; |
||||
padding: 10px 0; |
||||
} |
||||
|
||||
#result_strip > ul { |
||||
padding: 0; |
||||
margin: 0; |
||||
list-style-type: none; |
||||
width: auto; |
||||
overflow-x: auto; |
||||
overflow-y: hidden; |
||||
white-space: nowrap; |
||||
} |
||||
|
||||
#result_strip > ul > li { |
||||
display: inline-block; |
||||
vertical-align: middle; |
||||
width: 160px; |
||||
} |
||||
|
||||
#result_strip > ul > li .thumbnail { |
||||
padding: 5px; |
||||
margin: 4px; |
||||
border: 1px dashed #CCC; |
||||
} |
||||
|
||||
#result_strip > ul > li .thumbnail img { |
||||
max-width: 140px; |
||||
} |
||||
|
||||
#result_strip > ul > li .thumbnail .caption { |
||||
white-space: normal; |
||||
} |
||||
|
||||
#result_strip > ul > li .thumbnail .caption h4 { |
||||
text-align: center; |
||||
word-wrap: break-word; |
||||
height: 40px; |
||||
margin: 0px; |
||||
} |
||||
|
||||
#result_strip > ul:after { |
||||
content: ""; |
||||
display: table; |
||||
clear: both; |
||||
} |
||||
|
||||
|
||||
.scanner-overlay { |
||||
display: none; |
||||
width: 640px; |
||||
height: 510px; |
||||
position: absolute; |
||||
padding: 20px; |
||||
top: 50%; |
||||
margin-top: -275px; |
||||
left: 50%; |
||||
margin-left: -340px; |
||||
background-color: #FFF; |
||||
-moz-box-shadow: #333333 0px 4px 10px; |
||||
-webkit-box-shadow: #333333 0px 4px 10px; |
||||
box-shadow: #333333 0px 4px 10px; |
||||
} |
||||
|
||||
.scanner-overlay > .header { |
||||
position: relative; |
||||
margin-bottom: 14px; |
||||
} |
||||
|
||||
.scanner-overlay > .header h4, .scanner-overlay > .header .close { |
||||
line-height: 16px; |
||||
} |
||||
|
||||
.scanner-overlay > .header h4 { |
||||
margin: 0px; |
||||
padding: 0px; |
||||
} |
||||
|
||||
.scanner-overlay > .header .close { |
||||
position: absolute; |
||||
right: 0px; |
||||
top: 0px; |
||||
height: 16px; |
||||
width: 16px; |
||||
text-align: center; |
||||
font-weight: bold; |
||||
font-size: 14px; |
||||
cursor: pointer; |
||||
} |
||||
|
||||
|
||||
i.icon-24-scan { |
||||
width: 24px; |
||||
height: 24px; |
||||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ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T6GBIOzs7kc/nDfFdDFT5bS73cp06dQoaPa/Rw/rtO/resTHxxE2m9rCrbSR27UJCcMf1BpiA5rAAGgdfc868fUR1sMwj0cm9Iu9IctweisViB3hhKTHDcHc5jv/LspbyaZrR1OD82/fIlOkuB9LnEWRmDX2TsddUPg3D5gvuc0je0rZaD5EW6G3yjS+A3eeBEWq3XW/Abw1HhUspXADufQb86oW7tZytkYCN//3hHwBvDALPi8EnSOYK8DAOfCc2h4aGcO7cuafkzampqf9UripH12/DtOZbx8ciVGzYy5OO40o25ascGRl5Ssc/AgwAjW3JwqIUjSYAAAAASUVORK5CYII="); |
||||
display: inline-block; |
||||
background-repeat: no-repeat; |
||||
line-height: 24px; |
||||
margin-top: 1px; |
||||
vertical-align: text-top; |
||||
} |
||||
|
||||
@media (max-width: 603px) { |
||||
|
||||
#container { |
||||
width: 300px; |
||||
margin: 10px auto; |
||||
-moz-box-shadow: none; |
||||
-webkit-box-shadow: none; |
||||
box-shadow: none; |
||||
} |
||||
|
||||
#container form.voucher-form input.voucher-code { |
||||
width: 180px; |
||||
} |
||||
} |
||||
@media (max-width: 603px) { |
||||
|
||||
.reader-config-group { |
||||
width: 100%; |
||||
} |
||||
|
||||
.reader-config-group label > span { |
||||
width: 50%; |
||||
} |
||||
|
||||
.reader-config-group label > select, .reader-config-group label > input { |
||||
max-width: calc(50% - 2px); |
||||
} |
||||
|
||||
#interactive.viewport { |
||||
width: 300px; |
||||
height: 300px; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
|
||||
#interactive.viewport canvas, video { |
||||
margin-top: -50px; |
||||
width: 300px; |
||||
height: 400px; |
||||
} |
||||
|
||||
#interactive.viewport canvas.drawingBuffer, video.drawingBuffer { |
||||
margin-left: -300px; |
||||
} |
||||
|
||||
|
||||
#result_strip { |
||||
margin-top: 5px; |
||||
padding-top: 5px; |
||||
} |
||||
|
||||
#result_strip ul.thumbnails > li { |
||||
width: 150px; |
||||
} |
||||
|
||||
#result_strip ul.thumbnails > li .thumbnail .imgWrapper { |
||||
width: 130px; |
||||
height: 130px; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
#result_strip ul.thumbnails > li .thumbnail .imgWrapper img { |
||||
margin-top: -25px; |
||||
width: 130px; |
||||
height: 180px; |
||||
} |
||||
} |
||||
@media (max-width: 603px) { |
||||
|
||||
.overlay.scanner { |
||||
width: 640px; |
||||
height: 510px; |
||||
padding: 20px; |
||||
margin-top: -275px; |
||||
margin-left: -340px; |
||||
background-color: #FFF; |
||||
-moz-box-shadow: none; |
||||
-webkit-box-shadow: none; |
||||
box-shadow: none; |
||||
} |
||||
|
||||
.overlay.scanner > .header { |
||||
margin-bottom: 14px; |
||||
} |
||||
|
||||
.overlay.scanner > .header h4, .overlay.scanner > .header .close { |
||||
line-height: 16px; |
||||
} |
||||
|
||||
.overlay.scanner > .header .close { |
||||
height: 16px; |
||||
width: 16px; |
||||
} |
||||
} |
@ -0,0 +1,174 @@ |
||||
<template> |
||||
<div> |
||||
<b-card v-if="user.isNew == undefined" no-body class="overflow-hidden cardUser" |
||||
> |
||||
<b-row no-gutters style="height: 200px" > |
||||
<b-col md="8" cols="7" class="border-right" style=";background-color: #EEEEEE"> |
||||
<b-row align-h="center" v-if="user.image !== null"> |
||||
<router-link |
||||
:to="{name: 'User', params: {id: user.id } }" |
||||
v-slot="{ href, route, navigate}" |
||||
v-if="user.image !== '' && user.image !== null" |
||||
> |
||||
<div class="mb-2 imageUser"> |
||||
<b-avatar :href="href" @click="navigate" |
||||
:title="user.nom + ' ' + user.prenom" |
||||
variant="light" |
||||
v-bind:src="img" size="6rem" |
||||
> |
||||
</b-avatar> |
||||
</div> |
||||
</router-link> |
||||
</b-row> |
||||
<b-row align-h="center"> |
||||
<b-col> |
||||
<h4> {{user.prenom}} {{user.nom}}</h4> |
||||
</b-col> |
||||
</b-row> |
||||
<b-row v-for="role in user.roles" v-bind:key="role.id"> |
||||
<b-col class="d-flex justify-content-center align-items-center"> |
||||
<h5> {{role.libelle}}</h5> |
||||
</b-col> |
||||
</b-row> |
||||
</b-col> |
||||
<b-col md="4" cols="5" class="d-flex flex-column justify-content-between"> |
||||
|
||||
<b-row > |
||||
<b-col style="padding-bottom: 15px; padding-top: 15px"> |
||||
<router-link |
||||
:to="{name: 'User', params: {id: user.id } }" |
||||
v-slot="{ href, route, navigate}" |
||||
> |
||||
|
||||
<b-button :href="href" @click="navigate" class="actionButton" > |
||||
<font-awesome-icon icon="edit" /> |
||||
{{$t('edit')}}</b-button> |
||||
</router-link> |
||||
</b-col> |
||||
</b-row> |
||||
<b-row> |
||||
<b-col style="padding-bottom: 15px; padding-top: 15px"> |
||||
<b-button @click="deleteUser(user)" class="actionButton" > |
||||
<font-awesome-icon icon="trash" /> |
||||
{{$t('delete')}} |
||||
</b-button> |
||||
</b-col> |
||||
</b-row> |
||||
</b-col> |
||||
</b-row> |
||||
</b-card> |
||||
|
||||
<b-card v-if="user.isNew" no-body |
||||
class="overflow-hidden rounded Desktopbutton cardUser"> |
||||
<router-link |
||||
:to="{name: 'User', params: {id: 0 } }" |
||||
v-slot="{ href, route, navigate}"> |
||||
<b-button :href="href" @click="navigate" |
||||
style="width:100%; height: 100%" |
||||
class="d-flex justify-content-center align-items-center"> |
||||
<font-awesome-icon icon="plus-circle" style="width: 64px; height:64px" /> |
||||
</b-button> |
||||
</router-link> |
||||
</b-card> |
||||
</div> |
||||
</template> |
||||
|
||||
<script> |
||||
import axios from "axios"; |
||||
|
||||
export default { |
||||
name: "CardUser", |
||||
props: ['user'], |
||||
computed : |
||||
{ |
||||
img() |
||||
{ |
||||
return this.user != null && this.user.image!= null ? |
||||
process.env.VUE_APP_IMAGE_STORE + this.user.image : |
||||
''; |
||||
}, |
||||
}, |
||||
methods: |
||||
{ |
||||
deleteUser : function(user) |
||||
{ |
||||
let that = this; |
||||
|
||||
let axiosConfig = { |
||||
withCredentials: true, |
||||
headers:{'Authorization': 'Bearer ' + sessionStorage.getItem("react-token"), |
||||
} |
||||
}; |
||||
this.$bvModal.msgBoxConfirm('Vous allez supprimer l\'utilisateur \'' + user.nom + '\'. Voulez-vous continuer ?', |
||||
{ |
||||
title: 'Suppression Utilisateur', |
||||
size: 'sm', |
||||
buttonSize: 'sm', |
||||
okVariant: 'success', |
||||
okTitle: 'Oui', |
||||
cancelVariant: 'danger', |
||||
cancelTitle: 'Non', |
||||
footerClass: 'p-2', |
||||
hideHeaderClose: false, |
||||
centered: true |
||||
}) |
||||
.then(value => { |
||||
if(value) { |
||||
axios.delete(process.env.VUE_APP_BACK_USER+ "/api/users/" + user.id, |
||||
axiosConfig |
||||
).then(() => { |
||||
that.display(); |
||||
}); |
||||
} |
||||
}) |
||||
.catch(err => { |
||||
window.console.error(err.messages); |
||||
}) |
||||
|
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style scoped> |
||||
.card-body |
||||
{ |
||||
padding-right: 0px; |
||||
padding-left: 0px; |
||||
padding-top: 0px; |
||||
} |
||||
.cardUser { |
||||
max-width: 540px; |
||||
height: 175px |
||||
} |
||||
.actionButton{ |
||||
width:125px |
||||
} |
||||
|
||||
.imageUser { |
||||
width:96px; |
||||
height:96px |
||||
} |
||||
|
||||
.headerUser { |
||||
position:fixed; /* fixing the position takes it out of html flow - knows |
||||
nothing about where to locate itself except by browser |
||||
coordinates */ |
||||
left:0; /* top left corner should start at leftmost spot */ |
||||
/*top:0; /* top left corner should start at topmost spot */ |
||||
width:100vw; /* take up the full browser width */ |
||||
z-index:50; /* high z index so other content scrolls underneath */ |
||||
height: 100px; |
||||
background-color: white; |
||||
} |
||||
@media (min-width: 50em) { |
||||
.Desktopbutton { display: block; } |
||||
.Mobilebutton { display: none; } |
||||
} |
||||
|
||||
@media (max-width: 50em) { |
||||
.Desktopbutton { display: none; } |
||||
.Mobilebutton { display: block; } |
||||
.MobileEntete {margin-top: 35px;} |
||||
} |
||||
</style> |
Loading…
Reference in new issue