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

Halaman Tipologi #975

Merged
merged 5 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
1 change: 1 addition & 0 deletions app/Http/Controllers/Data/DataUmumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function index()
public function update(Request $request, $id)
{
request()->validate([
yus-ham marked this conversation as resolved.
Show resolved Hide resolved
'tipologi' => 'required',
'sejarah' => 'required',
'sumber_luas_wilayah' => 'required',
'luas_wilayah' => 'required',
Expand Down
13 changes: 13 additions & 0 deletions app/Http/Controllers/FrontEnd/ProfilController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@

class ProfilController extends FrontEndController
{
public function tipologi()
{
Counter::count('profil.tipologi');

$profil = Profil::with(['dataUmum'])->first();
$page_title = 'Tipologi';
if (isset($profil)) {
$page_description = $this->browser_title;
}

return view('pages.profil.tipologi', compact('page_title', 'page_description', 'profil'));
}

public function sejarah()
{
Counter::count('profil.sejarah');
Expand Down
1 change: 1 addition & 0 deletions app/Models/DataUmum.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DataUmum extends Model
protected $table = 'das_data_umum';

protected $fillable = [
'tipologi',
'sejarah',
'ketinggian',
'sumber_luas_wilayah',
Expand Down
1 change: 1 addition & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Di rilis versi v2406.1.0 di versi ini terdapat [untuk diisi] dan perbaikan lain
1. [#262](https://github.com/OpenSID/OpenDK/issues/262) Penambahan modul themes.
2. [#960](https://github.com/OpenSID/OpenDK/issues/960) Penambahan filter berdasarkan desa pada modul berkaitan dengan data desa.
3. [#962](https://github.com/OpenSID/OpenDK/issues/962) Penambahan unduh dan lihat pada halaman unduhan dokumen website.
4. [#640](https://github.com/OpenSID/OpenDK/issues/640) Penambahan halaman tipologi.
yus-ham marked this conversation as resolved.
Show resolved Hide resolved


#### BUG
Expand Down
60 changes: 60 additions & 0 deletions database/migrations/2024_06_25_131925_add_tipologi_data_umum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php

/*
* File ini bagian dari:
*
* OpenDK
*
* Aplikasi dan source code ini dirilis berdasarkan lisensi GPL V3
*
* Hak Cipta 2017 - 2024 Perkumpulan Desa Digital Terbuka (https://opendesa.id)
*
* Dengan ini diberikan izin, secara gratis, kepada siapa pun yang mendapatkan salinan
* dari perangkat lunak ini dan file dokumentasi terkait ("Aplikasi Ini"), untuk diperlakukan
* tanpa batasan, termasuk hak untuk menggunakan, menyalin, mengubah dan/atau mendistribusikan,
* asal tunduk pada syarat berikut:
*
* Pemberitahuan hak cipta di atas dan pemberitahuan izin ini harus disertakan dalam
* setiap salinan atau bagian penting Aplikasi Ini. Barang siapa yang menghapus atau menghilangkan
* pemberitahuan ini melanggar ketentuan lisensi Aplikasi Ini.
*
* PERANGKAT LUNAK INI DISEDIAKAN "SEBAGAIMANA ADANYA", TANPA JAMINAN APA PUN, BAIK TERSURAT MAUPUN
* TERSIRAT. PENULIS ATAU PEMEGANG HAK CIPTA SAMA SEKALI TIDAK BERTANGGUNG JAWAB ATAS KLAIM, KERUSAKAN ATAU
* KEWAJIBAN APAPUN ATAS PENGGUNAAN ATAU LAINNYA TERKAIT APLIKASI INI.
*
* @package OpenDK
* @author Tim Pengembang OpenDesa
* @copyright Hak Cipta 2017 - 2024 Perkumpulan Desa Digital Terbuka (https://opendesa.id)
* @license http://www.gnu.org/licenses/gpl.html GPL V3
* @link https://github.com/OpenSID/opendk
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('das_data_umum', function (Blueprint $table) {
$table->longText('tipologi')->nullable(true)->after('profil_id');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('das_data_umum', function (Blueprint $table) {
$table->dropColumn('tipologi');
});
}
};
8 changes: 8 additions & 0 deletions resources/views/data/data_umum/form_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
</div>
</div>

<div class="form-group">
<label class="control-label col-md-4 col-sm-3 col-xs-12">Tipologi <span class="required">*</span></label>

<div class="col-md-6 col-sm-6 col-xs-12">
{!! Form::textarea('tipologi', null, ['placeholder' => 'Tipologi', 'class' => 'form-control my-editor', 'rows' => 2]) !!}
</div>
</div>

<div class="form-group">
<label class="control-label col-md-4 col-sm-3 col-xs-12">Sejarah <span class="required">*</span></label>

Expand Down
1 change: 1 addition & 0 deletions resources/views/layouts/frontends/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ul class="row megamenu">
<li class="col-md-4 col-sm-2">
<ul class="mega-list">
<li class="@if (Request::is('profil/tipologi')) active @endif"> <a class="text-bold" href="{{ route('profil.tipologi') }}"><i class="fa fa-arrow-circle-right text-blue"></i> Tipologi</a></li>
<li class="@if (Request::is('profil/sejarah')) active @endif"> <a class="text-bold" href="{{ route('profil.sejarah') }}"><i class="fa fa-arrow-circle-right text-blue"></i> Sejarah</a></li>
<li class="@if (Request::is('profil/letak-geografis')) active @endif"><a href="{{ route('profil.letak-geografis') }}"><i class="fa fa-arrow-circle-right text-blue"></i> Letak Geografis</a></li>
<li class="@if (Request::is('profil/struktur-pemerintahan')) active @endif"><a href="{{ route('profil.struktur-pemerintahan') }}"><i class="fa fa-arrow-circle-right text-blue"></i> Struktur Pemerintahan</a></li>
Expand Down
1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
Route::get('letak-geografis', 'ProfilController@LetakGeografis')->name('profil.letak-geografis');
Route::get('struktur-pemerintahan', 'ProfilController@StrukturPemerintahan')->name('profil.struktur-pemerintahan');
Route::get('visi-dan-misi', 'ProfilController@VisiMisi')->name('profil.visi-misi');
Route::get('tipologi', 'ProfilController@tipologi')->name('profil.tipologi');
Route::get('sejarah', 'ProfilController@sejarah')->name('profil.sejarah');
});

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@extends('layouts.app')
@section('title', 'Tipologi')
@section('content')
<div class="col-md-8">
<div class="box box-primary">
<div class="box-header with-border text-bold">
<h3 class="box-title text-bold"><i class="fa fa-arrow-circle-right fa-lg text-blue"></i> TIPOLOGI {{ strtoupper($sebutan_wilayah) }} {{ strtoupper($profil->nama_kecamatan) }}</h3>
</div>
<div class="box-body">
<center>
<img class="img-circle" style="display:block;margin:auto" src="{{ is_logo($profil->file_logo) }}">
</center>
<p> {!! $profil->dataumum->tipologi !!}</p>
</div>
</div>
</div>
@endsection