add option to upload file when creating a table
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
@section('content')
|
||||
<form method="POST" action="{{route('table.storeNew')}}" class="row justify-content-center"
|
||||
enctype="multipart/form-data"
|
||||
aria-label="New Table">
|
||||
|
||||
@csrf
|
||||
@@ -57,11 +58,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! Widget::textarea('data', 'Initial data')->value($exampleData)->height('12em')
|
||||
->help('
|
||||
Initial table data in CSV format, columns corresponding to the
|
||||
specification you entered above. This is optional; you can fill the table
|
||||
later, e.g. by uploading a CSV file.') !!}
|
||||
{!! 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") !!}
|
||||
|
||||
<div class="row form-group">
|
||||
<div class="col-md-7 offset-md-3">
|
||||
|
||||
Reference in New Issue
Block a user