2020-06-13 03:43:35 +02:00
|
|
|
<div id ="{{widget}}-upload-widget" class="inline-block avatar-icon-logo-settings">
|
|
|
|
{{#if is_editable_by_current_user}}
|
|
|
|
<div id="user-settings-avatar">
|
2020-06-12 16:04:23 +02:00
|
|
|
<div class="settings-page-image-background"></div>
|
2020-06-13 03:43:35 +02:00
|
|
|
<span id="user_avatar_delete_button" class="settings-page-delete-button" aria-label="{{t 'Delete profile picture'}}" role="button" tabindex="0">
|
2020-06-12 16:04:23 +02:00
|
|
|
×
|
|
|
|
</span>
|
|
|
|
<span id="user_avatar_delete" class="settings-page-delete-text" aria-label="{{t 'Delete profile picture'}}" tabindex="0">
|
|
|
|
{{t delete_text }}
|
|
|
|
</span>
|
2020-06-13 03:43:35 +02:00
|
|
|
<span id="user_avatar_upload_button" class="settings-page-upload-text" aria-label="{{t 'Upload new profile picture'}}" role="button" tabindex="0">
|
2020-06-12 16:04:23 +02:00
|
|
|
{{t upload_text }}
|
|
|
|
</span>
|
|
|
|
<span id="avatar-spinner-background" class="upload-spinner-background">
|
|
|
|
<object id="user-avatar-spinner" type="image/svg+xml" data="/static/images/tail-spin.svg"></object>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-06-13 03:43:35 +02:00
|
|
|
{{/if}}
|
2020-06-12 16:04:23 +02:00
|
|
|
<img id="user-avatar-block" src="{{ image }}"/>
|
|
|
|
<input type="file" name="user_avatar_file_input" class="notvisible" id="user_avatar_file_input" value="{{t 'Upload profile picture' }}" />
|
|
|
|
<div id="user_avatar_file_input_error" class="text-error"></div>
|
|
|
|
</div>
|