{{extend "user_admin_layout.html"}}

{{block menu}}
{{menu('admin')}}
{{end}}

{{block sub_menu}}
{{sub_menu(menu_items, 'user', 'information')}}
{{end}}

{{block content_main}}
{{use "jquery", css_only=True}}
<div class="col">
{{if can_modify:}}
<a href="{{=url_for('plugs.user_admin.views_admin.UserView.edit_image')}}" title="{{=_('Click to change portrait')}}"><img src="{{=image_url}}" class="portrait"/></a>
{{else:}}
<img src="{{=image_url}}" class="portrait"/>
{{pass}}
</div>
<div class="box col">
    <h2>{{=_('User Information')}}</h2>
    <div class="box-body">
        {{embed view}}
        {{if can_modify:}}
        <div class="box-bottom">
        <a class="btn btn-green" href="{{=url_for('plugs.user_admin.views_admin.UserView.edit')}}">{{=_('Edit')}}</a>
        </div>
        {{pass}}
    </div>
</div>
{{end}}
