JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
remove basename prefix from url args
[wfpl.git] / metaform / template.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5         <meta charset="utf-8" />
6         <title><!--~~main_title show {~~-->~plural cap~<!--~~}~~--></title>
7         <link rel="stylesheet" href="style.css" type="text/css"><!--~html_editor_headers {~--><!--~~extra_headers {~~-->
8         <script type="text/javascript" src="code/ckeditor/ckeditor.js"></script>
9         <script language="javascript" type="text/javascript">
10                 function make_wysiwyg(name) {
11                         CKEDITOR.replace(name, {
12                                 'uiColor': '#ccccff',
13                                 'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
14                                 'height': '300px'
15                         });
16                 }
17         </script><!--~~}~~--><!--~}~-->
18 </head>
19
20 <body>
21 <!--~~main_body show {~~--><!--~opt_display {~-->
22         <!--~~display {~~-->
23                 <h2>~singular cap~ details</h2>
24
25                 <!--~~admin_privs {~~--><!--~opt_listing {~-->
26                         <p><a href="~file_name~?new=1">Add another ~singular attr~</a></p>
27
28                         <p><a href="~file_name~">Back to ~plural attr~</a></p>
29 <!--~}~-->
30                         <p><a href="~file_name~?edit_id=~~id attr~~">Edit</a></p>
31                 <!--~~}~~-->
32
33                 <table border="0" cellpadding="3" cellspacing="0" summary="">
34 <!--~display_fields {~--><!--~image {~-->
35                         <tr><td class="caption">~caption html~:</td><td><!--~~~name~ nonempty {~~--><img src="~~~name~ image_src~~" width="~~~name~ image_width~~" height="~~~name~ image_height~~" alt=""><!--~~}~~--></td></tr>
36 <!--~}~--><!--~checkbox {~-->
37                         <tr><td class="caption">~caption html~:</td><td>~~~name~ yesno~~</td></tr>
38 <!--~}~--><!--~date {~-->
39                         <tr><td class="caption">~caption html~:</td><td>~~~name~ mmddyyyy~~</td></tr>
40 <!--~}~--><!--~short {~-->
41                         <tr><td class="caption">~caption html~:</td><td>~~~name~ html~~</td></tr>
42 <!--~}~--><!--~html {~-->
43                         <tr><td class="caption">~caption html~:</span></td><td></td></tr>
44                         <tr><td colspan="2"><div style="padding: 15px; border: 1px solid black">~~~name~~~</div></td></tr>
45 <!--~}~--><!--~textarea {~-->
46                         <tr><td class="caption">~caption html~:</td><td>~~~name~ htmlbrtab~~</td></tr>
47 <!--~}~--><!--~}~-->
48                 </table>
49
50                 <!--~~admin_privs {~~--><!--~opt_listing {~-->
51                         <p><a href="~file_name~">Back to ~plural attr~</a></p>
52 <!--~}~-->
53                         <p><a href="~file_name~?edit_id=~~id attr~~">Edit</a></p>
54                 <!--~~}~~-->
55         <!--~~}~~--><!--~}~-->
56
57         <!--~~form {~~--><!--~form {~-->
58                 <h2><!--~opt_db {~--><!--~~new_msg {~~-->Add a new ~singular~<!--~~}~~--><!--~~edit_msg {~~-->Edit ~singular~ "~~~always_field~ html~~"<!--~~}~~--><!--~}~--><!--~opt_db unset {~-->Submit a ~singular~<!--~}~--></h2>
59
60                 <form action="~~wfpl_basename~~" method="post~enctype_attr~"><!--~opt_db {~--><!--~~editing {~~--><div style="display: none"><input type="hidden" name="edit_id" value="~~id attr~~"></div><!--~~}~~--><!--~}~--><!--~uploads {~--><input type="hidden" name="MAX_FILE_SIZE" value="~~upload_max_filesize~~"><!--~}~--><!--~hidden_fields {~--><!--~ first {~-->
61                         <div style="display: none"><!--~}~--><input type="hidden" name="~name~" value="~~~name~ attr~~"><!--~ last {~--></div><!--~}~--><!--~}~-->
62 <!--~visible_fields {~--><!--~fieldset {~-->
63                         <fieldset><legend>~caption html~</legend><!--~}~--><!--~end_fieldset {~-->
64                         </fieldset><!--~}~--><!--~image {~-->
65                         <div class="caption">~caption html~</div>
66                         <div class="field"><input type="file" name="~name~"><input type="hidden" name="old_~name~" value="~~~name~ attr~~"></div><!--~}~--><!--~file {~-->
67                         <div class="caption">~caption html~</div>
68                         <div class="field"><input type="file" name="~name~"><input type="hidden" name="old_~name~" value="~~~name~ attr~~"></div><!--~}~--><!--~textbox {~-->
69                         <div class="caption">~caption html~</div>
70                         <div class="field"><input type="text" name="~name~" value="~~~name~ attr~~"></div><!--~}~--><!--~date {~-->
71                         <div class="caption">~caption html~</div>
72                         <div class="field"><input type="text" name="~name~" value="~~~name~ mmddyyyy attr~~"> mm/dd/yyyy</div><!--~}~--><!--~password {~-->
73                         <div class="caption">~caption html~</div>
74                         <div class="field"><input type="password" name="~name~" value=""></div><!--~}~--><!--~textarea {~-->
75                         <div class="caption">~caption html~</div>
76                         <div class="field"><textarea rows="9" cols="22" name="~name~">~~~name~ html~~</textarea></div><!--~}~--><!--~html {~-->
77                         <div class="caption">~caption html~</div>
78                                 <div class="field_notes">
79                                         <ul>
80                                                 <li>If you don't see an editor below (with buttons in it) then please try this page in <a href="http://getfirefox.com">Mozilla FireFox</a> or <a href="http://www.google.com/chrome/">Google Chrome</a>.</li>
81                                                 <li>If you're pasting from Microsoft Word, please use the "paste from word" button (4 right of the scissors) instead of the normal paste.</li>
82                                         </ul>
83                                 </div>
84                                 <div class="field"><textarea class="html_editor" rows="20" cols="50" id="content" name="~name~">~~~name~ html~~</textarea><script type="text/javascript">make_wysiwyg('~name~');</script></div><!--~}~--><!--~pulldown {~-->
85                         <div class="caption">~caption html~</div>
86                         <div class="field"><select name="~name~"><option value="">Choose One:</option><!--~~~name~ options~~--></select></div><!--~}~--><!--~states {~-->
87                         <div class="caption">~caption html~</div>
88                         <div class="field"><select name="~name~"><option value="">Choose One:</option><!--~~~name~ states~~--></select></div><!--~}~--><!--~radio {~-->
89                         <div class="caption">~caption html~</div>
90                         <div class="field">
91                                 <input type="radio" name="~name~" value="~~~name~ radio_0~~">~~~name~ radio_caption_0 html~~<br>
92                                 <input type="radio" name="~name~" value="~~~name~ radio_1~~">~~~name~ radio_caption_1 html~~<br>
93                                 <input type="radio" name="~name~" value="~~~name~ radio_2~~">~~~name~ radio_caption_2 html~~
94                         </div><!--~}~--><!--~checkbox {~-->
95                         <div class="caption"><input type="checkbox" name="~name~~~~name~ checked~~" id="~name~_checkbox"><label for="~name~_checkbox"> ~caption html~</label></div>
96                         <div class="field"></div><!--~}~--><!--~submit {~-->
97                         <div class="caption">&nbsp;</div>
98                         <div class="field"><input type="submit" name="~name~" value="~caption attr~"></div><!--~}~-->
99 <!--~}~-->
100                 </form><!--~opt_listing {~-->
101
102                 <div class="caption">&nbsp;</div>
103                 <div class="field"><!--~~id {~~--><a href="~file_name attr~?id=~~id~~">Cancel</a><!--~~}~~--><!--~~id unset {~~--><a href="~file_name attr~">Cancel</a><!--~~}~~--></div><!--~}~-->
104         <!--~}~--><!--~~}~~--><!--~opt_listing {~-->
105
106         <!--~~listings once {~~-->
107                 <h2>~plural cap~ Listing</h2>
108
109                 <!--~~listings once_if {~~-->
110                         <p><a href="~file_name~?new=1">[Add a new ~singular~]</a></p>
111
112                         <table cellspacing="0" cellpadding="4" border="1" summary="">
113                                 <tr><!--~listing_headers {~--><th>~caption~</th><!--~}~--><th>&nbsp;</th></tr><!--~~listings {~~-->
114                                 <tr><!--~listing_fields {~-->
115                                         <td class="listing"><a href="~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><!--~}~-->
116                                         <td><a href="~file_name~?~file_name~_delete_id=~~id~~" onclick="return confirm('Permanently delete?')">[delete this ~singular~]</a></td>
117                                 </tr><!--~~}~~-->
118
119                         </table>
120                 <!--~~}~~-->
121                 <!--~~listings once_else {~~-->
122                         <p>No ~plural~ in database.</p>
123                 <!--~~}~~-->
124
125                 <p><a href="~file_name~?new=1">[Add a new ~singular~]</a></p>
126         <!--~~}~~--><!--~}~-->
127
128 <!--~~}~~-->
129 </body>
130 </html>