blob: e60a8f07e3fc17d61570198a4139783c2fe46dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
@extends('template')
@section('body')
<main>
<header>
<h3>Data Importer</h3>
<h4>add some data items to the database from a json file</h4>
</header>
<section>
<form action = "/import" method = "post" enctype = "multipart/form-data">
@csrf
<label = for = "modelType">Type of model being imported: </label>
<select name = "modelType" id = "modelType">
@foreach (App\Http\Controllers\SiteController::$MODELS as $model)
<option value = "{{ $model }}">{{ $model }}</option>
@endforeach
</select>
<label for = "jsonFile">Select a json file to import</label>
<input type = "file" name = "jsonFile" id = "jsonFile">
<button type = "submit">Import</button>
</form>
</section>
</main>
@endsection
|