Skip to content
Snippets Groups Projects
Commit 6ad86b0b authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

improve member page

parent 7598b3b8
No related branches found
No related tags found
No related merge requests found
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
<transition name="fade"> <transition name="fade">
<div v-if="idFromHash"> <div v-if="idFromHash">
<div class="row"> <div class="row">
<div class="mx-auto mt-3"> <div class="col-md-8 col-lg-6 mx-auto mt-3">
<MemberCard :hash="idFromHash" /> <MemberCard :hash="idFromHash" />
</div> </div>
</div> </div>
<div class="row mt-3" v-if="idFromHash.status != 'REVOKED'"> <div class="row mt-3" v-if="idFromHash.status != 'REVOKED'">
<div class="col-md-8 col-lg-5 mb-3 mx-auto"> <div class="col-md-8 col-lg-6 col-xl-5 mb-3 mx-auto">
<h3 class="h4 text-center" :class="{ <h3 class="h4 text-center" :class="{
'text-success' : ['NEWCOMER','MISSING'].includes(idFromHash.status) && idFromHash.received_certifications.certifications.length>=5, 'text-success' : ['NEWCOMER','MISSING'].includes(idFromHash.status) && idFromHash.received_certifications.certifications.length>=5,
'text-danger' : ['NEWCOMER','MISSING'].includes(idFromHash.status) && idFromHash.received_certifications.certifications.length<5, 'text-danger' : ['NEWCOMER','MISSING'].includes(idFromHash.status) && idFromHash.received_certifications.certifications.length<5,
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</h3> </h3>
<CertifList :certifs="idFromHash.received_certifications.certifications" type="received" /> <CertifList :certifs="idFromHash.received_certifications.certifications" type="received" />
</div> </div>
<div class="col-md-8 col-lg-5 mx-auto" v-if="['MISSING','MEMBER'].includes(idFromHash.status)"> <div class="col-md-8 col-lg-6 col-xl-5 mx-auto" v-if="['MISSING','MEMBER'].includes(idFromHash.status)">
<h3 class="h4 text-center">{{ $t('certifications.envoyees') }} ({{ idFromHash.sent_certifications.length }})</h3> <h3 class="h4 text-center">{{ $t('certifications.envoyees') }} ({{ idFromHash.sent_certifications.length }})</h3>
<CertifList :certifs="idFromHash.sent_certifications" type="sent" /> <CertifList :certifs="idFromHash.sent_certifications" type="sent" />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment