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

    This is the view to search information about tv series by title.
    This view shows a form with an input element to insert a pattern
    or a tv serie title 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 título</h1><hr>
        <form data-ng-submit="listTVSeriesByTitle()" novalidate>
            <div>
                <label for="patternForTVSerieTitle">Título de serie:</label>
                <div>
                    <input type="text" data-ng-model="title"
                           id="patternForTVSerieTitle" placeholder="Título de serie"
                           required>
                </div>
            </div><br>
            <div>
                <input type="submit" value="Buscar series">
            </div><hr>
            <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>