{{-- New table form --}} @extends('layouts.app') @section('title', "New Table") @section('content')
@csrf
@php(Widget::setLayout(3, 7)) {!! Widget::header(1, 'New Table') !!} {!! Widget::text('title', 'Title')->autoAlias('name', '-') ->help('Unique among your tables') !!} {!! Widget::text('name', 'Name')->value('')->prepend(user()->handle.' /') ->help('Unique among your tables, and part of the URL; only letters, digits and some symbols are allowed.') !!} {!! Widget::textarea('description', 'Description')->height('8em') ->help('Description of the table. URLs in a full format will be clickable.') !!} {!! Widget::text('license', 'License') ->help('License applicable to the table\'s data, if any. By default, all tables are CC0 or Public Domain.') !!} {!! Widget::text('origin', 'Adapted from') ->help('If you took the data from some external site, a book, etc., write it here. URLs in a full format will be clickable.') !!}
@if ($errors->has('columns')) {{ $errors->first('columns') }} @endif @if($errors->has('columns')) @icon(fa-warning, sr:Validation error:) {{$errors->first('columns')}} @endif
{!! Widget::par(' Initialize the table with pasted CSV lines or an uploaded CSV file, using the column order you defined above. This is optional, you can always fill or modify the table later. ', 'text-muted') !!} {!! Widget::textarea('data', 'CSV as text')->value($exampleData)->height('12em') !!} {!! Widget::file('csv-file', 'CSV file')->accept("text/csv") !!}
@endsection @push('scripts') @endpush