50 lines
1.1 KiB
Handlebars
50 lines
1.1 KiB
Handlebars
<div class="header">
|
|
<header class="sheet-header">
|
|
<img
|
|
class="item-sheet-img"
|
|
src="{{item.img}}"
|
|
data-action="editImage"
|
|
title="{{item.name}}"
|
|
/>
|
|
<div class="header-fields">
|
|
<h1 class="charname">
|
|
<input
|
|
name="name"
|
|
type="text"
|
|
value="{{item.name}}"
|
|
placeholder="Name"
|
|
/>
|
|
</h1>
|
|
</div>
|
|
<div class="header-actions">
|
|
{{#if isEditMode}}
|
|
<button
|
|
type="button"
|
|
data-action="toggleSheet"
|
|
class="chat-card-button"
|
|
>
|
|
<i class="fas fa-eye"></i>
|
|
Mode Lecture
|
|
</button>
|
|
{{else}}
|
|
<button
|
|
type="button"
|
|
data-action="toggleSheet"
|
|
class="chat-card-button"
|
|
>
|
|
<i class="fas fa-edit"></i>
|
|
Mode Édition
|
|
</button>
|
|
{{/if}}
|
|
<button
|
|
type="button"
|
|
data-action="postItem"
|
|
class="chat-card-button"
|
|
title="Poster dans le chat"
|
|
>
|
|
<i class="fas fa-comment"></i>
|
|
Poster
|
|
</button>
|
|
</div>
|
|
</header>
|
|
</div> |