{{ define "admin_productAdd" }}


<div class="container pt-lg-5 pb-lg-5">
    <div class="row justify-content-center">
        <div class="col-lg-12">
            <div class="card bg-secondary shadow border-0">
                <div class="card-header bg-white pb-5">
                    <div class="text-muted text-center mb-3"><small>Neue Produkt Hinzufügen in den Kategorie {{ .category.Name }}</small></div>

                </div>
                <div class="card-body px-lg-5 py-lg-5">
                    <!--<div class="text-center text-muted mb-4">
                        <small>Or sign in with credentials</small>
                    </div>-->
                    {{ if .error }}
                    <div class="alert alert-warning">
                        {{ range $i, $msg := .error }}
                        {{ $msg }}<br/>
                        {{ end }}
                    </div>
                    {{ end }}
                    <form role="form" action="/admin/product" method="POST">
                        <input type="hidden" name="categoryID" value="{{ .category.ID }}" />
                        <div class="form-group mb-3">
                            <div class="input-group input-group-alternative">
                                <input class="form-control" name="name" placeholder="Produktname" type="text">
                            </div>
                        </div>
                        <div class="form-group mb-3">
                            <div class="input-group input-group-alternative">
                                <input class="form-control" name="price" placeholder="Produkt Preis Bitte Trenner als Punkt" type="text">
                            </div>
                        </div>

                        <div class="form-group focused">
                            <div class="input-group input-group-alternative">
                                <div class="input-group-prepend">
                                    <span class="input-group-text"><i class="ni ni-lock-circle-open"></i></span>
                                </div>
                                <input class="form-control" name="shortdescription" placeholder="Kurze Beschreibung" type="text">
                            </div>
                        </div>

                        <div class="form-group mb-3">
                            <div class="input-group input-group-alternative">
                                <div class="input-group-prepend">
                                    <span class="input-group-text"><i class="ni ni-paper-diploma"></i></span>
                                </div>
                                <textarea class="form-control" name="description" placeholder="Beschreibung" type="text"></textarea>
                            </div>
                        </div>

                        <div class="text-center">
                            <button type="submit" class="btn btn-primary my-4">Produkt hinzufügen</button>
                        </div>


                    </form>
                </div>
            </div>

        </div>
    </div>
</div>



{{ end }}