Fakultas Ilmu Komputer UI

Commit 2dd7a3d5 authored by igor lestin sianipar's avatar igor lestin sianipar
Browse files

Revert "Merge branch 'PBI-2-Login_Admin' into 'master'"

This reverts merge request !7
parent 49ef345c
<!doctype html>
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dashboard Kontributor</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" href="../static/unggah_materi/images/logo.ico" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Dasbor Kontributor</title>
<!-- Custom fonts for this template -->
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{% static 'css/sb-admin-2.min.css' %}" rel="stylesheet">
<link rel="stylesheet" href="{% static 'css/button.css' %}">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet">
<!-- Custom styles for this page -->
<link href="{% static 'vendor/datatables/dataTables.bootstrap4.min.css' %}" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/unggah_materi/css/style.css">
</head>
<body style="background-color: #f2f2f2;">
<div class="wrapper d-flex align-items-stretch">
<nav id="sidebar" style="background-color: #6675df;" >
<div class="p-4 pt-5" >
<a href="#" class="img logo rounded-circle mb-5" style="background-image: url(../static/unggah_materi/images/dummy.png);"></a>
<ul class="list-unstyled components mb-5">
<li>
<a href="/dashboard/">Dashboard</a>
</li>
<li>
<a href="/profile/">Profile</a>
</li>
<li>
<a href="/unggah/">Unggah materi</a>
</li>
</ul>
</div>
<body id="page-top" style="font-family: 'Poppins', sans-serif;">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'daftar_katalog' %}">
<div class="sidebar-brand-icon rotate-n-15">
</div>
<div class="sidebar-brand-text mx-3">Digipus</div>
</a>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard' %}">
<span>Beranda</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'unggah' %}">
<span>Unggah Materi</span></a>
</li>
</ul>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<i class="fa fa-bars"></i>
</button>
<div class="sidebar-brand-text mx-3">Diskominfo Kota Depok</div>
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/unggah/">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Unggah</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/profil/">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Profil</span>
</a>
</li>
<div class="topbar-divider d-none d-sm-block"></div>
<!-- Nav Item - User Information -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Admin</span>
<img class="img-profile rounded-circle" src="https://source.unsplash.com/QAB-WJcbgJk/60x60">
</a>
</li>
</ul>
</nav>
<!-- End of Topbar -->
<!-- Page Content -->
<div id="content" class="p-4 p-md-5">
<!-- Begin Page Content -->
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid" >
</div>
<!-- /.container-fluid -->
<button type="button" id="sidebarCollapse" class="btn btn-primary">
<i class="fa fa-bars"> </i>
<span class="sr-only">Toggle Menu</span>
</button>
</div>
</nav>
</div>
<!-- End of Main Content -->
<h2 class="mb-4">Dashboard</h2>
<p></p>
<p></p>
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright &copy; Diskominfo Kota Depok 2020</span>
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<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"
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"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
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/unggah_materi/js/jquery.min.js"></script>
<script src="../static/unggah_materi/js/popper.js"></script>
<script src="../static/unggah_materi/js/bootstrap.min.js"></script>
<script src="../static/unggah_materi/js/main.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Unggah Materi</title>
<link rel="icon" type="image/png" href="../static/unggah_materi/images/logo.ico" />
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css'>
<link rel="stylesheet" href="../static/unggah_materi/css/fileupload.css">
</head>
<body>
<!-- partial:index.partial.html -->
<!DOCTYPE html>
<html>
<body>
<div class="col-md-6 offset-md-3 mt-5">
<br>
<form id="add_form" method="POST" action="" novalidate enctype="multipart/form-data">
<h2>
Unggah Materi
</h2>
<div class="row">
{% csrf_token %}
{% for field in form %}
<div class="col-md-6">
<div class="fieldWrapper">
{{ field.label_tag }} {{ field }}
{{ field.errors }}
{% if field.help_text %}
<p class="help">{{ field.help_text|safe }}</p>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="row marl text-center m-3">
<a href="/file_text/" class="secondary_btn clear" style="border-radius:20px;color:white;"
id="create_user_cancel"><i class="fa fa-undo" aria-hidden="true">
</i>Batal</a>
<button class="primary_btn save" style="border-radius:20px;" type="submit">
<i class="far fa-save">
</i>
Simpan
</button>
</div>
</div>
</form>
</div>
</body>
</html>
<!-- partial -->
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Unggah Materi</title>
<link rel="icon" type="image/png" href="../unggah_materi/static/images/logo.ico" />
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css'>
<link rel="stylesheet" href="../unggah_materi/static/css/fileupload.css">
</head>
<body>
<!-- partial:index.partial.html -->
<!DOCTYPE html>
<html>
<body>
<div class="col-md-6 offset-md-3 mt-5">
<br>
<form accept-charset="UTF-8">
<div class="form-group">
<label for="exampleInputName">Judul</label>
<input type="text" name="fullname" class="form-control" id="exampleInputName" placeholder=""
required="required">
</div>
<div class="form-group">
<label for="exampleInputEmail1" required="required">Penulis</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="">
</div>
<div class="form-group">
<label for="exampleInputEmail1" required="required">Penerbit</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="">
</div>
<div class="form-group">
<label for="exampleInputEmail1" required="required">Kategori</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="">
</div>
<div class="form-group">
<label for="exampleInputEmail1" required="required">Deskripsi</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="">
</div>
<hr>
<div class="form-group mt-3">
<label class="mr-2">Video File</label>
<input type="file" name="file">
</div>
<div class="form-group mt-3">
<label class="mr-2">Thumbnail File</label>
<input type="file" name="file">
</div>
<hr>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</body>
</html>
<!-- partial -->
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<title>Profile Kontributor</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" href="../static/unggah_materi/images/logo.ico" />
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/unggah_materi/css/style.css">
</head>
<body style="background-color: #f2f2f2;">
<div class="wrapper d-flex align-items-stretch">
<nav id="sidebar" style="background-color: #6675df;">
<div class="p-4 pt-5">
<a href="#" class="img logo rounded-circle mb-5"
style="background-image: url(../static/unggah_materi/images/dummy.png);"></a>
<ul class="list-unstyled components mb-5">
<li>
<a href="/dashboard/">Dashboard</a>
</li>
<li>
<a href="/profile/">Profile</a>
</li>
<li>
<a href="/unggah/">Unggah materi</a>
</li>
</ul>
</div>
</nav>
<!-- Page Content -->
<div id="content" class="p-4 p-md-5">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<button type="button" id="sidebarCollapse" class="btn btn-primary">
<i class="fa fa-bars"> </i>
<span class="sr-only">Toggle Menu</span>
</button>
</div>
</nav>
<h2 class="mb-4">Profile Kontributor</h2>
<p></p>
<p></p>
</div>
</div>
<script src="../static/unggah_materi/js/jquery.min.js"></script>
<script src="../static/unggah_materi/js/popper.js"></script>
<script src="../static/unggah_materi/js/bootstrap.min.js"></script>
<script src="../static/unggah_materi/js/main.js"></script>
</body>
</html>
\ No newline at end of file
<!doctype html>
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Unggah Materi</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Unggah Materi</title>
<link rel="icon" type="image/png" href="../static/unggah_materi/images/logo.ico" />
<!-- Custom fonts for this template -->
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{% static 'css/sb-admin-2.min.css' %}" rel="stylesheet">
<link rel="stylesheet" href="{% static 'css/button.css' %}">
<!-- Custom styles for this page -->
<link href="{% static 'vendor/datatables/dataTables.bootstrap4.min.css' %}" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/unggah_materi/css/style.css">
</head>
<body style="background-color: #f2f2f2;">
<div class="wrapper d-flex align-items-stretch">
<nav id="sidebar" style="background-color: #6675df;">
<div class="p-4 pt-5">
<a href="#" class="img logo rounded-circle mb-5"
style="background-image: url(../static/unggah_materi/images/dummy.png);"></a>
<ul class="list-unstyled components mb-5">
<li>
<a href="/dashboard/">Dashboard</a>
</li>
<li>
<a href="/profile/">Profile</a>
</li>
<li>
<a href="/unggah/">Unggah materi</a>
</li>
</ul>
<body id="page-top" style="font-family: 'Poppins', sans-serif;">
</div>
</nav>
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Page Content -->
<div id="content" class="p-4 p-md-5">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{% url 'daftar_katalog' %}">
<div class="sidebar-brand-icon rotate-n-15">
</div>
<div class="sidebar-brand-text mx-3">Digipus</div>
</a>
<button type="button" id="sidebarCollapse" class="btn btn-primary" >
Swipe
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard' %}">
<span>Beranda</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'unggah' %}">
<span>Unggah Materi</span></a>
</li>
</ul>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<i class="fa fa-bars"></i>
</button>
<div class="sidebar-brand-text mx-3">Diskominfo Kota Depok</div>
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/unggah/">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Unggah</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/profil/">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Profil</span>
</a>
</li>
<div class="topbar-divider d-none d-sm-block"></div>
<!-- Nav Item - User Information -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="mr-2 d-none d-lg-inline text-gray-600 small">Admin</span>
<img class="img-profile rounded-circle"
src="https://source.unsplash.com/QAB-WJcbgJk/60x60">
</a>
</li>
</ul>
</nav>
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<div class="container">
<div class="col-20">
<h1 class="mt-2">Upload Materi</h1>
<hr class="mt-0 mb-4">
<form form id="add_form" method="POST" action="" novalidate enctype="multipart/form-data">
{% csrf_token %}
{% for field in form%}
<div class="col-md-6">
<div class="fieldWrapper">
{{ field.label_tag }} {{ field }}
{{ field.errors }}
{% if field.help_text %}
<p class="help">{{ field.help_text|safe }}</p>
{% endif %}
</div>
</div>
{% endfor %}
<div class="row marl text-center m-3">
<a href="{% url 'unggah' %}" class="secondary_btn clear" style="border-radius:20px;color:white;"
id="create_user_cancel"><i class="fa fa-undo" aria-hidden="true">
</i>
Batal</a>
<button type="submit" class="btn btn-success"
style="background-color: #615CFD; border-color: #615CFD;">Simpan</button>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</nav>
<!-- /.container-fluid -->
<h2 class="mb-4">Unggah materi</h2>
<p> Pilih jenis file yang ingin diunggah</p>
<p></p>
<button type="button" class="btn btn-primary">
<a href="/file_text/" style="color: #ffffff;"> Text file </a>
</button>
</div>
<!-- End of Main Content -->
<br>
</br>
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">