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

    This is the view to search information about tv series by director.
    This view shows a form with an input element to insert a pattern or
    a name of tv serie director, saved in database.

    If there are tv series matched to inserted pattern, these tv series
    will be listed in another view, where the user can access to view
    details of every tv serie.
-->

    <section data-ng-controller="TVSeriesController">
        <h1>Búsqueda de series por director</h1><hr>
        <form data-ng-submit="listTVSeriesByDirector()" novalidate>
            <div>
                <label for="patternForTVSerieDirector">Nombre del director:</label>
                <div>
                    <input type="text" data-ng-model="director"
                           id="patternForTVSerieDirector"
                           placeholder="Nombre del director" required>
                </div>
            </div><br>
            <div>
                <input type="submit" value="Buscar series">
            </div><hr>
            <br>
            <div data-ng-show="error">
                <strong data-ng-bind="error"></strong>
            </div>
            <br>
            <a data-ng-href="/#!/tvSeries">Volver al menú anterior</a>
        </form>
    </section>