added fa config files, stub of Column editor

This commit is contained in:
2018-08-07 22:34:07 +02:00
parent 7121cfaabd
commit 1e0581d9ab
12 changed files with 431 additions and 158 deletions
@@ -1,6 +1,25 @@
@php($tab='manage-columns')
@php
$tab = 'manage-columns';
/** @var \App\Tables\Column[] $columns */
/** @var \App\Tables\Changeset $changeset */
/** @var \App\Models\Table $table */
@endphp
@extends('table.propose.layout')
@section('tab-content')
...
<div id="column-editor"></div>
@stop
@push('scripts')
<script>
ready(function() {
// TODO we need a better editor with ajax for adding, also with ordering
app.ColumnEditorAdvanced('#column-editor', {
name: 'columns',
route: {!! toJSON($table->draftUpdateRoute) !!},
initialColumns: {!! toJSON($columns) !!},
})
});
</script>
@endpush