JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added tem_auto_once() and friends
[wfpl.git] / metaform / template.html
index c818b3c..b00c0ad 100644 (file)
 <body>
 <!--~~main_body show {~~-->
 
-       <!--~~wfpl_messages {~~-->
-               <!--~~ first {~~-->
-                       <div style="border: 2px solid red; background: #fbb; padding: 5px; margin: 20px 0px">
-               <!--~~}~~-->
+       <!--~~wfpl_messages once_if {~~-->
+               <div style="border: 2px solid red; background: #fbb; padding: 5px; margin: 20px 0px">
+                       <!--~~wfpl_messages {~~-->
                                <p style="font-size: 120%; padding: 5px; margin: 0px">~~data html~~</p>
-               <!--~~ sep {~~-->
-                               <hr>
-               <!--~~}~~-->
-               <!--~~ last {~~-->
-                       </div>
-               <!--~~}~~-->
+                               <!--~~ sep {~~-->
+                                       <hr>
+                               <!--~~}~~-->
+                       <!--~~}~~-->
+               </div>
        <!--~~}~~--><!--~opt_display {~-->
 
        <!--~~display {~~-->
                <div class="field"><!--~~jam_edit_id {~~--><a href="~file_name attr~?~file_name attr~_id=~~~file_name attr~_edit_id~~"><!--~~}~~--><!--~~jam_edit_id unset {~~--><a href="~file_name attr~"><!--~~}~~-->Cancel</a></div><!--~}~-->
        <!--~}~--><!--~~}~~--><!--~opt_listing {~-->
 
-       <!--~~listings {~~-->
+       <!--~~listings once {~~-->
                <h2>~plural cap~ Listing</h2>
 
-               <!--~~populated_listing {~~-->
+               <!--~~listings once_if {~~-->
                        <p><a href="~file_name~?~file_name~_new=1">[Add a new ~singular~]</a></p>
 
                        <table cellspacing="0" cellpadding="4" border="1" summary="">
-                               <!--~listing_headers {~--><th>~caption~</th><!--~}~--><th>&nbsp;</th><!--~~rows {~~-->
+                               <!--~listing_headers {~--><th>~caption~</th><!--~}~--><th>&nbsp;</th><!--~~listings {~~-->
                                <tr><!--~listing_fields {~-->
-                                       <td class="listing"><a href="~file_name~?~file_name~_<!--~opt_display unset {~-->edit_<!--~}~-->id=~~id~~"><!--~enc {~-->~~~name~ ~enc~~~<!--~}~--><!--~thumb {~--><!--~~~name~ nonempty {~~--><img src="~~~name~ thumb_src~~" width="~~~name~ thumb_width~~" height="~~~name~ thumb_height~~" alt=""><!--~~}~~--><!--~}~--></a></td><!--~}~-->
+                                       <td class="listing"><a href="~file_name~?~file_name~_<!--~opt_display unset {~-->edit_<!--~}~-->id=~~id~~"><!--~enc {~-->~~~name~ ~enc~~~<!--~~~name~ empty {~~--><em>(blank)</em><!--~~}~~--><!--~}~--><!--~thumb {~--><!--~~~name~ nonempty {~~--><img src="~~~name~ thumb_src~~" width="~~~name~ thumb_width~~" height="~~~name~ thumb_height~~" alt=""><!--~~}~~--><!--~}~--></a></td><!--~}~-->
                                        <td><a href="~file_name~?~file_name~_delete_id=~~id~~" onclick="return confirm('Permanently delete?')">[delete this ~singular~]</a></td>
                                </tr><!--~~}~~-->
 
                        </table>
                <!--~~}~~-->
-               <!--~~empty_listing {~~-->
+               <!--~~listings once_else {~~-->
                        <p>No ~plural~ in database.</p>
                <!--~~}~~-->