Browse Source

design & navigation

master
art.dambrine 4 years ago
parent
commit
502d3a194f
  1. 4997
      public/css/bootstrap-grid.css
  2. 1
      public/css/bootstrap-grid.css.map
  3. 3
      public/css/bootstrap-grid.css.map:Zone.Identifier
  4. 3
      public/css/bootstrap-grid.css:Zone.Identifier
  5. 7
      public/css/bootstrap-grid.min.css
  6. 1
      public/css/bootstrap-grid.min.css.map
  7. 3
      public/css/bootstrap-grid.min.css.map:Zone.Identifier
  8. 3
      public/css/bootstrap-grid.min.css:Zone.Identifier
  9. 4996
      public/css/bootstrap-grid.rtl.css
  10. 1
      public/css/bootstrap-grid.rtl.css.map
  11. 3
      public/css/bootstrap-grid.rtl.css.map:Zone.Identifier
  12. 3
      public/css/bootstrap-grid.rtl.css:Zone.Identifier
  13. 7
      public/css/bootstrap-grid.rtl.min.css
  14. 1
      public/css/bootstrap-grid.rtl.min.css.map
  15. 3
      public/css/bootstrap-grid.rtl.min.css.map:Zone.Identifier
  16. 3
      public/css/bootstrap-grid.rtl.min.css:Zone.Identifier
  17. 426
      public/css/bootstrap-reboot.css
  18. 1
      public/css/bootstrap-reboot.css.map
  19. 3
      public/css/bootstrap-reboot.css.map:Zone.Identifier
  20. 3
      public/css/bootstrap-reboot.css:Zone.Identifier
  21. 8
      public/css/bootstrap-reboot.min.css
  22. 1
      public/css/bootstrap-reboot.min.css.map
  23. 3
      public/css/bootstrap-reboot.min.css.map:Zone.Identifier
  24. 3
      public/css/bootstrap-reboot.min.css:Zone.Identifier
  25. 423
      public/css/bootstrap-reboot.rtl.css
  26. 1
      public/css/bootstrap-reboot.rtl.css.map
  27. 3
      public/css/bootstrap-reboot.rtl.css.map:Zone.Identifier
  28. 3
      public/css/bootstrap-reboot.rtl.css:Zone.Identifier
  29. 8
      public/css/bootstrap-reboot.rtl.min.css
  30. 1
      public/css/bootstrap-reboot.rtl.min.css.map
  31. 3
      public/css/bootstrap-reboot.rtl.min.css.map:Zone.Identifier
  32. 3
      public/css/bootstrap-reboot.rtl.min.css:Zone.Identifier
  33. 4752
      public/css/bootstrap-utilities.css
  34. 1
      public/css/bootstrap-utilities.css.map
  35. 3
      public/css/bootstrap-utilities.css.map:Zone.Identifier
  36. 3
      public/css/bootstrap-utilities.css:Zone.Identifier
  37. 7
      public/css/bootstrap-utilities.min.css
  38. 1
      public/css/bootstrap-utilities.min.css.map
  39. 3
      public/css/bootstrap-utilities.min.css.map:Zone.Identifier
  40. 3
      public/css/bootstrap-utilities.min.css:Zone.Identifier
  41. 4743
      public/css/bootstrap-utilities.rtl.css
  42. 1
      public/css/bootstrap-utilities.rtl.css.map
  43. 3
      public/css/bootstrap-utilities.rtl.css.map:Zone.Identifier
  44. 3
      public/css/bootstrap-utilities.rtl.css:Zone.Identifier
  45. 7
      public/css/bootstrap-utilities.rtl.min.css
  46. 1
      public/css/bootstrap-utilities.rtl.min.css.map
  47. 3
      public/css/bootstrap-utilities.rtl.min.css.map:Zone.Identifier
  48. 3
      public/css/bootstrap-utilities.rtl.min.css:Zone.Identifier
  49. 10819
      public/css/bootstrap.css
  50. 1
      public/css/bootstrap.css.map
  51. 3
      public/css/bootstrap.css.map:Zone.Identifier
  52. 3
      public/css/bootstrap.css:Zone.Identifier
  53. 7
      public/css/bootstrap.min.css
  54. 1
      public/css/bootstrap.min.css.map
  55. 3
      public/css/bootstrap.min.css.map:Zone.Identifier
  56. 3
      public/css/bootstrap.min.css:Zone.Identifier
  57. 10795
      public/css/bootstrap.rtl.css
  58. 1
      public/css/bootstrap.rtl.css.map
  59. 3
      public/css/bootstrap.rtl.css.map:Zone.Identifier
  60. 3
      public/css/bootstrap.rtl.css:Zone.Identifier
  61. 7
      public/css/bootstrap.rtl.min.css
  62. 1
      public/css/bootstrap.rtl.min.css.map
  63. 3
      public/css/bootstrap.rtl.min.css.map:Zone.Identifier
  64. 3
      public/css/bootstrap.rtl.min.css:Zone.Identifier
  65. 6714
      public/js/bootstrap.bundle.js
  66. 1
      public/js/bootstrap.bundle.js.map
  67. 3
      public/js/bootstrap.bundle.js.map:Zone.Identifier
  68. 3
      public/js/bootstrap.bundle.js:Zone.Identifier
  69. 7
      public/js/bootstrap.bundle.min.js
  70. 1
      public/js/bootstrap.bundle.min.js.map
  71. 3
      public/js/bootstrap.bundle.min.js.map:Zone.Identifier
  72. 3
      public/js/bootstrap.bundle.min.js:Zone.Identifier
  73. 4944
      public/js/bootstrap.esm.js
  74. 1
      public/js/bootstrap.esm.js.map
  75. 3
      public/js/bootstrap.esm.js.map:Zone.Identifier
  76. 3
      public/js/bootstrap.esm.js:Zone.Identifier
  77. 7
      public/js/bootstrap.esm.min.js
  78. 1
      public/js/bootstrap.esm.min.js.map
  79. 3
      public/js/bootstrap.esm.min.js.map:Zone.Identifier
  80. 3
      public/js/bootstrap.esm.min.js:Zone.Identifier
  81. 4993
      public/js/bootstrap.js
  82. 1
      public/js/bootstrap.js.map
  83. 3
      public/js/bootstrap.js.map:Zone.Identifier
  84. 3
      public/js/bootstrap.js:Zone.Identifier
  85. 7
      public/js/bootstrap.min.js
  86. 1
      public/js/bootstrap.min.js.map
  87. 3
      public/js/bootstrap.min.js.map:Zone.Identifier
  88. 3
      public/js/bootstrap.min.js:Zone.Identifier
  89. 4
      public/js/customButton.js
  90. 19
      src/Controller/HomeController.php
  91. 2
      src/Repository/PokemonRepository.php
  92. 27
      templates/base.html.twig
  93. 2
      templates/pokemon/_delete_form.html.twig
  94. 2
      templates/pokemon/_form.html.twig
  95. 2
      templates/pokemon/edit.html.twig
  96. 76
      templates/pokemon/index.html.twig
  97. 2
      templates/pokemon/new.html.twig
  98. 4
      templates/pokemon/show.html.twig

