J’essaie d’ajouter ce champ utilisateur : user-fields/5 dans cette sortie : above-user-summary-stats. Mais il ne se charge pas. Voici le hbs que j’essaie d’utiliser :
{{!-- Affiche et modifie un champ utilisateur personnalisé (par exemple, « note de profil ») pour user_field_5 --}}
{{#if this.fieldValue}}
<div>
<strong>Note de profil :</strong> {{this.fieldValue}}
</div>
{{else}}
{{#if this.canEdit}}
<div class="profile-note-display empty">
<em>Aucune note de profil définie</em>
</div>
{{/if}}
{{/if}}
{{#if this.canEdit}}
{{#unless this.editing}}
<button class="btn btn-primary btn-small" {{on "click" this.startEdit}}>
{{#if this.fieldValue}}Modifier{{else}}Ajouter{{/if}} la note de profil
</button>
{{/unless}}
{{/if}}
{{#if this.editing}}
<form {{on "submit" this.save}}>
<textarea
rows="4"
style="width:100%;"
value={{this.editValue}}
{{on "input" this.updateEdit}}
autofocus
></textarea>
<br>
<button type="submit" class="btn btn-primary btn-small">Enregistrer</button>
<button type="button" class="btn btn-conditional btn-small" {{on "click" this.cancelEdit}}>Annuler</button>
</form>
{{/if}}
Quel pourrait être le problème ?