{!{@tech.ebp.oqm.baseStation.service.mongo.search.SearchResult searchResults}!} {!{@tech.ebp.oqm.baseStation.service.mongo.search.PagingCalculations pagingCalculations}!} {! Template to show storage search results. Gives the contents of a table, but not the main table tag Ingests: - actionType - the action to take. "full" or "select" - storageService - the service to get storage blocks - searchResults - searchFormId - the id of the search form controlling the results - inputIdPrepend - the prepend for the id of the inputs to set the data of - otherModalId - the id of the other modal to open when selected if `actionType` is "select", callback will be "selectStorageBlock('', '', '')" on the select button !} {#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons} Image Label/Nickname Location Parent Capacity Actions {#if searchResults.get("empty").asBoolean()}

No Storage Blocks

{#if actionType == 'full'}
{/if} {#else} {#for result in searchResults.get("results")} {#let id=result.get("id").asText() label=result.get("labelText").asText()} {#if !result.get("imageIds").isEmpty()} Image for {label} {/if} {label} {result.get("location").asText()} {#if result.get("hasParent").asBoolean()} {result.get("parentLabel").asText()} {/if} {#if actionType == 'full'} {#else if actionType == 'select'} {/if} {/let} {/for} {/if} {#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons}