1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-06-25 16:04:37 -05:00

Rewired new location submission form

Brought over the old form for adding new location to the db and the
plugged everything back up using Laravel's eloquent orm (which is pretty
fucking sweet) to re-active that process

NOTE: larvel gets a twitchy when sequencing isn't explicitly set some
minor edits needed to be made to the development DB to prevent a null id
error when inserting new records. this should be done to production when
it's ready as well
This commit is contained in:
Ro
2023-08-16 17:52:02 -07:00
parent e89508fda6
commit 89cb8b38c1
8 changed files with 146 additions and 17 deletions

View File

@ -0,0 +1,29 @@
@extends('frame')
@section('title', 'Den|Locations')
@section('main-content')
@parent
@if($errors->any())
<h4>{{$errors->first()}}</h4>
@endif
@if(session('message'))
{!! session('message') !!}
@endif
<section role="loc-index">
<div>
<h1>Locations</h1>
Hey {{$handle}}<br />
@if($action === "add")
@include('forms.add-location')
@elseif($action === "edit")
EDIT LOCATION
@elseif($action === "bulk-add")
ADD MANY LOCATIONS
@else
START
@endif
</div>
</section>
@endsection