{#each locations as location}
- toggleChildren(e, location)}
class="{location.locations?'expanded':'collapsed'} {location.highlight?'highlight':null}"
ondragover={e => drag_over(e,location)}
ondrop={e => onDrop(e,location)}
ondragleave={e => delete location.highlight}>
{location.name}
{#if location.locations}
{/if}
{/each}
-
{#if show_location_form}
{:else}
{t('add_object',{object:t('location')})}
{/if}