<div class="serv pmessages">
	<h1 class="serv__title">Messagerie Privée</h1>
	<ul class="pmessages__links d-flex serv__gap serv__section">
		<li class="flex-grow-1">[inbox]Inbox[/inbox]</li>
		<li class="flex-grow-1">[outbox]Outbox[/outbox]</li>
		<li class="flex-grow-1">[new_pm]Mesaje Noi[/new_pm]</li>
	</ul>
	<style>.pmessages__links a {display: flex;}</style>
	<div class="pmessages__status serv__section">
		<div class="serv__subtitle">Dosarele personale cu mesaje sunt umplute:</div>
  {pm-progress-bar}
  {proc-pm-limit} % ocupat ({pm-limit} messages)
	</div>
	[pmlist]
	<h2 class="serv__subtitle">Lista de Mesaje</h2> 
	<div class="serv__table serv__table-resp serv__links">{pmlist}</div>
	[/pmlist]
	[readpm]
	<h2 class="serv__title">Mesajele tale</h2>	
	<div class="pmessages-item d-flex">
		<div class="pmessages-item__img img-fixed-size"><img src="{foto}" alt="{login}"/></div>
		<div class="pmessages-item__desc flex-grow-1">
			<div class="pmessages-item__meta d-flex serv__gap">
				<span>{author}</span><span>{group-name}</span><span>{date}</span>
			</div>
			<div class="pmessages-item__text full-text clearfix">{text}</div>
			<div class="pmessages-item__meta d-flex serv__links serv__gap">
				<span>[reply]Répondre[/reply]</span><span>[ignore]Ignorer[/ignore]</span><span>[complaint]Signaler[/complaint]</span><span>[del]Supprimer[/del]</span>
			</div>
		</div>
	</div>
	[/readpm]
	[newpm]
	<h2 class="serv__subtitle">Mesaje Noi</h2>
	<div class="form__row">
		<label class="form__label form__label--important">Destinatar:</label>
		<input class="form__input" type="text" name="name" placeholder="Destinatar..." value="{author}" required />
	</div>
	<div class="form__row">
		<label class="form__label">Subiect:</label>
		<input class="form__input" type="text" name="subj" placeholder="Subiect mesaj" value="{subj}" />
	</div>
	<div class="form__row form__row--textarea">
		<label class="form__label form__label--important">Mesajul tău:</label>
		{editor}
	</div>
	<div class="form__row form__row--wide has-checkbox-slider">
		<label for="outboxcopy" class="checkbox">
			<input type="checkbox" id="outboxcopy" name="outboxcopy" value="1" checked /> 
			Păstrați o copie a mesajului în folderul „Trimis”.
		</label>
	</div>
	[question]
	<div class="form__row form__row--protect">
		<label class="form__label form__label--important" for="question_answer">{question}</label>
		<input class="form__input" type="text" name="question_answer" id="question_answer" placeholder="Introduceți răspunsul la întrebare" required />
	</div>
	[/question]
	[sec_code]
	<div class="form__row form__row--protect">
		<label class="form__label form__label--important" for="sec_code">Introdu codul afisat in imagine:</label>
		<div class="form__sec-code">
			<input class="form__input" type="text" name="sec_code" id="sec_code" placeholder="Introdu codul afisat in imagine:" maxlength="45" required />
			{sec_code}
		</div>
	</div>
	[/sec_code]
	[recaptcha]
	<div class="form__row form__row--protect">
		<label class="form__label form__label--important" for="">Confirmați că nu sunteți un robot!</label>
		{recaptcha}
	</div>
	[/recaptcha]
	<div class="form__row form__row--submit d-flex">
		<button class="flex-grow-1" type="submit" name="add">Trimite</button>
		<button class="flex-grow-1 btn-secondary" type="button" onclick="dlepmPreview()">Previzualizare</button>
	</div>
	[/newpm]
</div>	
	