root/SpamSubmission/trunk/tmpl/spam_submission.tmpl

Revision 1677 (checked in by miyagawa, 14 years ago)

Add Action and template

Line 
1 <script type="text/javascript">
2 function toggleAuthDetails(name) {
3     var list = [ 'apikey', 'typekey' ];
4     for (i = 0; i < list.length; i++) {
5         n = list[i];
6         if (n == name) {
7             document.getElementById(n).style.display = 'block';
8         } else {
9             document.getElementById(n).style.display = 'none';
10         }
11     }
12 }
13 </script>
14 <div class="setting grouped">
15 <div class="label">API Auth Type:</div>
16 <div class="field">
17 <input type="radio" name="auth_type" value="apikey" <TMPL_IF NAME=AUTH_TYPE_APIKEY>checked="checked"</TMPL_IF> onclick="toggleAuthDetails('apikey')" />Bulkfeeds API Key
18 <input type="radio" name="auth_type" value="typekey" <TMPL_IF NAME=AUTH_TYPE_TYPEKEY>checked="checked"</TMPL_IF> onclick="toggleAuthDetails('typekey')" />TypeKey
19 </div>
20 </div>
21
22 <div id="apikey" class="setting grouped">
23 <div class="label"><nobr>Bulkfeeds API Key:</nobr></div>
24
25 <div class="field"><input type="text" name="apikey" size="36" value="<TMPL_VAR NAME=APIKEY ESCAPE=HTML>" />
26 </div>
27 </div>
28
29
30 <div id="typekey" class="setting grouped">
31 <div class="label">TypeKey Auth:</div>
32 <div class="field">Username: <input type="text" name="typekey_username" size="12" value="<TMPL_VAR NAME=TYPEKEY_USERNAME ESCAPE=HTML>" /><br />
33 Password: <input type="password" name="typekey_password" size="12" value="<TMPL_VAR NAME=TYPEKEY_PASSWORD ESCAPE=HTML>" />
34 </div>
35 </div>
36
37
38 <script type="text/javascript">toggleAuthDetails('<TMPL_VAR NAME=AUTH_TYPE>');</script>
Note: See TracBrowser for help on using the browser.