1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/plugins-dist/mots/prive/squelettes/contenu/mot_edit.html

28 lines
1.1 KiB
HTML
Raw Normal View History

2015-04-28 17:10:23 +02:00
[(#ID_MOT|oui)
[(#AUTORISER{modifier,mot,#ID_MOT}|sinon_interdire_acces)]]
[(#ID_MOT|non)
[(#AUTORISER{creer,mot,#ID_MOT,'','',#ARRAY{associer_objet,#ENV{associer_objet}}}|sinon_interdire_acces)]]
#SET{retour,#ENV{redirect}|sinon{#ENV{id_mot}|?{#URL_ECRIRE{mot,id_mot=#ID_MOT},#URL_ECRIRE{mots}}}}
<div class='cadre-formulaire-editer'>
<div class="entete-formulaire">
[(#ID_MOT|oui)
[(#GET{retour}|icone_verticale{<:icone_retour:>,mot,'',left retour[(#ENV{retourajax,''}|oui)ajax preload]})]
]
[[(#ID_MOT|?{<:mots:info_modifier_mot:>,<:titre_ajouter_un_mot:>})]
<h1>(#ENV{titre,#INFO_TITRE{mot,#ID_MOT}|sinon{<:mots:texte_nouveau_mot:>}})</h1>]
</div>
#SET{redirect,#ENV{redirect,#ID_MOT|generer_url_entite{mot}}}
[(#ENV{retourajax,''}|oui)
#SET{redirect,'javascript:if (window.jQuery) jQuery(".entete-formulaire .retour a").followLink();'}
<div class="ajax">
]
#FORMULAIRE_EDITER_MOT{#ENV{id_mot,oui},#ENV{id_groupe},#GET{redirect},#ENV{associer_objet}}
[(#ENV{retourajax,''}|oui)
</div>
<script type="text/javascript">/*<!\[CDATA\[*/if (window.jQuery) jQuery('#navigation>div,#extra>div').ajaxReload({args:{exec:'#ENV{exec}'}});/*\]\]>*/</script>
]
</div>