thebadspace/templates/forms/bulk-add-location.twig
Ro 245531faf6 Added support of fedifence CSV and pagination
Populated the DB with entries from a fedifence export provided by
@Oliphant (https://codeberg.org/oliphant/blocklists).

As such also updated the appropriate templates with pagination to be
able to peruse through the location directory.

Also added an edit link on the location template front end to make
finding and updating instance info easy.
2023-01-23 19:59:51 -08:00

17 lines
585 B
Twig

<form action="{{ path('location-bulk-add') }}" method="post" enctype="multipart/form-data">
<label for="myfile">Upload CSV</label>
<br>
<input type="file" name="myfile" id="myfile"></div>
<br/>
<label>Input Type</label><br/>
<select name="input_type">
<option value="" disabled selected>Choose Upload Type
</option>
<option value="tbs">The Bad Space Custom</option>
<option value="fedifence">Fedifence</option>
</select>
<br/>
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/>
<button type="submit">Upload Locations</button>
</form>