This repository has been archived on 2025-03-05. You can view files and clone it, but cannot push or open issues or pull requests.
TheBadSpace/templates/forms/edit-location.twig
Ro 26f3cbe994 Location Editing Part 2
Bulk uploading has been added and some inconsistencies in the templates
have been addressed. Still needs work but it's starting to feel like a
cohesive experience.

With the base data entry funcationality in place, now really polishing
can begin as well as establishing what roles can do what.

Smoothing out entry editing will be addressed as well.
2023-01-03 16:08:50 -08:00

40 lines
1.4 KiB
Twig

<form action="{{ path('location-edit') }}" method="post" enctype="multipart/form-data">
<div>
<label>Name</label><br/>
<input type="text" name="loc_name" value="{{ location.name }}"/>
<br/>
<label>URL</label><br/>
<input type="text" name="loc_url" value="{{ location.url }}"/>
<br/>
<label>Tags</label><br/>
<input type="text" name="loc_tags" value="{{ location.tags }}"/>
<br/>
<label>Description</label><br/>
<textarea name="loc_desc">{{ location.description }}</textarea>
<br/>
<label>Rating</label><br/>
<select name="rating">
{% if location.rating == "silence" %}
<option value="silence" selected>Silence</option>
<option value="defederate">Defederate</option>
{% else %}
<option value="silence">Silence</option>
<option value="defederate" selected>Defederate</option>
{% endif %}
</select><br/>
<label>Include in search results</label><br/>
<select name="active">
{% if location.active %}
<option value="false">No</option>
<option value="true" selected>Yes</option>
{% else %}
<option value="false" selected>No</option>
<option value="true">Yes</option>
{% endif %}
</select>
<br/>
<label>Images</label><br/>
<input type="file" id="loc_examples" name="loc_examples[]" multiple/>
</div>
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/>
<input type="submit" value="Edit Location" name="submit_button"></form>