Add checkbox to clear previous data when importing #490 (#546)

* Add checkbox to clear previous data when importing #490
This commit is contained in:
Nabeel S
2020-02-11 10:51:18 -05:00
committed by GitHub
parent 99118daad9
commit be6c164f03
9 changed files with 122 additions and 84 deletions

View File

@@ -7,6 +7,13 @@
{{ Form::label('csv_file', 'Choose a CSV file to import') }}
{{ Form::file('csv_file', ['accept' => '.csv']) }}
<p class="text-danger">{{ $errors->first('csv_file') }}</p>
<div class="checkbox">
<label class="checkbox-inline">
{{ Form::label('delete', 'Delete existing data:') }}
{{ Form::hidden('delete', 0, false) }}
{{ Form::checkbox('delete') }}
</label>
</div>
</div>
<div class="form-group col-md-12">