4997
public/css/bootstrap-grid.css

File diff suppressed because it is too large

1
public/css/bootstrap-grid.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-grid.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-grid.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/css/bootstrap-grid.min.css

File diff suppressed because one or more lines are too long

1
public/css/bootstrap-grid.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-grid.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-grid.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

4996
public/css/bootstrap-grid.rtl.css

File diff suppressed because it is too large

1
public/css/bootstrap-grid.rtl.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-grid.rtl.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-grid.rtl.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/css/bootstrap-grid.rtl.min.css

File diff suppressed because one or more lines are too long

1
public/css/bootstrap-grid.rtl.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-grid.rtl.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-grid.rtl.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

426
public/css/bootstrap-reboot.css

@ -0,0 +1,426 @@
/*!
* Bootstrap Reboot v5.0.0-beta3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
:root {
scroll-behavior: smooth;
}
}
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
background-color: #fff;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
hr {
margin: 1rem 0;
color: inherit;
background-color: currentColor;
border: 0;
opacity: 0.25;
}
hr:not([size]) {
height: 1px;
}
h6, h5, h4, h3, h2, h1 {
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
}
h1 {
font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
h1 {
font-size: 2.5rem;
}
}
h2 {
font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
h2 {
font-size: 2rem;
}
}
h3 {
font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
h3 {
font-size: 1.75rem;
}
}
h4 {
font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
h4 {
font-size: 1.5rem;
}
}
h5 {
font-size: 1.25rem;
}
h6 {
font-size: 1rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-bs-original-title] {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul {
padding-left: 2rem;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: 0.5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 0.875em;
}
mark {
padding: 0.2em;
background-color: #fcf8e3;
}
sub,
sup {
position: relative;
font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
a {
color: #0d6efd;
text-decoration: underline;
}
a:hover {
color: #0a58ca;
}
a:not([href]):not([class]), a:not([href]):not([class]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em;
direction: ltr /* rtl:ignore */;
unicode-bidi: bidi-override;
}
pre {
display: block;
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
font-size: 0.875em;
}
pre code {
font-size: inherit;
color: inherit;
word-break: normal;
}
code {
font-size: 0.875em;
color: #d63384;
word-wrap: break-word;
}
a > code {
color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;
font-size: 0.875em;
color: #fff;
background-color: #212529;
border-radius: 0.2rem;
}
kbd kbd {
padding: 0;
font-size: 1em;
font-weight: 700;
}
figure {
margin: 0 0 1rem;
}
img,
svg {
vertical-align: middle;
}
table {
caption-side: bottom;
border-collapse: collapse;
}
caption {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
color: #6c757d;
text-align: left;
}
th {
text-align: inherit;
text-align: -webkit-match-parent;
}
thead,
tbody,
tfoot,
tr,
td,
th {
border-color: inherit;
border-style: solid;
border-width: 0;
}
label {
display: inline-block;
}
button {
border-radius: 0;
}
button:focus:not(:focus-visible) {
outline: 0;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
select {
text-transform: none;
}
[role=button] {
cursor: pointer;
}
select {
word-wrap: normal;
}
select:disabled {
opacity: 1;
}
[list]::-webkit-calendar-picker-indicator {
display: none;
}
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
cursor: pointer;
}
::-moz-focus-inner {
padding: 0;
border-style: none;
}
textarea {
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
float: left;
width: 100%;
padding: 0;
margin-bottom: 0.5rem;
font-size: calc(1.275rem + 0.3vw);
line-height: inherit;
}
@media (min-width: 1200px) {
legend {
font-size: 1.5rem;
}
}
legend + * {
clear: left;
}
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
padding: 0;
}
::-webkit-inner-spin-button {
height: auto;
}
[type=search] {
outline-offset: -2px;
-webkit-appearance: textfield;
}
/* rtl:raw:
[type="tel"],
[type="url"],
[type="email"],
[type="number"] {
direction: ltr;
}
*/
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-color-swatch-wrapper {
padding: 0;
}
::file-selector-button {
font: inherit;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
iframe {
border: 0;
}
summary {
display: list-item;
cursor: pointer;
}
progress {
vertical-align: baseline;
}
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */

1
public/css/bootstrap-reboot.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-reboot.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-reboot.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

8
public/css/bootstrap-reboot.min.css

@ -0,0 +1,8 @@
/*!
* Bootstrap Reboot v5.0.0-beta3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
/*# sourceMappingURL=bootstrap-reboot.min.css.map */

1
public/css/bootstrap-reboot.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-reboot.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-reboot.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

423
public/css/bootstrap-reboot.rtl.css

@ -0,0 +1,423 @@
/*!
* Bootstrap Reboot v5.0.0-beta3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
:root {
scroll-behavior: smooth;
}
}
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
background-color: #fff;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
hr {
margin: 1rem 0;
color: inherit;
background-color: currentColor;
border: 0;
opacity: 0.25;
}
hr:not([size]) {
height: 1px;
}
h6, h5, h4, h3, h2, h1 {
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
}
h1 {
font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
h1 {
font-size: 2.5rem;
}
}
h2 {
font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
h2 {
font-size: 2rem;
}
}
h3 {
font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
h3 {
font-size: 1.75rem;
}
}
h4 {
font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
h4 {
font-size: 1.5rem;
}
}
h5 {
font-size: 1.25rem;
}
h6 {
font-size: 1rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-bs-original-title] {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul {
padding-right: 2rem;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: 0.5rem;
margin-right: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 0.875em;
}
mark {
padding: 0.2em;
background-color: #fcf8e3;
}
sub,
sup {
position: relative;
font-size: 0.75em;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
a {
color: #0d6efd;
text-decoration: underline;
}
a:hover {
color: #0a58ca;
}
a:not([href]):not([class]), a:not([href]):not([class]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em;
direction: ltr ;
unicode-bidi: bidi-override;
}
pre {
display: block;
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
font-size: 0.875em;
}
pre code {
font-size: inherit;
color: inherit;
word-break: normal;
}
code {
font-size: 0.875em;
color: #d63384;
word-wrap: break-word;
}
a > code {
color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;
font-size: 0.875em;
color: #fff;
background-color: #212529;
border-radius: 0.2rem;
}
kbd kbd {
padding: 0;
font-size: 1em;
font-weight: 700;
}
figure {
margin: 0 0 1rem;
}
img,
svg {
vertical-align: middle;
}
table {
caption-side: bottom;
border-collapse: collapse;
}
caption {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
color: #6c757d;
text-align: right;
}
th {
text-align: inherit;
text-align: -webkit-match-parent;
}
thead,
tbody,
tfoot,
tr,
td,
th {
border-color: inherit;
border-style: solid;
border-width: 0;
}
label {
display: inline-block;
}
button {
border-radius: 0;
}
button:focus:not(:focus-visible) {
outline: 0;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
select {
text-transform: none;
}
[role=button] {
cursor: pointer;
}
select {
word-wrap: normal;
}
select:disabled {
opacity: 1;
}
[list]::-webkit-calendar-picker-indicator {
display: none;
}
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
cursor: pointer;
}
::-moz-focus-inner {
padding: 0;
border-style: none;
}
textarea {
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
float: right;
width: 100%;
padding: 0;
margin-bottom: 0.5rem;
font-size: calc(1.275rem + 0.3vw);
line-height: inherit;
}
@media (min-width: 1200px) {
legend {
font-size: 1.5rem;
}
}
legend + * {
clear: right;
}
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
padding: 0;
}
::-webkit-inner-spin-button {
height: auto;
}
[type=search] {
outline-offset: -2px;
-webkit-appearance: textfield;
}
[type="tel"],
[type="url"],
[type="email"],
[type="number"] {
direction: ltr;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-color-swatch-wrapper {
padding: 0;
}
::file-selector-button {
font: inherit;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
iframe {
border: 0;
}
summary {
display: list-item;
cursor: pointer;
}
progress {
vertical-align: baseline;
}
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.rtl.css.map */

1
public/css/bootstrap-reboot.rtl.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-reboot.rtl.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-reboot.rtl.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

8
public/css/bootstrap-reboot.rtl.min.css

@ -0,0 +1,8 @@
/*!
* Bootstrap Reboot v5.0.0-beta3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-right:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:right}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
/*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */

1
public/css/bootstrap-reboot.rtl.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-reboot.rtl.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-reboot.rtl.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

4752
public/css/bootstrap-utilities.css

File diff suppressed because it is too large

1
public/css/bootstrap-utilities.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-utilities.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-utilities.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/css/bootstrap-utilities.min.css

File diff suppressed because one or more lines are too long

1
public/css/bootstrap-utilities.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-utilities.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-utilities.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

4743
public/css/bootstrap-utilities.rtl.css

File diff suppressed because it is too large

1
public/css/bootstrap-utilities.rtl.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-utilities.rtl.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-utilities.rtl.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/css/bootstrap-utilities.rtl.min.css

File diff suppressed because one or more lines are too long

1
public/css/bootstrap-utilities.rtl.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap-utilities.rtl.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap-utilities.rtl.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

10819
public/css/bootstrap.css

File diff suppressed because it is too large

1
public/css/bootstrap.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/css/bootstrap.min.css

File diff suppressed because one or more lines are too long

1
public/css/bootstrap.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

10795
public/css/bootstrap.rtl.css

File diff suppressed because it is too large

1
public/css/bootstrap.rtl.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap.rtl.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap.rtl.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/css/bootstrap.rtl.min.css

File diff suppressed because one or more lines are too long

1
public/css/bootstrap.rtl.min.css.map

File diff suppressed because one or more lines are too long

3
public/css/bootstrap.rtl.min.css.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/css/bootstrap.rtl.min.css:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

6714
public/js/bootstrap.bundle.js

File diff suppressed because it is too large

1
public/js/bootstrap.bundle.js.map

File diff suppressed because one or more lines are too long

3
public/js/bootstrap.bundle.js.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/js/bootstrap.bundle.js:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/js/bootstrap.bundle.min.js

File diff suppressed because one or more lines are too long

1
public/js/bootstrap.bundle.min.js.map

File diff suppressed because one or more lines are too long

3
public/js/bootstrap.bundle.min.js.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/js/bootstrap.bundle.min.js:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

4944
public/js/bootstrap.esm.js

File diff suppressed because it is too large

1
public/js/bootstrap.esm.js.map

File diff suppressed because one or more lines are too long

3
public/js/bootstrap.esm.js.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/js/bootstrap.esm.js:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/js/bootstrap.esm.min.js

File diff suppressed because one or more lines are too long

1
public/js/bootstrap.esm.min.js.map

File diff suppressed because one or more lines are too long

3
public/js/bootstrap.esm.min.js.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/js/bootstrap.esm.min.js:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

4993
public/js/bootstrap.js

File diff suppressed because it is too large

1
public/js/bootstrap.js.map

File diff suppressed because one or more lines are too long

3
public/js/bootstrap.js.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/js/bootstrap.js:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

7
public/js/bootstrap.min.js

File diff suppressed because one or more lines are too long

1
public/js/bootstrap.min.js.map

File diff suppressed because one or more lines are too long

3
public/js/bootstrap.min.js.map:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

3
public/js/bootstrap.min.js:Zone.Identifier

@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=C:\Users\a.dambrine\Downloads\bootstrap-5.0.0-beta3-dist.zip

4
public/js/customButton.js

@ -0,0 +1,4 @@
let myButton = document.getElementById("refreshPokemonListBtn")
myButton.addEventListener("click", (event)=>{
event.preventDefault()
})

19
src/Controller/HomeController.php

@ -0,0 +1,19 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
/**
* @Route("/", name="home")
*/
public function index(): Response
{
// redirects to the "homepage" route
return $this->redirectToRoute('pokemon_index');
}
}

