{% extends "WebBundle::layout.html.twig" %}
{% set subtitle =   "Edit Profile"  %}
{% set og_description =  "Edit Profile" %}
{% set og_type =  "null" %}
{% set og_image =  "null" %}
{% set keywords =  "null" %}
{% block title %}Edit Profile{% endblock %}
{% block body %}
	<div class="row content-section">
		<div class="col-md-12" >
			<div class="actor-header-bg" style=" background-image: url('{{(app.user.media.type == "link" )? app.user.media.url : asset(app.user.media.link)}}');">
				<div class="movie-header actor-header">
					<div class="movie-title">{{app.user.name}}</div>
				</div>
			</div>
			<img class="actor-logo" src="{{(app.user.media.type == "link" )? app.user.media.url : asset(app.user.media.link)|imagine_filter("user_image")}}">
		</div>
		<div class="col-md-3" >
			<a href="{{path("fos_user_profile_show")}}" class="btn btn-block btn-sm play-btn"><i class="fas fa-user"></i> My Profile</a>
			<a href="{{path("fos_user_myprofile_edit")}}" class="btn btn-block btn-sm play-btn"><i class="fas fa-user-edit"></i> Edit Profile</a>
			<a href="{{path("user_user_subscriptions")}}" class="btn btn-block btn-sm play-btn"><i class="fas fa-star"></i> My Subscription</a>
			{% if app.user.type == "email" %}
				<a href="{{path("fos_user_change_password")}}" class="btn btn-block btn-sm play-btn"><i class="fas fa-user-lock"></i> Change password</a>
			{% endif %}
			<a href="{{path("fos_user_security_logout")}}" class="btn btn-block btn-sm play-btn"><i class="fas fa-sign-out-alt"></i> Logout</a>
		</div>
		<div class="col-md-9">
			<h3>My Profile</h3>
			{{ form_start(form)}}
			{{form_widget(form.file,{attr:{"class":"float-right btn btn-primary"}})}}
			<div class="file-input">
				<div class="message-after">	<i class="fas fa-check "></i> File has been selected</div>
				<div class="message-before">	<i class="fas fa-money-check-alt"></i> Select your profile picture</div>
			</div>
			<div class="form-group">
				{{form_widget(form.name,{"attr":{"class":"form-control","placeholder":"Full name"}})}}
				<span class="validate-input">{{form_errors(form.name)}}</span>
			</div>
			{{form_widget(form.save,{"attr":{"class":"btn btn-raised btn-primary float-right"}})}}
			{{ form_end(form) }}
		</div>
	</div>
{% endblock %}