projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AX enabled version of the first page of the profile edition.
[platal.git]
/
templates
/
include
/
minifiche.tpl
diff --git
a/templates/include/minifiche.tpl
b/templates/include/minifiche.tpl
index
6146791
..
16dac4f
100644
(file)
--- a/
templates/include/minifiche.tpl
+++ b/
templates/include/minifiche.tpl
@@
-64,7
+64,7
@@
<img src='images/flags/{$code}.gif' alt='{$code}' height='11' title='{$country}' />
{/foreach}
{$profile->promo()}{*
<img src='images/flags/{$code}.gif' alt='{$code}' height='11' title='{$country}' />
{/foreach}
{$profile->promo()}{*
- *}{foreach from=$profile->getExtraEducations(4) item=edu}, {display_education edu=$edu profile=$profile}{/foreach}{*
+ *}{foreach from=$profile->getExtraEducations(4) item=edu}, {display_education edu=$edu profile=$profile
full=false
}{/foreach}{*
*}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if}
</div>
</div>
*}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if}
</div>
</div>
@@
-74,6
+74,7
@@
{if $registered || (!$dead && $hasowner)}
<div>
{if !$registered && !$dead && $hasowner}
{if $registered || (!$dead && $hasowner)}
<div>
{if !$registered && !$dead && $hasowner}
+ {if hasPerm('directory_private')}
{if !$smarty.session.user->isWatchedUser($profile)}
<a href="carnet/notifs/add_nonins/{$user->login()}?token={xsrf_token}">{*
*}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
{if !$smarty.session.user->isWatchedUser($profile)}
<a href="carnet/notifs/add_nonins/{$user->login()}?token={xsrf_token}">{*
*}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
@@
-81,6
+82,7
@@
<a href="carnet/notifs/del_nonins/{$user->login()}?token={xsrf_token}">{*
*}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
{/if}
<a href="carnet/notifs/del_nonins/{$user->login()}?token={xsrf_token}">{*
*}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
{/if}
+ {/if}
{elseif $registered}
<a href="profile/{$profile->hrid()}" class="popup2">{*
*}{icon name=user_suit title="Afficher la fiche"}</a>
{elseif $registered}
<a href="profile/{$profile->hrid()}" class="popup2">{*
*}{icon name=user_suit title="Afficher la fiche"}</a>
@@
-89,6
+91,7
@@
*}{icon name=vcard title="Afficher la carte de visite"}</a>
<a href="mailto:{$user->bestEmail()}">{*
*}{icon name=email title="Envoyer un email"}</a>
*}{icon name=vcard title="Afficher la carte de visite"}</a>
<a href="mailto:{$user->bestEmail()}">{*
*}{icon name=email title="Envoyer un email"}</a>
+ {if hasPerm('directory_private')}
{if !$smarty.session.user->isContact($profile)}
<a href="carnet/contacts?action=ajouter&user={$profile->hrid()}&token={xsrf_token}">{*
*}{icon name=add title="Ajouter à mes contacts"}</a>
{if !$smarty.session.user->isContact($profile)}
<a href="carnet/contacts?action=ajouter&user={$profile->hrid()}&token={xsrf_token}">{*
*}{icon name=add title="Ajouter à mes contacts"}</a>
@@
-96,12
+99,18
@@
<a href="carnet/contacts?action=retirer&user={$profile->hrid()}&token={xsrf_token}">{*
*}{icon name=cross title="Retirer de mes contacts"}</a>
{/if}
<a href="carnet/contacts?action=retirer&user={$profile->hrid()}&token={xsrf_token}">{*
*}{icon name=cross title="Retirer de mes contacts"}</a>
{/if}
+ {/if}
{/if}
{/if}
</div>
{/if}
{/if}
{/if}
</div>
{/if}
- {if hasPerm('admin') && $hasowner}
+ {if hasPerm('edit_directory')}
+ <div>
+ [<a href="profile/edit/{$user->login()}">{*
+ *}{icon name=user_edit title="modifier la fiche"}</a>]
+ </div>
+ {elseif hasPerm('admin') && $hasowner}
<div>
[{if $registered && !$dead}
<a href="marketing/private/{$user->login()}">{*
<div>
[{if $registered && !$dead}
<a href="marketing/private/{$user->login()}">{*
@@
-121,7
+130,7
@@
{assign var=address value=$profile->getMainAddress()}
{assign var=web value=$profile->getWebSite()}
{assign var=job value=$profile->getMainJob()}
{assign var=address value=$profile->getMainAddress()}
{assign var=web value=$profile->getWebSite()}
{assign var=job value=$profile->getMainJob()}
- {if $web || $profile->mobile || ($address && $address->country) || $job || !$registered}
+ {if $web || $profile->mobile || ($address && $address->country) || $job || !$registered
|| $user->lost
}
<table cellspacing="0" cellpadding="0">
{if $web}
<tr>
<table cellspacing="0" cellpadding="0">
{if $web}
<tr>