Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev baru2 #5

Open
wants to merge 51 commits into
base: gina
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
69da233
Add chart_detail.html
henrysoed May 1, 2024
1733cf6
Add chart_detail css
henrysoed May 1, 2024
ecd4255
Add chart_list.html
henrysoed May 1, 2024
e813903
Add chart_list css
henrysoed May 1, 2024
c7509b9
Add podcast.html
henrysoed May 1, 2024
2997d60
Add podcast css
henrysoed May 1, 2024
d6ac96b
Add user_playlist.html and css
henrysoed May 1, 2024
cd03ce4
Add create_episode.html and css
henrysoed May 1, 2024
1e2e806
Add create_podcast.html and css
henrysoed May 1, 2024
2aea920
Add daftar_episode.html
henrysoed May 1, 2024
2e33968
Revisi list_podcast.html
henrysoed May 1, 2024
cde673f
Add Navbar
henrysoed May 2, 2024
07d3706
komit komit
Saras355 May 17, 2024
117e9d8
Merge feat yodha ke saras
yodh4 May 18, 2024
20d185c
Add chart_detail fitur
henrysoed May 18, 2024
afa98f6
Add chart_list fitur
henrysoed May 18, 2024
3e3f2f6
Add podcast fitur
henrysoed May 18, 2024
519e74a
[REFACTOR] delete template.html error
henrysoed May 18, 2024
d6d9902
[REFACTOR] merge create_episode and list_episode
henrysoed May 18, 2024
04aa601
[REFACTOR] merge create_podcast and list_podcast
henrysoed May 18, 2024
8db2e0c
[REFACTOR] podcast.html
henrysoed May 18, 2024
af931fe
[REFACTOR] finalisasi
henrysoed May 18, 2024
0b38a70
Merge branch 'henry-blue' into dev
henrysoed May 18, 2024
f8f4a84
Merge pull request #2 from Saras355/dev
henrysoed May 18, 2024
38c8e6b
[REFACTOR] fix return connection html
henrysoed May 18, 2024
1b0c6c3
Fix some error
henrysoed May 18, 2024
2010831
Fix register
yodh4 May 19, 2024
87cb820
Kayaknya dah selesai
yodh4 May 19, 2024
5820173
Fix templates .html for play_podcast app
henrysoed May 19, 2024
15a2138
Try fix error for kelola_podcast.html
henrysoed May 19, 2024
a9cdc5e
Tes push
yodh4 May 19, 2024
19126e0
Tes
yodh4 May 19, 2024
f4713e2
Coba Fix error
henrysoed May 19, 2024
16e0d52
merge gina ke dev-baru2
ginafia May 19, 2024
dcff420
modif punya yodha
ginafia May 19, 2024
7c76060
modif punya yodha download
ginafia May 19, 2024
8c6b69d
Merge pull request #8 from Saras355/dev-gina
yodh4 May 19, 2024
0ed58d9
Finalisasi error semoga yang terakhir
henrysoed May 19, 2024
5968e8e
Merge branch 'henry-blue' into dev-baru2
henrysoed May 19, 2024
56e865b
selese ga ya
Saras355 May 19, 2024
80f4995
kukul*
Saras355 May 19, 2024
0733d9c
adudukayang
Saras355 May 19, 2024
4b51ccb
tutu
Saras355 May 19, 2024
879d574
tessss
Saras355 May 19, 2024
e750ad0
lalalaaladudukayang
Saras355 May 19, 2024
8548ee6
mustbeend
Saras355 May 19, 2024
a7b5ef0
lala
Saras355 May 19, 2024
963cdae
duar
Saras355 May 19, 2024
2e3d39b
ko
Saras355 May 19, 2024
c5f6617
kiki
Saras355 May 19, 2024
f80601b
kenapagamau
Saras355 May 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# web: gunicorn tk_basdat.wsgi --log-file -
web: waitress-serve --port=$PORT tk_basdat.wsgi:application
6 changes: 0 additions & 6 deletions akun/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
from .views import *
app_name = 'akun'


