<template name="projectImagesSelect">
    <div class="col-sm-12">
        <div class="bootcards-cards entity-item project-border">
            <a href="{{pathFor 'projectDetail'}}" class="btn btn-info">
                <h3><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> {{name}} </h3>
            </a>

            <h3>Selected Images</h3>

            <div>
                <div class="col-md-6">
                    {{#each img_ids}}
                        <!--{{this}}-->
                        <div class="col-md-6">
                            <div class="entity-item">
                                {{> projectImagesSelected id=this}}
                            </div>
                        </div>
                    {{/each}}
                </div>

                <div class="col-md-6 array-editor">
                    <h4>Images</h4>
                    {{> imagesArea multi=true}}

                    {{#each all_images_ids}}
                        <!--{{this._id}}-->
                        <div class="col-md-6">
                            <div class="entity-item">
                                {{> projectImagesAll id=this._id}}
                            </div>
                        </div>
                    {{/each}}
                </div>
            </div>
        </div>
    </div>
</template>

<template name="projectImagesAll">
    <div>
        <b>{{_.name}}</b>
        <span class="pull-right">
            <a href="#" name="{{../../_id}}" class="btn btn-success select">
                <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> </a>
        </span>
    </div>
    <div style="text-align: center">
        {{> thumbnail id=_._id }}
    </div>
</template>

<template name="projectImagesSelected">
    <div class="bootcards-cards">
        <b>{{_.name}}</b>
        <span class="pull-right">
            <a href="#" name="{{../../_id}}" class="btn btn-info delete">
                <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span> </a>
        </span>
    </div>
    <div style="text-align: center">
        {{> thumbnail id=_._id }}
    </div>
</template>