{% extends 'base.html.twig' %}{% block body %}<main id="main"><!-- ======= Breadcrumbs ======= --><section id="breadcrumbs" class="breadcrumbs"><div class="container"><ol><li><a href="{{path('app_home')}}">Startseite</a></li><li><a href="{{path('app_library_overview')}}">Bibliothek</a></li><li><a href="{{path('app_library_pool',{libId: libId})}}">{{libname}}</a></li><li>{{poolname}}</li></ol><h2>{{poolname}}</h2></div></section><!-- End Breadcrumbs -->{% if (pooltype == 0) %}<!-- ======= Our Skills Section ======= --><section id="skills" class="contact"><div class="container"><div class="section-title"><h2>Neue Karte erstellen</h2><p>Erstelle eine neue Karteikarte, welche automatisch im Sammler abgelegt wird.</p></div><div class="row"><div class="col-lg-6"><img src="{{asset('assets/img/about.jpg')}}" class="img-fluid" alt=""></div><div class="col-lg-6">{{ form_start(cardform) }}<div class="form-group mt-3">{{ form_row(cardform.task) }}</div><div class="form-group mt-3">{{ form_row(cardform.solution) }}</div><div class="form-group mt-3">{{ form_row(cardform.classification) }}</div><div class="text-center"><br />{{ form_row(cardform.Erstellen) }}</div>{{ form_end(cardform) }}</div></div></div></section><!-- End Our Skills Section -->{% endif %}<!-- ======= Services Section ======= --><section id="testimonials" class="testimonials"><div class="container"><div class="section-title"><h2>Vorhandene Karten ({{ cardscount }}) lernen</h2></div><div class="row portfolio entry-content">{% if (pooltype == 1 or pooltype == 2 or pooltype == 3) %}{% set i = 0 %}{% for c in cards %}{% if (c.correct == 0) %}{% set i = 1 %}{% endif %}{% endfor %}{% if (i == 0) %}<div class="col-lg-12 d-flex justify-content-center"><ul id="portfolio-flters"><li ><a href="{{path('app_pool2',{libId: libId, poolId: poolId, action: "refresh"})}}" class="buy-btn">Pool aktualisieren</a></li></ul></div>{% endif %}{% endif %}</div><div class="row">{% set a = 0 %}{% set b = 1 %}{% for c in cards %}{% set a = a + 1 %}{% if (c.correct != 0) %}{% set b = b + 1 %}{% endif %}{% endfor %}{% set i = 0 %}{% for c in cards %}{% if (c.correct == 0) %}{% if (action == "learn" and i == 0) or (action == "learnshow" and c.id == cardId) %}<div class="col-lg-4"><div class="testimonial-item mt-4"><h3>({{b}}/{{a}}) {{c.task|raw}}</h3><h4><strong>Einordnung:</strong> <i>{{c.cname}}</i></h4><h4><strong>Letzter Lernstatus:</strong> <i>{% if (c.correct2 == 0) %}n/a{% endif %}{% if (c.correct2 == 1) %}richtig{% endif %}{% if (c.correct2 == 2) %}falsch{% endif %}{% if (c.correct2 == 3) %}verschoben{% endif %}</i></h4>{% if (action == "learnshow") %}<p>{{c.solution|nl2br}}</p>{% endif %}<p> </p>{% if (action == "learn") %}<a href="{{path('app_pool3',{libId: libId, poolId: poolId, action: "learnshow", cardId: c.id})}}"><i class="bi bi-eye-fill"></i></a>{% endif %}{% if (action == "learnshow") %}<a href="{{path('app_pool3',{libId: libId, poolId: poolId, action: "true", cardId: c.id})}}"><i class="bi bi-check-circle-fill"></i></a> <a href="{{path('app_pool3',{libId: libId, poolId: poolId, action: "false", cardId: c.id})}}"><i class="bi bi-x-circle-fill"></i></a>{% endif %}</div></div>{% endif %}{% set i = i + 1 %}{% endif %}{% endfor %}{% for c in cards %}{% if (c.correct != 0) %}<div class="col-lg-4"><div class="testimonial-item mt-4"><h3>{{c.task|raw}}</h3><h4><strong>Einordnung:</strong> <i>{{c.cname}}</i></h4><h4><strong>Letzter Lernstatus:</strong> <i>{% if (c.correct2 == 0) %}n/a{% endif %}{% if (c.correct2 == 1) %}richtig{% endif %}{% if (c.correct2 == 2) %}falsch{% endif %}{% if (c.correct2 == 3) %}verschoben{% endif %}</i></h4><p>{{c.solution|nl2br}}</p><p> </p></div></div>{% endif %}{% endfor %}</div></div></section><!-- End Services Section --></main><!-- End #main -->{% endblock %}