2
src/Repository/PokemonRepository.php

@ -33,7 +33,7 @@ class PokemonRepository extends ServiceEntityRepository
->leftJoin('p.type1', 'typ')
->leftJoin('p.generation', 'gen')
->setParameter('searchTerm', '%' . $searchTerm . '%')
->orderBy('p.id', 'ASC')
->orderBy('p.numero', 'ASC')
->getQuery()
->getResult();
}

27
templates/base.html.twig

@ -7,13 +7,34 @@
and uncomment the following Encore helpers to start using Symfony UX #}
{% block stylesheets %}
{#{{ encore_entry_link_tags('app') }}#}
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
{% endblock %}
{% block javascripts %}
{#{{ encore_entry_script_tags('app') }}#}
{% endblock %}
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href={{ path('pokemon_index') }}>Pokedex</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link active" aria-current="page" href={{ path('pokemon_index') }}>Home</a>
</div>
</div>
</div>
</nav>
<div class="container">
{% block body %}{% endblock %}
</div>
{% block javascripts %}
{#{{ encore_entry_script_tags('app') }}#}
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
<script src="https://kit.fontawesome.com/410cd22f41.js" crossorigin="anonymous"></script>
{% endblock %}
</body>
</html>

2
templates/pokemon/_delete_form.html.twig

@ -1,4 +1,4 @@
<form method="post" action="{{ path('pokemon_delete', {'id': pokemon.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ pokemon.id) }}">
<button class="btn">Delete</button>
<button class="btn"><button class="btn btn-danger">Delete</button></button>
</form>

2
templates/pokemon/_form.html.twig

@ -1,4 +1,4 @@
{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn">{{ button_label|default('Save') }}</button>
<button class="btn btn-primary">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}

2
templates/pokemon/edit.html.twig

@ -7,7 +7,7 @@
{{ include('pokemon/_form.html.twig', {'button_label': 'Update'}) }}
<a href="{{ path('pokemon_index') }}">back to list</a>
<a href="{{ path('pokemon_index') }}"> <button class="btn btn-secondary">back to list</button></a>
{{ include('pokemon/_delete_form.html.twig') }}
{% endblock %}

76
templates/pokemon/index.html.twig

@ -2,39 +2,66 @@
{% block title %}Pokemon index{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
<style>
.col-actions {
text-align: center;
}
</style>
{% endblock %}
{% block body %}
<h1>Pokemon index</h1>
<table class="table">
<form action="/pokemon" method="get">
<div class="row">
<div class="col-md-7">
<input type="text" class="form-control" id="exampleInputkeywordSearch1" name="keyword" aria-describedby="keywordSearchHelp" placeholder="Saisir un nom de pokemon, type, generation...">
</div>
<div class="col-auto">
<button class="btn btn-primary">Rechercher <i class="fas fa-search"></i></button>
<a href={{ path('pokemon_index') }}><button type="button" id="refreshPokemonListBtn" class="btn btn-secondary">Annuler recherche <i class="far fa-times-circle"></i></button></a>
</div>
<div class="col-auto">
<a href="{{ path('pokemon_new') }}"><button type="button" class="btn btn-success">Create new <i class="far fa-plus-square"></i></button></a>
</div>
</div>
</form>
<table class="table table-striped">
<thead>
<tr>
<th>Numero</th>
<th>Nom</th>
<th>Type 1</th>
<th>Type 2</th>
<th>Generation</th>
<th>Vie</th>
<th>Attaque</th>
<th>Defense</th>
<th>Legendaire</th>
<th>actions</th>
<th scope="col">Numero</th>
<th scope="col">Nom</th>
<th scope="col">Type 1</th>
<th scope="col">Type 2</th>
<th scope="col">Generation</th>
<th scope="col">Vie</th>
<th scope="col">Attaque</th>
<th scope="col">Defense</th>
<th scope="col">Legendaire</th>
<th scope="col" class="col-actions">actions</th>
</tr>
</thead>
<tbody>
{% for pokemon in pokemon %}
<tr>
<td>{{ pokemon.numero }}</td>
<td>{{ pokemon.nom }}</td>
<td>{{ pokemon.type1.name }}</td>
<td>{% if pokemon.type2 %} {{ pokemon.type2.name }} {% endif %}</td>
<td>{{ pokemon.generation.name }}</td>
<td>{{ pokemon.vie }}</td>
<td>{{ pokemon.attaque }}</td>
<td>{{ pokemon.defense }}</td>
<td>{{ pokemon.legendaire ? 'Yes' : 'No' }}</td>
<td>
<a href="{{ path('pokemon_show', {'id': pokemon.id}) }}">show</a>
<a href="{{ path('pokemon_edit', {'id': pokemon.id}) }}">edit</a>
<td scope="row">{{ pokemon.numero }}</td>
<td scope="row">{{ pokemon.nom }}</td>
<td scope="row">{{ pokemon.type1.name }}</td>
<td scope="row">{% if pokemon.type2 %} {{ pokemon.type2.name }} {% endif %}</td>
<td scope="row">{{ pokemon.generation.name }}</td>
<td scope="row">{{ pokemon.vie }}</td>
<td scope="row">{{ pokemon.attaque }}</td>
<td scope="row">{{ pokemon.defense }}</td>
<td scope="row">{{ pokemon.legendaire ? 'Yes' : 'No' }}</td>
<td scope="row" class="col-actions">
<a href="{{ path('pokemon_show', {'id': pokemon.id}) }}"> <button class="btn btn-secondary">show <i class="far fa-eye"></i></button></a>
<a href="{{ path('pokemon_edit', {'id': pokemon.id}) }}"> <button class="btn btn-primary">edit <i class="far fa-edit"></i></button></a>
</td>
</tr>
{% else %}
@ -45,5 +72,6 @@
</tbody>
</table>
<a href="{{ path('pokemon_new') }}">Create new</a>
<srcipt type="text/javascript" src="{{ asset('js/customButton.js') }}"></srcipt>
{% endblock %}

2
templates/pokemon/new.html.twig

@ -7,5 +7,5 @@
{{ include('pokemon/_form.html.twig') }}
<a href="{{ path('pokemon_index') }}">back to list</a>
<a href="{{ path('pokemon_index') }}"> <button class="btn btn-secondary">back to list</button></a>
{% endblock %}

4
templates/pokemon/show.html.twig

@ -53,9 +53,9 @@
</tbody>
</table>
<a href="{{ path('pokemon_index') }}">back to list</a>
<a href="{{ path('pokemon_index') }}"> <button class="btn btn-secondary">back to list</button></a>
<a href="{{ path('pokemon_edit', {'id': pokemon.id}) }}">edit</a>
<a href="{{ path('pokemon_edit', {'id': pokemon.id}) }}"><button class="btn btn-primary">edit</button></a>
{{ include('pokemon/_delete_form.html.twig') }}
{% endblock %}

Loading…
Cancel
Save