Fakultas Ilmu Komputer UI

Commit 930970ac authored by Samuel Dimas's avatar Samuel Dimas
Browse files

[GREEN] Implementing setting verification page

parent c6fa52af
......@@ -210,9 +210,7 @@
<i class="fas fa-angle-up"></i>
</a>
<!-- Bootstrap core JavaScript-->
<!-- <script src="{% static 'vendor/jquery/jquery.min.js' %}"></script> -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
<!-- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
......@@ -222,19 +220,18 @@
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<!-- Core plugin JavaScript-->
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<!-- Custom scripts for all pages-->
<script src="{% static 'js/sb-admin-2.min.js' %}"></script>
<!-- Page level plugins -->
<script src="{% static 'vendor/datatables/jquery.dataTables.min.js' %}"></script>
<script src="{% static 'vendor/datatables/dataTables.bootstrap4.min.js' %}"></script>
<!-- Page level custom scripts -->
<script src="{% static 'js/demo/datatables-demo.js' %}"></script>
<script src="{% static 'js/demo/datatables-demo.js' %}"></script> -->
</body>
......
......@@ -79,8 +79,8 @@ class DetailVerifikasiMateriTest(TestCase):
self.client.login(email="admin@admin.com",
password="admin123")
# Test
response = self.client.get(self.url)
self.assertTemplateUsed(response, self.template_name)
response = self.client.get("/administration/setting/verification/")
self.assertTemplateUsed(response, "setting_verifikasi.html")
# Logout
self.client.logout()
......@@ -89,7 +89,7 @@ class DetailVerifikasiMateriTest(TestCase):
self.client.login(email="admin@admin.com",
password="admin123")
# Test
response = self.client.get(self.url)
response = self.client.get("/administration/setting/verification/")
self.assertEqual(response.status_code, 200)
# Logout
self.client.logout()
......
......@@ -9,5 +9,4 @@ urlpatterns = [
path("detail-verif/<int:pk>/", views.DetailVerificationView.as_view()),
path("setting/verification/", views.VerificationSettingView.as_view()),
path("setting/category/", views.CategorySettingView.as_view()),
path("detail", views.detail)
]
# Generated by Django 3.0.3 on 2020-04-30 04:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0002_auto_20200426_2241'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='profile',
field=models.CharField(default='b117ac', max_length=100),
),
migrations.AlterField(
model_name='comment',
name='user',
field=models.CharField(default='01d932bbc08f499db76026ff34fcd485', max_length=100),
),
migrations.AlterField(
model_name='materi',
name='status',
field=models.CharField(choices=[('PENDING', 'Diproses'), ('APPROVE', 'Diterima'), ('DISAPROVE', 'Ditolak'), ('REVISION', 'Perbaikan')], default='PENDING', max_length=30),
),
]
Supports Markdown
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