b:sent

<b:sent>...</b:sent>

Displays a message if a b:form has been sent succesfully.

The contents of this tag will be shown only if form has been sent succesfully. If a name is given, only that form's success is shown.

Examples

Displaying form success message

<!-- this message will display if any b:form has been sent succesfully -->
<b:sent>
	<div class="notice">Form sent!</div>
</b:sent>

<!-- this will display success only from the addcomment-form -->
<b:sent.addcomment>
	<div class="notice">Comment added!</div>
</b:sent.addcomment>

<!-- form will be shown only if it hasn't been sent -->
<b:notsent.addcomment>
	<b:form datamodel="comment" name="addcomment">
		<label>Your name</label><b:addcomment.name/>

		<b:addcomment.comment/>
		<input type="submit" value="post a comment"/>
	</b:form>
</b:notsent.addcomment>