<div id="recipes-form-modal" class="modal modal-fixed-footer" style="max-height: 100%" <%= (App.rtl ? 'style="direction:rtl"' : '') %>></div>
    <div class="modal-content">
        <div id="recipes-form-content">
            <div style="padding-bottom: 50px">
                <h4>{Literal}Item Recipes{/Literal}</h4>
            </div>
            <form>
                <div>
                    <div class="row">
                        <div class="col s12 m6" style="display:none;">
                            <div class="input-field">
                                <input id="id" type="text" value="<%= recipes.id %>" >
                            </div>
                        </div>

                        <div class="col s12 m6">
                            <div class="input-field">
                                <input id="description" type="text" value="<%= recipes.description %>" class="validate" disabled>
                                <label class="active" for="description">{Literal}Item Description{/Literal}</label>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col s12 m12" style="max-height: 400px; overflow: auto">
                        <table class="table highlight" id="itemTable">
                            <thead>
                                <tr>
                                    <th>{Literal}Description{/Literal}</th>
                                    <th>{Literal}Qty{/Literal}</th>
                                    <th></th>
                                </tr>
                            </thead>

                            <tbody>
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <div class="row">
                    <div class="col s12 center">
                        <a href="#select-item-modal" class="waves-effect waves-light ap-blue btn-large modal-trigger select-item ">{Literal}Add Items{/Literal}</a>
                    </div>
                </div>
            </form>
        </div>     
    </div>
</div>

<div class="modal-footer">
    <a href="#delete-recipes-modal" class="waves-effect waves-light btn-flat red-text right modal-trigger delete-button">{Literal}Delete{/Literal}</a>
    <a href="javascript:void(0)" class="waves-effect waves-green btn green left save-button">{Literal}Save{/Literal}</a>
    <a href="javascript:void(0)" class="modal-close waves-effect waves-light left btn-flat">{Literal}Cancel{/Literal}</a>
</div>
    

<div id="delete-recipes-modal" class="modal">
    <div class="modal-content">
        <div style="padding-bottom: 50px;">
            <h6>{Literal}Confirm Deletion{/Literal}</h6>
        </div>
        <p>{Literal}Are you sure that you would like to remove this recipe{/Literal}?</p>
    </div>
    <div class="modal-footer">
        <a href="javascript:void(0)" id="delete-recipes-confirm" class="modal-close waves-effect waves-green btn red left" data-recipes-item-id="<%= recipes.id %>">{Literal}Delete{/Literal}</a>
        <input type="hidden" id="delete-recipes-id" />
        <a href="javascript:void(0)" class="modal-close waves-effect waves-light btn-flat left">{Literal}Cancel{/Literal}</a>
    </div>
</div>

<div id="select-item-modal" class="modal fixed-footer">
    <div class="modal-content">
        <h4>{Literal}Select Item{/Literal}</h4>
        <div class="row" style="padding-top: 50px">
            <div class="col s12 m6 offset-m3">
                <div class="input-field" >
                    <input type="text" id="itemSearch" class="autocomplete">
                    <label for="itemSearch"><i class="material-icons left">filter_list</i>{Literal}Search Item{/Literal}</label>  
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <a href="javascript:void(0)" class="waves-effect waves-light btn-flat cancel-item-trigger left">{Literal}Cancel{/Literal}</a>
        <input type="hidden" id="item-id" />
    </div>
</div>