add alert message when saham < 500
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="row col-md-10 col-md-offset-1">
|
<div class="row col-md-10 col-md-offset-1">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<h4>Maklumat Anggota</h4><hr/>
|
<h4>Maklumat Anggota</h4>
|
||||||
|
<hr />
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li class="list-group-item"><b>No. Kad Pengenalan : </b>{{ data.user.no_kp }}</li>
|
|
||||||
<li class="list-group-item"><b>No. Anggota : </b>{{ data.user.no_anggota }}</li>
|
|
||||||
<li class="list-group-item"><b>Nama : </b>{{ data.user.name }}</li>
|
<li class="list-group-item"><b>Nama : </b>{{ data.user.name }}</li>
|
||||||
|
<li class="list-group-item"><b>No. Kad Pengenalan : </b>{{ data.user.no_kp }}</li>
|
||||||
|
<li class="list-group-item"><b>No. Anggota : </b>{{ data.user.no_anggota }}
|
||||||
<li class="list-group-item"><b>Unit : </b>{{ data.user.unit }}</li>
|
<li class="list-group-item"><b>Unit : </b>{{ data.user.unit }}</li>
|
||||||
<li class="list-group-item"><b>Saham : </b>{{ data.user.saham }}</li>
|
<li class="list-group-item"><b>Saham : </b>{{ data.user.saham }}</li>
|
||||||
<li class="list-group-item"><b>Yuran : </b>{{ data.user.yuran }}</li>
|
<li class="list-group-item"><b>Yuran : </b>{{ data.user.yuran }}</li>
|
||||||
@@ -14,18 +15,20 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="list-group-item" v-if="data.election.status == 2">
|
<li class="list-group-item" v-if="data.election.status == 2">
|
||||||
<center>
|
<center>
|
||||||
<router-link v-if="!hasVoted()" :to="{name: 'Vote'}" class="btn btn-info">
|
<router-link v-if="data.user.saham >= 500 && !hasVoted()" :to="{ name: 'Vote' }"
|
||||||
Vote Now
|
class="btn btn-info">
|
||||||
</router-link>
|
Undi Sekarang
|
||||||
<router-link v-else :to="{name: 'Result'}" class="btn btn-info">
|
|
||||||
Papar Keputusan
|
|
||||||
</router-link>
|
</router-link>
|
||||||
|
<div v-else class="alert alert-danger" role="alert">
|
||||||
|
Saham minima tidak mencukupi untuk pengundian
|
||||||
|
</div>
|
||||||
</center>
|
</center>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div v-if="hasVoted()">
|
<div v-if="hasVoted()">
|
||||||
<hr />
|
<hr />
|
||||||
<h4>Your votes information</h4><hr/>
|
<h4>Maklumat Undian Anda</h4>
|
||||||
|
<hr />
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li class="list-group-item" v-for="result in data.result">
|
<li class="list-group-item" v-for="result in data.result">
|
||||||
<b>{{ getPosition(result.position_id) }} : </b>{{ getNominee(result.nominee_id) }}
|
<b>{{ getPosition(result.position_id) }} : </b>{{ getNominee(result.nominee_id) }}
|
||||||
@@ -35,8 +38,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<h4>Maklumat Calon</h4><hr/>
|
<h4>Maklumat Calon</h4>
|
||||||
<small>Click Picture to see details</small>
|
<hr />
|
||||||
|
<!-- <small>Click Picture to see details</small> -->
|
||||||
<div class="panel panel-primary" v-for="position in data.positions">
|
<div class="panel panel-primary" v-for="position in data.positions">
|
||||||
<div class="panel-heading">{{ position.name }}</div>
|
<div class="panel-heading">{{ position.name }}</div>
|
||||||
<div class="panel-body table-responsive">
|
<div class="panel-body table-responsive">
|
||||||
@@ -44,7 +48,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Name</th>
|
<th>Nama</th>
|
||||||
|
<th>No. Anggota</th>
|
||||||
<th>Unit</th>
|
<th>Unit</th>
|
||||||
<th>Taraf Pendidikan</th>
|
<th>Taraf Pendidikan</th>
|
||||||
<th>Pengalaman Kerja </th>
|
<th>Pengalaman Kerja </th>
|
||||||
@@ -52,13 +57,11 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(nominee, i) in data.nominees" v-if="nominee.position_id == position.id">
|
<tr v-for="(nominee, i) in data.nominees" v-if="nominee.position_id == position.id">
|
||||||
<td><img
|
<td><img @click="view(i)" :src="createBase64ImageUrl(nominee.photo)" class="thumbnail"
|
||||||
@click="view(i)"
|
|
||||||
:src="createBase64ImageUrl(nominee.photo)"
|
|
||||||
class="thumbnail"
|
|
||||||
style="height: 60px;width: 60px;" />
|
style="height: 60px;width: 60px;" />
|
||||||
</td>
|
</td>
|
||||||
<td>{{ nominee.name }}</td>
|
<td>{{ nominee.name }}</td>
|
||||||
|
<td>{{ nominee.no_anggota }}</td>
|
||||||
<td>{{ nominee.unit }}</td>
|
<td>{{ nominee.unit }}</td>
|
||||||
<td>{{ nominee.education }}</td>
|
<td>{{ nominee.education }}</td>
|
||||||
<td>{{ nominee.experience }}</td>
|
<td>{{ nominee.experience }}</td>
|
||||||
@@ -73,13 +76,15 @@
|
|||||||
<modal-body>
|
<modal-body>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img :src="data.storageURL+x.image" style="height: 150px; width: 150px" class="thumbnail"/>
|
<img :src="data.storageURL + x.image" style="height: 150px; width: 150px"
|
||||||
|
class="thumbnail" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9" style="margin-left: 5px;">
|
<div class="col-md-9" style="margin-left: 5px;">
|
||||||
<h3><strong><em>"{{ x.motto }}"</em></strong></h3>
|
<h3><strong><em>"{{ x.motto }}"</em></strong></h3>
|
||||||
<b> Name : </b>{{ x.name }}<br />
|
<b> Name : </b>{{ x.name }}<br />
|
||||||
<b> Unit : </b>{{ x.unit }}<br />
|
<b> Unit : </b>{{ x.unit }}<br />
|
||||||
<b> education : </b>{{ getPartylist(x.education) }}<br/><hr/>
|
<b> education : </b>{{ getPartylist(x.education) }}<br />
|
||||||
|
<hr />
|
||||||
{{ x.experience }}
|
{{ x.experience }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user