Row adding, some webpack tweaks
This commit is contained in:
@@ -30,23 +30,12 @@
|
||||
->help('If you took the data from some external site, a book, etc., write it here.
|
||||
URLs in a full format will be clickable.') !!}
|
||||
|
||||
{{--!! Widget::textarea('columns', 'Columns')->value($exampleColumns)->height('8em')
|
||||
->help('
|
||||
<div class="text-left">
|
||||
Column parameters in CSV format:
|
||||
<ul class="pl-3 mb-0">
|
||||
<li><b>column identifier</b><br>letters, numbers, underscore
|
||||
<li><b>column data type</b><br>int, string, float, bool
|
||||
<li><b>column title</b><br>used for display (optional)
|
||||
</ul>
|
||||
</div>') !!--}}
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="field-columns" class="col-md-3 col-form-label text-md-right">
|
||||
Columns
|
||||
</label>
|
||||
<div class="col-md-8">
|
||||
<column-editor name="columns" :initial-columns="{{old('columns', toJSON($columns))}}"></column-editor>
|
||||
<div id="column-editor"></div>
|
||||
|
||||
<noscript>
|
||||
You have JavaScript disabled; enter columns as JSON array<br>
|
||||
@@ -84,3 +73,14 @@
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
ready(function() {
|
||||
app.ColumnEditor('#column-editor', {
|
||||
name: 'columns',
|
||||
initialColumns: {!! old('columns', toJSON($columns)) !!},
|
||||
})
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user