Story 4.2 completed
This commit is contained in:
@@ -47,5 +47,41 @@
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{#if hasPortraitSection}}
|
||||
<section class="player-privacy-panel__section">
|
||||
<h3 class="player-privacy-panel__section-header">{{portraitLabel}}</h3>
|
||||
<p class="player-privacy-panel__section-description">{{portraitDescription}}</p>
|
||||
|
||||
<div class="player-privacy-panel__portrait-container">
|
||||
<div class="player-privacy-panel__portrait-preview">
|
||||
{{#if portraitPreviewURL}}
|
||||
<img src="{{portraitPreviewURL}}" alt="Portrait preview" class="player-privacy-panel__portrait-image" />
|
||||
{{else}}
|
||||
<img src="icons/svg/mystery-man.svg" alt="Portrait preview" class="player-privacy-panel__portrait-image" />
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#unless isReadOnly}}
|
||||
<div class="player-privacy-panel__portrait-actions">
|
||||
<button type="button" class="player-privacy-panel__portrait-choose sp-btn sp-btn--primary">
|
||||
{{chooseImageLabel}}
|
||||
</button>
|
||||
<input
|
||||
type="file"
|
||||
accept=".png,.jpg,.jpeg,.webp,.gif"
|
||||
class="player-privacy-panel__portrait-input"
|
||||
style="display: none;"
|
||||
>
|
||||
{{#if hasCustomPortrait}}
|
||||
<button type="button" class="player-privacy-panel__portrait-remove sp-btn sp-btn--secondary">
|
||||
{{removeImageLabel}}
|
||||
</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</section>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user