-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from irzaip/pengajar
pengajar
- Loading branch information
Showing
11 changed files
with
186 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 3.1.2 on 2021-07-04 13:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edukasi', '0031_auto_20210704_1017'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Pengajar', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('nama', models.CharField(max_length=200)), | ||
('lokasi', models.CharField(max_length=200, null=True)), | ||
('deskripsi', models.TextField()), | ||
('bank', models.CharField(max_length=200)), | ||
('no_akun', models.CharField(max_length=200)), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='kegiatan', | ||
name='url_donasi', | ||
field=models.CharField(max_length=300, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 3.1.2 on 2021-07-04 13:15 | ||
|
||
import ckeditor.fields | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edukasi', '0032_auto_20210704_2009'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='materi', | ||
name='tentang_pengajar', | ||
), | ||
migrations.RemoveField( | ||
model_name='pengajar', | ||
name='deskripsi', | ||
), | ||
migrations.AddField( | ||
model_name='pengajar', | ||
name='tentang_pengajar', | ||
field=ckeditor.fields.RichTextField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='materi', | ||
name='pengajar', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='edukasi.pengajar'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.1.2 on 2021-07-04 13:34 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edukasi', '0033_auto_20210704_2015'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='materi', | ||
name='pengajar', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='edukasi.pengajar'), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% extends 'edukasi/main.html' %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block content %} | ||
|
||
<div class="container" style="margin-top: 20px;"> | ||
<div class="row auto-mx"> | ||
<div class="col-sm-1 col-md-2"></div> | ||
<div class="col-sm-10 col-md-8"> | ||
<div class="card text-center"> | ||
<div class="card-header"> | ||
{{ kegiatan.materi.judul }} | ||
</div> | ||
<div class="card-body"> | ||
<h2 class="card-title">{{ kegiatan.judul_acara }}</h2> | ||
<p class="card-text">Penyelenggara: {{ kegiatan.penyelenggara.nama_penyelenggara }} ({{ kegiatan.penyelenggara.status }})</p> | ||
<p class="card-text">Status acara: {{ kegiatan.status_acara }}</p> | ||
<p class="card-text">Tanggal: {{ kegiatan.tanggal_mulai | date:"d M Y"}} s.d {{ kegiatan.tanggal_selesai | date:"d M Y" }}</p> | ||
<p class="card-text">Deskripsi: {{ kegiatan.deskripsi | safe }}</p> | ||
<p class="card-text btn">url donasi: {{ kegiatan.url_donasi }}</p> | ||
|
||
|
||
</div> | ||
<div class="card-footer"> | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
<!-- Go to www.addthis.com/dashboard to customize your tools --> | ||
<div class="align-content-center addthis_inline_share_toolbox"></div> | ||
|
||
|
||
|
||
</div> | ||
<div class="col-sm=1 col-md-2"></div> | ||
|
||
</div> | ||
</div> | ||
|
||
<!-- Go to www.addthis.com/dashboard to customize your tools --> | ||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=irzaip"></script> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters