<div id="units-of-measure-wrapper" <%= (App.rtl ? 'style="direction:rtl"' : '') %>>
    <div class="row">
        <div class="col s12 m3">
            <div class="input-field">
                <input id="searchText" type="text" maxlength="50">
                <label for="searchText">{Literal}Search Text{/Literal}</label>
            </div>
        </div>
        <div class="col s2 m1">
            <div class="search" style="padding-top: 20px;" >
                <a href="javascript:void(0)" class="btn waves-effect waves-light green search-items-button">
                    <i class="material-icons">search</i>
                </a>
            </div>
        </div>
    </div>
    <div class="row">
        <% _.each(unitsOfMeasure, function(unitsOfMeasure) { %>
            <div class="col s12 m3 xl2">
                <div class="card-panel card-panel-entity z-depth-1 sequence-card hoverable waves-effect waves-light " style="background-color: #ffffff" data-id="<%= unitsOfMeasure.id %>" data-selected='0'>
                    <div>
                        <div class="row description truncate" style="color: #3970b7;">
                            <%= unitsOfMeasure.itemDescription %>
                        </div>
                        <div class="row truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;">
                            {Literal}Measured by{/Literal}: <%= unitsOfMeasure.quantity %>
                        </div>
                        <div class="row truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;">
                            {Literal}of this item{/Literal}: <%= unitsOfMeasure.stockingItemDescription %>
                        </div>
                    </div>
                    <br>

                    <div class="edit" style="display: none">
                        <a href="javascript:void(0)" class="btn-floating btn-large waves-effect waves-light ap-dark-blue edit-units-of-measure-trigger"
                            data-id="<%= unitsOfMeasure.id %>">
                            <i class="material-icons">edit</i>
                        </a>
                    </div>
                </div>
            </div>
        <% }); %>
    </div>
</div>
        
<div id="units-of-measure-form-modal" class="modal modal-fixed-footer units-of-measure-form-modal" style="max-height: 100%">
    
</div>

<a href="javascript:void(0)" id="add-units-of-measure-button" class="btn-floating btn-large waves-effect waves-light ap-blue z-depth-4 floating-action-button-fixed " >
    <i class="material-icons">add</i>
</a>