<!--
    AngularJS template. Created by fran lopez on 14/12/15.

    This is the view to show a list of film reviews as a result of a
    search using one route parameter:

        -> filmId: Is a film identifier, used to find all film reviews
        associated to a film identified by this identifier.
-->

    <section data-ng-controller="FilmReviewsController"
             data-ng-init="find()">
        <h1>Listado de críticas de una película</h1><hr>
        <ul>
            <li data-ng-repeat="filmReview in filmReviews">
                <label class="labelWithReviewRating">
                    Valoración: </label>
                <label class="labelWithReviewRating labelWithRating"
                       data-ng-bind="filmReview.rating"></label><br><br>
                <label class="labelWithReview"
                       data-ng-bind="filmReview.review"></label>
                <br><br><br><br>
            </li>
        </ul>
        <label id="errorLabel" data-ng-hide="!filmReviews
        || filmReviews.length">No existen críticas para esta película</label>
        <hr><br>
        <a data-ng-href="#!/films/{{filmId}}">
            Volver a los detalles de la película</a>
    </section>