Changes for page Macros

Last modified by Jip-jan Alunkel on April 15, 18:09

From version 2.78
edited by Jip-jan Alunkel
on March 31, 18:30
Change comment: Update document after refactoring.
To version 2.79
edited by Jip-jan Alunkel
on March 31, 19:59
Change comment: Renamed from xwiki:assets.formMaker.form-macros

Summary

Details

Page properties
Content
... ... @@ -121,5 +121,22 @@
121 121   </div>
122 122  #end
123 123  
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 +
124 124  {{/velocity}}
125 125