-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16cffa4
commit 71e122b
Showing
28 changed files
with
201 additions
and
575 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
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,30 @@ | ||
{% extends 'layout.html' %} | ||
{% load static translater%} | ||
{% load i18n %} | ||
{% block content %} | ||
<div class="mt-3 mb-4 min-h-screen mx-5"> | ||
<div class="card max-w-full"> | ||
<div class="card-body p-[1rem]"> | ||
<div class=""> | ||
Laporan Toko <b>{{ user_toko }}</b> | ||
</div> | ||
<div> | ||
<table class="w-full"> | ||
<tr> | ||
<td class="w-[1rem]" >Pembeli</td> | ||
<td class="px-1 w-[.1rem]">:</td> | ||
<td>-</td> | ||
</tr> | ||
<tr> | ||
<td class="w-[1rem]">Catatan</td> | ||
<td class="px-1 w-[.1rem]">:</td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block bottom_nav %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from django.shortcuts import redirect, render | ||
from django.utils.decorators import method_decorator | ||
from django.views.decorators.csrf import csrf_exempt | ||
|
||
from frontend.views.base_view import FrontPage | ||
from store.models import UserStore | ||
from transaction.models import Report, ReportImage | ||
Check failure on line 7 in frontend/views/toko/report.py
|
||
|
||
|
||
@method_decorator(csrf_exempt, name="dispatch") | ||
class ReportToko(FrontPage): | ||
def get(self, request, id): | ||
user_setting = request.user.id | ||
user_toko = request.user.userstore_set.first() | ||
return render(request, "toko/report.html", {"user_toko": user_toko}) | ||
|
||
def post(self, request, id): | ||
user = UserStore.objects.filter(users_id=id).first() | ||
if user is None: | ||
user = UserStore.objects.create(users_id=id) | ||
if request.POST.get("setuju"): | ||
user.aggrement = True | ||
else: | ||
user.aggrement = False | ||
user.save() | ||
return redirect("/toko/" + str(id)) |
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,4 @@ | ||
SOURCE_REQUEST = [ | ||
(1, "Raja Ongkir"), | ||
(2, "Biteship"), | ||
] |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.