Update cookcli-recipe-strategy.js

This commit is contained in:
TheThomaas 2026-09-16 16:54:01 +02:00
parent bf92a3ceff
commit ca2b6b50fc

View file

@ -418,22 +418,37 @@ class CookcliStrategyEditor extends HTMLElement {
// Remplacer temporairement ha-textfield par des inputs natifs // Remplacer temporairement ha-textfield par des inputs natifs
this.innerHTML = ` this.innerHTML = `
<div style="padding: 16px; display: flex; flex-direction: column; gap: 16px;"> <div style="padding: 16px; display: flex; flex-direction: column; gap: 16px;">
<label> <ha-textfield
Titre du dashboard label="Titre du dashboard"
<input type="text" value="${c.title || ""}" data-config-key="title" style="width: 100%;" /> value="${c.title || ""}"
</label> data-config-key="title"
<label> helper="Titre affiché dans l'onglet"
Entité minuteur style="width: 100%;"
<input type="text" value="${c.timer_entity || ""}" data-config-key="timer_entity" style="width: 100%;" /> ></ha-textfield>
</label>
<label> <ha-textfield
Entité étape label="Entité minuteur"
<input type="text" value="${c.step_entity || ""}" data-config-key="step_entity" style="width: 100%;" /> value="${c.timer_entity || ""}"
</label> data-config-key="timer_entity"
<label> helper="Ex: timer.recette_en_cours"
Entry ID (optionnel) style="width: 100%;"
<input type="text" value="${c.entry_id || ""}" data-config-key="entry_id" style="width: 100%;" /> ></ha-textfield>
</label>
<ha-textfield
label="Entité étape"
value="${c.step_entity || ""}"
data-config-key="step_entity"
helper="Ex: input_number.recette_etape"
style="width: 100%;"
></ha-textfield>
<ha-textfield
label="Entry ID (optionnel)"
value="${c.entry_id || ""}"
data-config-key="entry_id"
helper="Laisser vide si un seul serveur CookCLI"
style="width: 100%;"
></ha-textfield>
</div> </div>
`; `;