Modifications pour le document Macros
Modifié par Jip-jan Alunkel le avril 15, 18:09
Depuis la version 2.74
modifié par Jip-jan Alunkel
sur mars 31, 17:55
sur mars 31, 17:55
Commentaire de modification :
Il n'y a aucun commentaire pour cette version
À la version 2.79
modifié par Jip-jan Alunkel
sur mars 31, 19:59
sur mars 31, 19:59
Commentaire de modification :
Renamed from xwiki:assets.formMaker.form-macros
Résumé
-
Propriétés de la Page (2 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Titre
-
... ... @@ -1,1 +1,1 @@ 1 - form-elements1 +Macros - Contenu
-
... ... @@ -4,6 +4,16 @@ 4 4 #end 5 5 6 6 #macro(createFormEnd) 7 + <div role="alert" class="form-response-output form-validation-errors" style="display: none"> 8 + <p> 9 +$services.localization.render('formMaker.line.global_error_msg') 10 + </p> 11 + </div> 12 + <div role="alert" class="form-response-output form-validation-ok" style="display: none"> 13 + <p> 14 +$services.localization.render('formMaker.line.global_ok_msg') 15 + </p> 16 + </div> 7 7 </form> 8 8 #end 9 9 ... ... @@ -111,5 +111,22 @@ 111 111 </div> 112 112 #end 113 113 124 +#macro(createSubmit $O_submit) 125 + <div class="clearfix"> 126 + <p class="alert alert-warning alert-button-float-right"> 127 + <span class="alert-button pull-right"> 128 +#if ($xcontext.user != 'XWiki.XWikiGuest') 129 + <input type="submit" class="btn btn-primary" id="${O_submit.id}" name="${O_submit.id}" value="${O_submit.button-text}" /> 130 +#else 131 + <a data-toggle="modal" data-target="#displayLogin" href="#" class="btn btn-primary">$services.localization.render('login')</a> 132 +#end 133 + </span> 134 + <span class="alert-text"> 135 + ${O_submit.help-block} 136 + </span> 137 + </p> 138 + </div> 139 +#end 140 + 114 114 {{/velocity}} 115 115