Skip to content

Commit 8a3e8a2

Browse files
committed
chngt tests
1 parent 34824d7 commit 8a3e8a2

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

migrations/Version20240203162504.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,29 @@
77
use Doctrine\DBAL\Schema\Schema;
88
use Doctrine\Migrations\AbstractMigration;
99

10+
/**
11+
* Auto-generated Migration: Please modify to your needs!
12+
*/
1013
final class Version20240203162504 extends AbstractMigration
1114
{
1215
public function getDescription(): string
1316
{
1417
return '';
1518
}
1619

20+
1721
public function up(Schema $schema): void
1822
{
23+
// this up() migration is auto-generated, please modify it to your needs
1924
$this->addSql('CREATE TABLE article (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, category_id INTEGER NOT NULL, title VARCHAR(255) NOT NULL, content CLOB NOT NULL, CONSTRAINT FK_23A0E6612469DE2 FOREIGN KEY (category_id) REFERENCES category (id) NOT DEFERRABLE INITIALLY IMMEDIATE)');
2025
$this->addSql('CREATE INDEX IDX_23A0E6612469DE2 ON article (category_id)');
2126
$this->addSql('CREATE TABLE category (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255) NOT NULL)');
2227
}
2328

29+
2430
public function down(Schema $schema): void
25-
{
31+
{
32+
// this down() migration is auto-generated, please modify it to your needs
2633
$this->addSql('DROP TABLE article');
2734
$this->addSql('DROP TABLE category');
2835
}

templates/article_search/index.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{% endfor %}
2929
</div>
3030
{% else %}
31-
<h2 class="mt-6">Aucun résultats : </h2>
31+
<h2 class="mt-6">Aucun résultats</h2>
3232
{% endif %}
3333
</div>
3434
</div>

templates/category/index.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
</table>
3434

3535

36-
<a class="btn btn-outline-primary btn-lg" href="{{ path('category_new') }}">Create new article</a>
36+
<a class="btn btn-outline-primary btn-lg" href="{{ path('category_new') }}">Create new category</a>
3737
{% endblock %}

templates/menu/index.html.twig

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{# menu/index.html.twig #}
22

3-
<nav>
4-
<ul class="menu-liste">
5-
<li class="menu-liste-items btn"><a href="{{ path('article_index') }}">Articles</a></li>
6-
<li class="menu-liste-items btn"><a href="{{ path('category_index') }}">Categories</a></li>
7-
<li class="menu-liste-items btn"><a href="{{ path('article_search') }}">Rechercher un article</a></li>
8-
</ul>
3+
<header>
4+
<nav>
5+
<ul class="menu-liste">
6+
<li class="menu-liste-items btn"><a href="{{ path('article_index') }}">Articles</a></li>
7+
<li class="menu-liste-items btn"><a href="{{ path('category_index') }}">Categories</a></li>
8+
<li class="menu-liste-items btn"><a href="{{ path('article_search') }}">Rechercher un article</a></li>
9+
</ul>
10+
</nav>
911
<button class="btn btn-dark theme-switch" id="themeToggleBtn">Mode sombre</button>
10-
</nav>
12+
</header>

0 commit comments

Comments
 (0)