<div id="flex-groups-wrapper" <%= (App.rtl ? 'style="direction:rtl"' : '') %>>
    <div class="row">
        <% _.each(flexGroups, function(flexGroups) { %>
            <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="<%= flexGroups.id %>" data-selected='0'>
                    <div>
                        <div class="row description truncate" style="color: #3970b7;">
                            <% if (flexGroups.itemDescription == "FlexGroup Item not in effect") { %>
                                {Literal}Item Not In Effect{/Literal}
                            <% } %>
                            <% if (flexGroups.itemDescription != "FlexGroup Item not in effect") { %>
                                <%= flexGroups.itemDescription %>
                            <% } %>
                        </div>
                        <div class="row price truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;">
                            {Literal}Price{/Literal}:
                            <%= flexGroups.itemPrice%>
                        </div>
                        <br>
                        <div class="row price truncate" style="font-size: .95rem; margin-bottom: 0px; color: gray;">
                            {Literal}Flex Items{/Literal}: 
                            <%= flexGroups.detailItems.length %>
                        </div>
                    </div>
                    <div class="edit" style="display: none">
                            <a href="javascript:void(0)" class="btn-floating btn-large waves-effect waves-light ap-dark-blue edit-flex-groups-trigger"
                            data-id="<%= flexGroups.id %>">
                            <i class="material-icons">edit</i>
                        </a>
                    </div>
                </div>
            </div>
        <% }); %>
    </div>
</div>

<div id="flex-groups-form-modal" class="modal modal-fixed-footer flex-groups-form-modal" style="max-height: 100%">
    
</div>

<a href="javascript:void(0)" id="add-flex-groups-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>