Commit 8bb14782 by Joel Marpaung

no message

parent e18973c9
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "syp_d4ti_02.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django
except ImportError:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
)
raise
execute_from_command_line(sys.argv)
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class SurveyerConfig(AppConfig):
name = 'surveyer'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
"""
Django settings for syp_d4ti_02 project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
TEMPLATE_DIR = os.path.join(BASE_DIR,'templates')
STATIC_DIR = os.path.join(BASE_DIR,'static')
MEDIA_DIR = os.path.join(BASE_DIR,'media')
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '5hghq6$7d^%7pso)5%3vzu@2w^ick!v$#yjy+)kms-5@8&e1e!'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'administrator',
'farmer',
'quality_control',
'surveyer',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'syp_d4ti_02.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'syp_d4ti_02.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'syp_d4ti_02',
'USER' : 'root',
'PASSWORD' : '',
'HOST': 'localhost',
'PORT' : '3306',
}
}
# Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [
STATIC_DIR,
]
MEDIA_ROOT = MEDIA_DIR
MEDIA_URL = '/media/'
LOGIN_URL = '/login/'
\ No newline at end of file
"""syp_d4ti_02 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
]
"""
WSGI config for syp_d4ti_02 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "syp_d4ti_02.settings")
application = get_wsgi_application()
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>Index Lahan</h1>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>This is farmer page </h1>
</section>
{% endblock %}
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Buat Pengajuan Peminjaman Uang
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="col-md-12">
<!-- Horizontal Form -->
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Silahkan buat pengajuan peminjaman uang anda dengan mengisi form ini</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<form class="form-horizontal" role="form" action="/create-peminjaman-uang/" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<div class="box-body">
<div class="form-group">
<label class="col-sm-2 control-label">Nama Bank</label>
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="Cth : BNI / BCA / BRI" name="bank_name" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">No Rekening</label>
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="Cth : BNI / BCA / BRI" name="no_rekening" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Besar Peminjaman</label>
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="Cth : Rp 2.500.000" name="besar_peminjaman" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Alasan Peminjaman</label>
<div class="col-sm-10">
<textarea class="form-control" name="alasan_peminjaman" placeholder="Cth : Untuk mengolah lahan dan membeli peralatan pengolahan lahan, seperti cangkul, dll." required></textarea>
</div>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<button type="reset" class="btn btn-default">Reset</button>
<button type="submit" class="btn btn-info pull-right">Ajukan</button>
</div>
<!-- /.box-footer -->
</form>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Peminjaman <a href="{% url 'farmer:daftarPeminjamanUang' %}" class="btn btn-warning btn-lg">Pending</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPeminjamanTolak' %}" class="btn btn-danger btn-lg">Tolak</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPeminjamanSetuju' %}" class="btn btn-success btn-lg">Setuju</a>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Peminjaman dipending</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Nama Bank</th>
<th>No. Rekening</th>
<th>Status</th>
<th>Besar Peminjaman</th>
<th>Alasan Peminjaman</th>
<th>Tanggal Peminjaman</th>
<th>Aksi</th>
</tr>
</thead>
{% for pending in peminjaman_uang %}
<tr>
<td>{{ pending.bank_name }} </td>
<td>{{ pending.no_rekening }} </td>
<td><span class="label label-warning">Pending</span></td>
<td>{{ pending.besar_peminjaman }} </td>
<td>{{ pending.alasan_peminjaman }} </td>
<td>{{ pending.tanggal_peminjaman }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Ubah</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger ">Batal</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if peminjaman_uang.has_previous %}
<li><a href="?page={{ peminjaman_uang.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in peminjaman_uang.paginator.page_range %}
{% if peminjaman_uang.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if peminjaman_uang.has_next %}
<li><a href="?page={{ peminjaman_uang.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Peminjaman <a href="{% url 'farmer:daftarPeminjamanUang' %}" class="btn btn-warning btn-lg">Pending</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPeminjamanTolak' %}" class="btn btn-danger btn-lg">Tolak</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPeminjamanSetuju' %}" class="btn btn-success btn-lg">Setuju</a>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Peminjaman ditolak</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Nama Bank</th>
<th>No. Rekening</th>
<th>Status</th>
<th>Besar Peminjaman</th>
<th>Alasan Peminjaman</th>
<th>Tanggal Peminjaman</th>
<th>Aksi</th>
</tr>
</thead>
{% for pending in peminjaman_uang %}
<tr>
<td>{{ pending.bank_name }} </td>
<td>{{ pending.no_rekening }} </td>
<td><span class="label label-danger">Tolak</span></td>
<td>{{ pending.besar_peminjaman }} </td>
<td>{{ pending.alasan_peminjaman }} </td>
<td>{{ pending.tanggal_peminjaman }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Lihat</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger">Hapus</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if peminjaman_uang.has_previous %}
<li><a href="?page={{ peminjaman_uang.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in peminjaman_uang.paginator.page_range %}
{% if peminjaman_uang.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if peminjaman_uang.has_next %}
<li><a href="?page={{ peminjaman_uang.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Buat Pengajuan Lahan
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="col-md-12">
<!-- Horizontal Form -->
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Silahkan buat pengajuan lahan anda dengan mengisi form ini</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<form class="form-horizontal" role="form" action="/create-pengajuan-lahan/" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<div class="box-body">
<div class="form-group">
<label class="col-sm-2 control-label">Luas Lahan</label>
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="Cth : 2 hektar / 250 m2" name="luas_lahan" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Alamat Lahan</label>
<div class="col-sm-10">
<textarea class="form-control" name="alamat_lahan" placeholder="Cth : Jln. Sigura-gura, Desa Pangombusan, Kecamatan Parmaksian, Kabupaten Toba Samosir" required></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Keterangan Lahan</label>
<div class="col-sm-10">
<textarea class="form-control" name="keterangan" placeholder="Cth : Lahan ini merupakan lahan basah dan sangat subur. Tanah pada lahan ini adalah tanah hitam. Lahan ditumbuhi tumbuhan rawa" required></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Sertifikat Lahan</label>
<div class="col-sm-10">
<input type="file" class="form-control" value="test" name="image_certificate" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Gambar Lahan 1</label>
<div class="col-sm-10">
<input type="file" class="form-control" value="test" name="image1" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Gambar Lahan 2</label>
<div class="col-sm-10">
<input type="file" class="form-control" value="test" name="image2" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Gambar Lahan 3</label>
<div class="col-sm-10">
<input type="file" class="form-control" value="test" name="image3" required>
</div>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<button type="reset" class="btn btn-default">Reset</button>
<button type="submit" class="btn btn-info pull-right">Ajukan</button>
</div>
<!-- /.box-footer -->
</form>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Lahan <a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-warning btn-lg">Pending</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger btn-lg">Tolak</a>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Lahan dipending</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Luas Lahan</th>
<th>Alamat Lahan</th>
<th>Status</th>
<th>Keterangan</th>
<th>Tanggal Pengajuan</th>
<th>Aksi</th>
</tr>
</thead>
{% for pending in pengajuan_pending %}
<tr>
<td>{{ pending.luas_lahan }} </td>
<td>{{ pending.alamat_lahan }} </td>
<td><span class="label label-warning">Pending</span></td>
<td>{{ pending.keterangan }} </td>
<td>{{ pending.tanggal_pengajuan }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Ubah</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger ">Batal</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if pengajuan_pending.has_previous %}
<li><a href="?page={{ pengajuan_pending.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in pengajuan_pending.paginator.page_range %}
{% if pengajuan_pending.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if pengajuan_pending.has_next %}
<li><a href="?page={{ pengajuan_pending.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Lahan <a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-warning btn-lg">Pending</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger btn-lg">Tolak</a>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Lahan ditolak</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Luas Lahan</th>
<th>Alamat Lahan</th>
<th>Status</th>
<th>Keterangan</th>
<th>Tanggal Pengajuan</th>
<th>Aksi</th>
</tr>
</thead>
{% for reject in pengajuan_reject %}
<tr>
<td>{{ reject.luas_lahan }} </td>
<td>{{ reject.alamat_lahan }} </td>
<td><span class="label label-danger">Tolak</span></td>
<td>{{ reject.keterangan }} </td>
<td>{{ reject.tanggal_pengajuan }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Detail</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger">Hapus</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if pengajuan_reject.has_previous %}
<li><a href="?page={{ pengajuan_reject.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in pengajuan_reject.paginator.page_range %}
{% if pengajuan_reject.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if pengajuan_reject.has_next %}
<li><a href="?page={{ pengajuan_reject.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'farmer/base.html' %}
<title>Farmer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>This is profile farmer page </h1>
</section>
{% endblock %}
<!DOCTYPE html>
{% load staticfiles %}
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="{% static 'AdminLTE/bootstrap/css/bootstrap.min.css' %}">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="{% static 'AdminLTE/dist/css/AdminLTE.min.css' %}">
<!-- iCheck -->
<link rel="stylesheet" href="{% static 'AdminLTE/plugins/iCheck/flat/blue.css' %}">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
{% block body_block %}
{% endblock %}
<!-- jQuery 2.2.3 -->
<script src="../../plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="../../plugins/iCheck/icheck.min.js"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
</script>
</body>
</html>
{% extends 'homepage/base.html' %}
{% load staticfiles %}
{% block body_block %}
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="../../index2.html"><b>SI</b> Manajemen Lahan</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg">Masuk menggunakan akun anda</p>
<form action="/login/" method="POST" id="loginform" class="form-horizontal">
{% csrf_token %}
<div class="form-group has-feedback">
<input id="login-username" type="text" class="form-control" name="username" value="" placeholder="nama pengguna">
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input id="login-password" type="password" class="form-control" name="password" placeholder="kata sandi">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Masuk</button>
</div>
<!-- /.col -->
</div>
</form>
<div class="social-auth-links text-center">
</div>
<!-- /.social-auth-links -->
<a href="#">Saya Lupa Password</a><br>
<a href="{% url 'register' %}" class="text-center">Daftar Akun</a>
</div>
<!-- /.login-box-body -->
</div>
{% endblock %}
\ No newline at end of file
{% extends 'homepage/base.html' %}
{% load staticfiles %}
{% block body_block %}
<body class="hold-transition register-page">
<div class="register-box">
<div class="register-logo">
<a href="../../index2.html"><b>SI</b> Manajemen Lahan</a>
</div>
<div class="register-box-body">
<p class="login-box-msg">Daftarkan akun anda</p>
<form class="form-horizontal" role="form" action="/register/" method="POST">
{% csrf_token %}
<div class="form-group has-feedback">
<input type="text" class="form-control" name="username" placeholder="nama pengguna untuk akun" required min-length=5>
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" name="password" placeholder="kata sandi" required min-length=8>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" name="password2" placeholder="masukkan kembali kata sandi" required min-length=8>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" name="full_name" placeholder="nama lengkap" required>
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" name="phone" placeholder="nomor telepon" required>
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" name="kabupaten" placeholder="kabupaten" required>
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="text" class="form-control" name="kecamatan" placeholder="kecamatan" required min-length=5>
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<textarea class="form-control" name="alamat" placeholder="alamat" required></textarea>
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">Daftar</button>
</div>
<!-- /.col -->
</div>
</form>
<div class="social-auth-links text-center">
</div>
<a href="{% url 'login' %}" class="text-center">Sudah punya akun</a>
</div>
<!-- /.form-box -->
</div>
{% endblock %}
\ No newline at end of file
{% extends 'quality_control/base.html' %}
<title>Surveyer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>Index Lahan Quality Control</h1>
</section>
{% endblock %}
{% extends 'quality_control/base.html' %}
<title>Surveyer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>Index Quality Control</h1>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>This is data lahan index </h1>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Tambah Staff Baru
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="col-md-12">
<!-- Horizontal Form -->
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Silahkan tambah staff baru dengan mengisi form ini</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<form class="form-horizontal" role="form" action="/staff/create-staff/" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<div class="box-body">
<div class="form-group">
<label class="col-sm-2 control-label">Nama Pengguna</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="username" placeholder="nama pengguna untuk akun" required min-length=5>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Kata Sandi</label>
<div class="col-sm-10">
<input type="password" class="form-control" name="password" placeholder="kata sandi" required min-length=8>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Ulang Kata Sandi</label>
<div class="col-sm-10">
<input type="password" class="form-control" name="password2" placeholder="masukkan kembali kata sandi" required min-length=8>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Nama Lengkap</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="full_name" placeholder="nama lengkap" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Peran</label>
<div class="col-sm-10">
<select class="form-control" name="role" required>
<option value="admin">Admin</option>
<option value="surveyer">Surveyer</option>
<option value="quality">Quality Control</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Foto Profil</label>
<div class="col-sm-10">
<input type="file" class="form-control" value="test" name="photo" required>
</div>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<button type="reset" class="btn btn-default">Reset</button>
<button type="submit" class="btn btn-info pull-right">Tambah Staff</button>
</div>
<!-- /.box-footer -->
</form>
</div>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Staff
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Daftar Staff</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Username</th>
<th>Full Name</th>
<th>Peran</th>
<th>Foto</th>
<th>Aksi</th>
</tr>
</thead>
{% for staff in daftar_staff %}
<tr>
<td>{{ staff.username }} </td>
<td>{{ staff.full_name }} </td>
<td>{% if staff.role == 'admin' %}
<span class="label label-primary" style="font-size: 15px">Admin</span>
{% elif staff.role == 'surveyer' %}
<span class="label label-success" style="font-size: 15px">Surveyer</span>
{% else %}
<span class="label label-info" style="font-size: 15px">Quality Control</span>
{% endif %}
</td>
<td><div class="user-panel"><div class="pull-left image">
<img src="{% static staff.photo %}" class="img-circle" alt="User Image">
</div></div>
</td>
<td><a href="" class="btn btn-danger ">Hapus</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if daftar_staff.has_previous %}
<li><a href="?page={{ daftar_staff.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in daftar_staff.paginator.page_range %}
{% if daftar_staff.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if daftar_staff.has_next %}
<li><a href="?page={{ daftar_staff.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>This is admin page </h1>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>This is peminjaman accept</h1>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Peminjaman
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Peminjaman dipending</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Nama Bank</th>
<th>No. Rekening</th>
<th>Status</th>
<th>Besar Peminjaman</th>
<th>Alasan Peminjaman</th>
<th>Tanggal Peminjaman</th>
<th>Aksi</th>
</tr>
</thead>
{% for pending in peminjaman_uang %}
<tr>
<td>{{ pending.bank_name }} </td>
<td>{{ pending.no_rekening }} </td>
<td><span class="label label-warning">Pending</span></td>
<td>{{ pending.besar_peminjaman }} </td>
<td>{{ pending.alasan_peminjaman }} </td>
<td>{{ pending.tanggal_peminjaman }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Ubah</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger ">Batal</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if peminjaman_uang.has_previous %}
<li><a href="?page={{ peminjaman_uang.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in peminjaman_uang.paginator.page_range %}
{% if peminjaman_uang.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if peminjaman_uang.has_next %}
<li><a href="?page={{ peminjaman_uang.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Peminjaman
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Peminjaman ditolak</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Nama Bank</th>
<th>No. Rekening</th>
<th>Status</th>
<th>Besar Peminjaman</th>
<th>Alasan Peminjaman</th>
<th>Tanggal Peminjaman</th>
<th>Aksi</th>
</tr>
</thead>
{% for pending in peminjaman_uang %}
<tr>
<td>{{ pending.bank_name }} </td>
<td>{{ pending.no_rekening }} </td>
<td><span class="label label-danger">Tolak</span></td>
<td>{{ pending.besar_peminjaman }} </td>
<td>{{ pending.alasan_peminjaman }} </td>
<td>{{ pending.tanggal_peminjaman }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Lihat</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger">Hapus</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if peminjaman_uang.has_previous %}
<li><a href="?page={{ peminjaman_uang.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in peminjaman_uang.paginator.page_range %}
{% if peminjaman_uang.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if peminjaman_uang.has_next %}
<li><a href="?page={{ peminjaman_uang.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>Pengajuan Accept</h1>
</section>
{% endblock %}
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
{% load staticfiles %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Lahan Pending
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Lahan dipending</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Luas Lahan</th>
<th>Alamat Lahan</th>
<th>Status</th>
<th>Keterangan</th>
<th>Tanggal Pengajuan</th>
<th>Aksi</th>
</tr>
</thead>
{% for pending in pengajuan_pending %}
<tr>
<td>{{ pending.luas_lahan }} </td>
<td>{{ pending.alamat_lahan }} </td>
<td><span class="label label-warning">Pending</span></td>
<td>{{ pending.keterangan }} </td>
<td>{{ pending.tanggal_pengajuan }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Detail</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger">Tolak</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if pengajuan_pending.has_previous %}
<li><a href="?page={{ pengajuan_pending.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in pengajuan_pending.paginator.page_range %}
{% if pengajuan_pending.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if pengajuan_pending.has_next %}
<li><a href="?page={{ pengajuan_pending.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'staff/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Daftar Pengajuan Lahan
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Pengajuan Lahan ditolak</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table id="example2" class="table table-hover">
<thead>
<tr>
<th>Luas Lahan</th>
<th>Alamat Lahan</th>
<th>Status</th>
<th>Keterangan</th>
<th>Tanggal Pengajuan</th>
<th>Aksi</th>
</tr>
</thead>
{% for reject in pengajuan_reject %}
<tr>
<td>{{ reject.luas_lahan }} </td>
<td>{{ reject.alamat_lahan }} </td>
<td><span class="label label-danger">Tolak</span></td>
<td>{{ reject.keterangan }} </td>
<td>{{ reject.tanggal_pengajuan }} </td>
<td><a href="{% url 'farmer:daftarPengajuanLahan' %}" class="btn btn-info">Detail</a>&nbsp; &nbsp; &nbsp;<a href="{% url 'farmer:daftarPengajuanLahanTolak' %}" class="btn btn-danger">Hapus</a></td>
</tr>
{% endfor %}
</table>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
{% if pengajuan_reject.has_previous %}
<li><a href="?page={{ pengajuan_reject.previous_page_number }}">&laquo;</a></li>
{% else %}
<li><a disabled>&laquo;</a></li>
{% endif %}
{% for pg in pengajuan_reject.paginator.page_range %}
{% if pengajuan_reject.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
{% else %}
<li><a href="?page={{ pg }}">{{ pg }}</a></li>
{% endif %}
{% endfor %}
{% if pengajuan_reject.has_next %}
<li><a href="?page={{ pengajuan_reject.next_page_number }}">&raquo;</a></li>
{% else %}
<li><a disabled>&raquo;</a></li>
{% endif %}
</ul>
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
{% extends 'surveyer/base.html' %}
<title>Surveyer | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>Data Lahan</h1>
</section>
{% endblock %}
{% extends 'surveyer/base.html' %}
<title>Admin | Dashboard</title>
{% block body_block %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small>Control panel</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<h1>Surveyer Page</h1>
</section>
{% endblock %}
Markdown is supported
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