mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-13 13:29:23 +00:00
fix crash when image is not defined
This commit is contained in:
@ -72,17 +72,21 @@
|
|||||||
&-edit {
|
&-edit {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
align-items: flex-start;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
>input {
|
> a {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
> input {
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
>p {
|
> p {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
|
@ -31,9 +31,10 @@
|
|||||||
<div class="profile-picture-edit">
|
<div class="profile-picture-edit">
|
||||||
<p>{{ form["profile_pict"].label }}</p>
|
<p>{{ form["profile_pict"].label }}</p>
|
||||||
{{ form["profile_pict"] }}
|
{{ form["profile_pict"] }}
|
||||||
{%- if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) -%}
|
{%- if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) and form.instance.profile_pict.id -%}
|
||||||
<a href="{{ url('core:file_delete', file_id=form.instance.profile_pict.id, popup='') }}">{%- trans
|
<a href="{{ url('core:file_delete', file_id=form.instance.profile_pict.id, popup='') }}">
|
||||||
-%}Delete{%- endtrans -%}</a>
|
{%- trans -%}Delete{%- endtrans -%}
|
||||||
|
</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -50,9 +51,10 @@
|
|||||||
<div class="profile-picture-edit">
|
<div class="profile-picture-edit">
|
||||||
<p>{{ form["avatar_pict"].label }}</p>
|
<p>{{ form["avatar_pict"].label }}</p>
|
||||||
{{ form["avatar_pict"] }}
|
{{ form["avatar_pict"] }}
|
||||||
{%- if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) -%}
|
{%- if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) and form.instance.avatar_pict.id -%}
|
||||||
<a href="{{ url('core:file_delete', file_id=form.instance.avatar_pict.id, popup='') }}">{%- trans
|
<a href="{{ url('core:file_delete', file_id=form.instance.avatar_pict.id, popup='') }}">
|
||||||
-%}Delete{%- endtrans -%}</a>
|
{%- trans -%}Delete{%- endtrans -%}
|
||||||
|
</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -69,10 +71,10 @@
|
|||||||
<div class="profile-picture-edit">
|
<div class="profile-picture-edit">
|
||||||
<p>{{ form["scrub_pict"].label }}</p>
|
<p>{{ form["scrub_pict"].label }}</p>
|
||||||
{{ form["scrub_pict"] }}
|
{{ form["scrub_pict"] }}
|
||||||
{%- if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) -%}
|
{%- if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) and form.instance.scrub_pict.id -%}
|
||||||
<a href="{{ url('core:file_delete', file_id=form.instance.scrub_pict.id, popup='') }}">{%- trans
|
<a href="{{ url('core:file_delete', file_id=form.instance.scrub_pict.id, popup='') }}">
|
||||||
-%}Delete{%-
|
{%- trans -%}Delete{%-endtrans -%}
|
||||||
endtrans -%}</a>
|
</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user