X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fprive%2Fobjets%2Finfos%2Fobjet.html;h=b17a2d5cc7a1401ef0de71327e9c6496769ff8b5;hp=1dd46d18b1957a42af5bea3c28ad3e31e199ad28;hb=122c920eb07e3f665789f8734965b576e6c25515;hpb=226942065cd4f604eb464addf45a065c9e5bc916 diff --git a/www/prive/objets/infos/objet.html b/www/prive/objets/infos/objet.html index 1dd46d18..b17a2d5c 100644 --- a/www/prive/objets/infos/objet.html +++ b/www/prive/objets/infos/objet.html @@ -5,4 +5,28 @@ [(#FORMULAIRE_INSTITUER_OBJET{#ENV{type},#ENV{id},'',#ENV{type}|objet_info{editable}})] +[(#REM) + + Bouton voir en ligne + seulement s'il existe une URL publique + pour la prévisualisation, on ne teste que le cas le plus courant : le premier champ déclaré + +] +[(#ENV{type}|objet_info{page}|oui) + [(#PUBLIE{#ENV{type}, #ENV{id}}|oui) + [(#VAL{redirect} + |generer_url_action{type=#ENV{type}&id=#ENV{id}} + |parametre_url{var_mode,calcul} + |icone_horizontale{<:icone_voir_en_ligne:>,racine})] + ] + [(#PUBLIE{#ENV{type}, #ENV{id}}|non) + #SET{champ_statut,#ENV{type}|objet_info{statut}|table_valeur{0/champ}} + [(#GET{champ_statut}|oui|et{#AUTORISER{previsualiser,#ENV{type},#ENV{id},'',#ARRAY{#GET{champ_statut},#ENV{id}|generer_info_entite{#ENV{type},#GET{champ_statut}}}}}) + [(#VAL{redirect} + |generer_url_action{type=#ENV{type}&id=#ENV{id}} + |parametre_url{var_mode,preview} + |icone_horizontale{<:previsualiser:>,preview})] + ] + ] +]