Welcome page merged and adapted
continuous-integration/drone/push Build is passing Details

pull/21/head^2^2
DahmaneYanis 1 year ago
commit 3f15e85a72

@ -40,7 +40,7 @@ class TacticInfoGateway {
*/
public function getLast(int $nb) : ?array {
$res = $this->con->fetch(
"SELECT * FROM TacticInfo ORDER BY creation_date DESC LIMIT :nb ",
"SELECT * FROM Tactic ORDER BY creation_date DESC LIMIT :nb ",
[":nb" => [$nb, PDO::PARAM_INT]]
);
if (count($res) == 0) {

@ -73,13 +73,13 @@
<h2> Mes strategies </h2>
<button onclick="location.pathname='/tactic/create'"> Créer une nouvelle tactique </button>
<button onclick="location.pathname='/user/create'"> Créer une nouvelle tactique </button>
{% if recentTactic != null %}
{% for tactic in recentTactic %}
<div onclick="location.pathname=/tactic/edit/{{ strategie.id }}">
<div onclick="location.pathname=/user/edit/{{ strategie.id }}">
<p> {{tactic.id}} - {{tactic.name}} - {{tactic.creation_date}} </p>
<button onclick="location.pathname='/tactic/edit/{{ tactic.id }}'"> Editer la stratégie {{tactic.id}} </button>
<button onclick="location.pathname='/user/edit/{{ tactic.id }}'"> Editer la stratégie {{tactic.id}} </button>
</div>
{% endfor %}
{% else %}

Loading…
Cancel
Save