urlpatterns = [
path('list_tables/', list_tables, name='list_tables'),
# path('register/', register_with_postgres, name='register' ),
path('login/', login_with_postgres, name='login' ),
path('register_choice/', register_choice, name='register_choice'),
# path('register_pengguna/<str:role>/', register_pengguna, name='register'),
# path('logout/', logout_with_postgres, name='logout'),
# path('dashboard/', dashboard, name='dashboard'),
path('dashboard/', dashboard, name='dashboard'),
path('register/pengguna/', register_pengguna, name='register_pengguna'),
path('register/label/', register_label, name='register_label'),
Expand Down
766 changes: 137 additions & 629 deletions akun/views.py

Large diffs are not rendered by default.

115 changes: 90 additions & 25 deletions album_song_royalti/templates/cek_royalti.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,97 @@
<!DOCTYPE html>
<html>
{% include 'nav.html' %}
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cek Royalti</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>

<body>
<h1>Daftar Royalti</h1>
<table border="1">
<thead>
<tr>
<th>Judul Lagu</th>
<th>Judul Album</th>
<th>Total Play</th>
<th>Total Download</th>
<th>Total Royalti Didapat</th>
</tr>
</thead>
<tbody>
{% for royalti in royalti_list %}
<tr>
<td>{{ royalti.0 }}</td>
<td>{{ royalti.1 }}</td>
<td>{{ royalti.2 }}</td>
<td>{{ royalti.3 }}</td>
<td>Rp {{ royalti.4 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="container mt-5">
<h1 class="mb-4">Cek Royalti</h1>

<!-- Royalti sebagai Artist -->
{% if royalti_artist %}
<h2>Royalti sebagai Artist</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>Judul Lagu</th>
<th>Judul Album</th>
<th>Total Play</th>
<th>Total Download</th>
<th>Total Royalti Didapat</th>
</tr>
</thead>
<tbody>
{% for royalti in royalti_artist %}
<tr>
<td>{{ royalti.0 }}</td>
<td>{{ royalti.1 }}</td>
<td>{{ royalti.2 }}</td>
<td>{{ royalti.3 }}</td>
<td>{{ royalti.4 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}

{% if royalti_songwriter %}
<!-- Royalti sebagai Songwriter -->
<h2>Royalti sebagai Songwriter</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>Judul Lagu</th>
<th>Judul Album</th>
<th>Total Play</th>
<th>Total Download</th>
<th>Total Royalti Didapat</th>
</tr>
</thead>
<tbody>
{% for royalti in royalti_songwriter %}
<tr>
<td>{{ royalti.0 }}</td>
<td>{{ royalti.1 }}</td>
<td>{{ royalti.2 }}</td>
<td>{{ royalti.3 }}</td>
<td>{{ royalti.4 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}

{% if royalti_label %}
<!-- Royalti sebagai Label -->
<h2>Royalti sebagai Label</h2>
<table class="table table-bordered">
<thead>
<tr>
<th>Judul Lagu</th>
<th>Judul Album</th>
<th>Total Play</th>
<th>Total Download</th>
<th>Total Royalti Didapat</th>
</tr>
</thead>
<tbody>
{% for royalti in royalti_label %}
<tr>
<td>{{ royalti.0 }}</td>
<td>{{ royalti.1}}</td>
<td>{{ royalti.2 }}</td>
<td>{{ royalti.3 }}</td>
<td>{{ royalti.4 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion album_song_royalti/templates/create_album.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2>Lagu Pertama</h2>
<option value="" selected disabled>Pilih Artist</option>
{% if request.session.user_data.is_artist %}
<option value="{{ request.session.user_data.nama }}">{{ request.session.user_data.nama }}</option>
{% elif request.session.user_data.is_songwriter %}
{% else %}
{% for artist in artists %}
<option value="{{ artist.email_akun }}">{{ artist.email_akun }}</option>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion album_song_royalti/templates/create_lagu.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>Create lagu untuk di Album {{judul_album}} - {{album_id}}</h1>
<form method="post" action="{% url 'create_lagu' album_id %}">
{% csrf_token %}

<h2>Lagu Pertama</h2>
<!-- <h2>Lagu Pertama</h2> -->
<label for="judul_lagu">Judul Lagu:</label>
<input type="text" id="judul_lagu" name="judul_lagu" required><br>

Expand Down
2 changes: 1 addition & 1 deletion album_song_royalti/templates/lihat_detail_lagu.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ <h1>Detail Lagu</h1>
<p>Lagu tidak ditemukan.</p>
{% endif %}

<a href="{% url 'list_album_artist' %}">Kembali ke Daftar Album</a>
<!-- <a href="{% url 'list_album_artist' %}">Kembali ke Daftar Album</a> -->
</body>
</html>
11 changes: 0 additions & 11 deletions album_song_royalti/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
from album_song_royalti.views import *

urlpatterns = [
# path('create-album/', create_album, name='create_album'),
# path('success_create_album/', success_create_album, name='success_create_album'),

# #untuk list album
# path('list-album/', list_album, name='list_album'),
# path('hapus-album/<uuid:album_id>/',hapus_album, name='hapus_album'),
# path('lihat-daftar-lagu/<uuid:album_id>/', list_lagu, name='lihat_daftar_lagu'),
# path('create-lagu/<uuid:album_id>/', create_lagu, name='create_lagu'),
# # path('create-lagu/<uuid:album_id>/', create_lagu, name='create_lagu'),
# path('lihat-detail/<uuid:lagu_id>/',lihat_detail, name='lihat_detail'),
# path('hapus-lagu/<uuid:lagu_id>/',hapus_lagu, name='hapus_lagu'),
#cek royalti
path('cek-royalti/', cek_royalti, name='cek_royalti'),
#baru
Expand Down
Loading