{! 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 /} Name For Format Encoded Barcode Last Increment Actions {#if searchResults.get("empty").asBoolean()}

No ID Generators Found

{#else} {#for result in searchResults.get("results")} {#let id = result.get("id").asText()} {#if !result.get("name").isNull()} {result.get("name").asText()} {/if} {#for curType in result.get("forObjectType")} {#when curType.asText()} {#is "ITEM"} {#icons/items /} Items {#is "STORED"} {#icons/stored /} Stored {/when} {/for} {result.get("idFormat").asText()} {#if result.get("encoded").asBoolean()} Yes {#else} No {/if} {#if result.get("barcode").asBoolean()} Yes {#else} No {/if} {#if !result.get("lastIncremented").isNull()} {result.get("lastIncremented").asText()} {#else} N/A {/if} {#if actionType == 'full'} {#else if actionType == 'select'} {/if} {/let} {/for} {/if} {#paginationButtons searchFormId = searchFormId searchResults = searchResults /}