Browse Source

adding sortable column package

master
jk 3 years ago
parent
commit
8f3c940371
  1. 1
      composer.json
  2. 63
      composer.lock
  3. 1
      config/app.php
  4. 43
      resources/views/fermentations/fermentation/edit.blade.php

1
composer.json

@ -9,6 +9,7 @@
"fideloper/proxy": "^4.4", "fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0", "fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1", "guzzlehttp/guzzle": "^7.0.1",
"kyslik/column-sortable": "^6.4",
"laravel/framework": "^8.40", "laravel/framework": "^8.40",
"laravel/tinker": "^2.5", "laravel/tinker": "^2.5",
"laravel/ui": "^3.3" "laravel/ui": "^3.3"

63
composer.lock

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "7a12c9538bba77431a51733da361d4d0",
"content-hash": "f856fb3d85743a16b6ab80c680d2b107",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
@ -856,6 +856,67 @@
}, },
"time": "2021-04-26T09:17:50+00:00" "time": "2021-04-26T09:17:50+00:00"
}, },
{
"name": "kyslik/column-sortable",
"version": "6.4.0",
"source": {
"type": "git",
"url": "https://github.com/Kyslik/column-sortable.git",
"reference": "9aef633bfe160c5a43d97e92e55983daa2696eb1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Kyslik/column-sortable/zipball/9aef633bfe160c5a43d97e92e55983daa2696eb1",
"reference": "9aef633bfe160c5a43d97e92e55983daa2696eb1",
"shasum": ""
},
"require": {
"illuminate/database": "5.8.*|^6.0|^7.0|^8.0",
"illuminate/support": "5.8.*|^6.0|^7.0|^8.0",
"php": ">=7.2"
},
"require-dev": {
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^8.5"
},
"type": "package",
"extra": {
"laravel": {
"providers": [
"Kyslik\\ColumnSortable\\ColumnSortableServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Kyslik\\ColumnSortable\\": "src/ColumnSortable/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Martin Kiesel",
"email": "martin.kiesel@gmail.com",
"role": "Developer and maintainer"
}
],
"description": "Package for handling column sorting in Laravel 6.x",
"keywords": [
"column",
"laravel",
"sort",
"sortable",
"sorting"
],
"support": {
"issues": "https://github.com/Kyslik/column-sortable/issues",
"source": "https://github.com/Kyslik/column-sortable/tree/6.4.0"
},
"time": "2020-09-11T21:17:32+00:00"
},
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v8.47.0", "version": "v8.47.0",

1
config/app.php

@ -161,6 +161,7 @@ return [
Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class, Illuminate\View\ViewServiceProvider::class,
Kyslik\ColumnSortable\ColumnSortableServiceProvider::class,
/* /*
* Package Service Providers... * Package Service Providers...

43
resources/views/fermentations/fermentation/edit.blade.php

@ -0,0 +1,43 @@
@extends('fermentations')
@section('main') <div class="row">
<div class="col-sm-12 offset-sm-2">
<h1 class="display-3">Update Fermentation Step</h1>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
<br />
@endif
<form method="post" action="{{ route('fermentations.update', $fermentation->id) }}">
@method('PATCH')
@csrf
<div class="form-group">
<label for="beer_id">Beer ID</label>
<input type="text" class="form-control" name="beer_id" value="{{$fermentation->beer_id}}" />
</div>
<div class="form-group">
<label for="yeast_id">Yeast ID</label>
<input type="text" class="form-control" name="yeast_id" value="{{$fermentation->yeast_id}}" />
</div>
<div class="form-group">
<label for="temperature">Temperature</label>
<input type="text" class="form-control" name="temperature" value="{{$fermentation->temperature}}" />
</div>
<div class="form-group">
<label for="duration">Duration</label>
<textarea type="text" class="form-control" name="duration">{{$fermentation->duration}}</textarea>
</div>
<div class="form-group">
<label for="alternative">Alternative (ID)</label>
<input type="text" class="form-control" name="alternative" value="{{$fermentation->alternative}}" />
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>
</div>
@endsection
Loading…
Cancel
Save