Commit 0130d2a3 authored by amandazk's avatar amandazk

Tabela campanhas

parent fb3e4847
......@@ -4,7 +4,7 @@ from .models.pessoa import Pessoa
from .models.fone import Fone
class Pessoas(admin.ModelAdmin):
list_display = ('pessoa_id','cpf_pessoa', 'nome_pessoa')
list_display = ('pessoa_id','cpf_pessoa', 'nome_pessoa', 'username')
list_display_links = ('cpf_pessoa', 'nome_pessoa')
search_fields = ('cpf_pessoa', 'nome_pessoa')
list_per_page = 10
......
<template>
<div class="container">
<div id="app">
<h1>Lista de Campanhas</h1>
<hr />
<ul>
<li v-for="campanha in campanhas" :key="campanha.campanha_id">
{{ campanha.titulo_campanha }}
</li>
</ul>
<h1>Campanhas Solidárias</h1>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Campanha</th>
<th scope="col">Data Início</th>
<th scope="col">Data Fim</th>
</tr>
</thead>
<tbody>
<tr v-for="campanha in campanhas" :key="campanha.campanha_id">
<td>{{ campanha.titulo_campanha }}</td>
<td>{{ campanha.dt_inicio_campanha }}</td>
<td>{{ campanha.dt_fim_campanha }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</template>
<script>
import axios from "axios";
export default {
......@@ -38,4 +49,7 @@ export default {
</script>
<style>
.table {
margin-top: 40px;
}
</style>
\ No newline at end of file
<template>
<div>
<div class="container">
<v-app id="">
<NavBar ref="drawer"></NavBar>
<v-content>
......@@ -7,9 +7,73 @@
</v-content>
</v-app>
<div>
<div class="how-section1">
<div class="row">
<div class="col-md-6 how-img">
<img
src="../assets/covid-19.png"
class="rounded-circle img-fluid"
alt=""
/>
</div>
<div class="col-md-6">
<h4>Como fazer o cadastro?</h4>
<p class="text-muted">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse fermentum sit
amet odio sed facilisis. Aliquam ipsum leo, porttitor eget feugiat vitae, molestie
in lorem. Orci varius natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Vestibulum lacus diam, tristique et facilisis ac, euismod eget odio.
Vivamus ultrices fermentum urna, quis elementum tortor gravida a. Ut placerat ligula
ut erat consectetur interdum. Phasellus tristique vitae felis et vestibulum. Nullam
semper, ante ut vulputate laoreet, diam sapien rhoncus libero, sed dapibus ante sem
non mauris. Fusce pharetra, nisi nec vestibulum ultricies, tortor neque condimentum.
</p>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h4>Exemplo</h4>
<p class="text-muted">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse fermentum sit
amet odio sed facilisis. Aliquam ipsum leo, porttitor eget feugiat vitae, molestie
in lorem. Orci varius natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Vestibulum lacus diam, tristique et facilisis ac, euismod eget odio.
Vivamus ultrices fermentum urna, quis elementum tortor gravida a. Ut placerat ligula
ut erat consectetur interdum. Phasellus tristique vitae felis et vestibulum. Nullam
semper, ante ut vulputate laoreet, diam sapien rhoncus libero, sed dapibus ante sem
non mauris. Fusce pharetra, nisi nec vestibulum ultricies, tortor neque condimentum.
</p>
</div>
<div class="col-md-6 how-img">
<img
src="../assets/gel.png"
class="rounded-circle img-fluid"
alt=""
/>
</div>
</div>
<div class="row">
<div class="col-md-6 how-img">
<img
src="../assets/mascara.png"
class="rounded-circle img-fluid"
alt=""
/>
</div>
<div class="col-md-6">
<h4>Exemplo</h4>
<p class="text-muted">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse fermentum sit
amet odio sed facilisis. Aliquam ipsum leo, porttitor eget feugiat vitae, molestie
in lorem. Orci varius natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Vestibulum lacus diam, tristique et facilisis ac, euismod eget odio.
Vivamus ultrices fermentum urna, quis elementum tortor gravida a. Ut placerat ligula
ut erat consectetur interdum. Phasellus tristique vitae felis et vestibulum. Nullam
semper, ante ut vulputate laoreet, diam sapien rhoncus libero, sed dapibus ante sem
non mauris. Fusce pharetra, nisi nec vestibulum ultricies, tortor neque condimentum.
</p>
</div>
</div>
</div>
<v-app id="">
......@@ -22,11 +86,36 @@
</template>
<script>
export default {
name: "InfoProj",
data() {
}}
data() {},
};
</script>
</script>
\ No newline at end of file
<style>
.how-section1 {
margin-top: -15%;
padding: 10%;
}
.how-section1 h4 {
color: rgba(71, 82, 94, 100);
font-weight: bold;
font-size: 30px;
}
.how-section1 .subheading {
color: #3931af;
font-size: 20px;
}
.how-section1 .row {
margin-top: 10%;
}
.how-img {
text-align: center;
}
.how-img img {
width: 70%;
}
.h2 {
text-align: center;
}
</style>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment