/[suikacvs]/webroot/www/js/jste/test.html
Suika

Contents of /webroot/www/js/jste/test.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.29 - (hide annotations) (download) (as text)
Mon Feb 2 04:29:37 2009 UTC (16 years, 6 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.28: +1 -39 lines
File MIME type: text/html
Added support for course/@name to split namespaces of courses; Added support for the url command; Added a new use case test data

1 wakaba 1.1 <!DOCTYPE HTML>
2 wakaba 1.24 <html lang=en class=account-user-info>
3 wakaba 1.1 <meta charset=utf-8>
4     <title>新しい利用者アカウントの作成</title>
5     <link rel=stylesheet href="/admin/style/common">
6 wakaba 1.12 <body>
7 wakaba 1.1 <h1>新しい利用者アカウントの作成</h1>
8    
9 wakaba 1.27 <p id=groups-can-join>
10 wakaba 1.25
11 wakaba 1.1 <form action=new-user accept-charset=utf-8 method=post>
12    
13     <p><strong>利用者識別子</strong>: <input type=text name=user-id
14     maxlength=20 size=10 required pattern="[0-9a-z-]{4,20}"> (文字「a」〜「z」、「0」〜「9」、「-」を使って 4〜10 文字の文字列を指定してください。)<p><strong>合言葉</strong>: <input type=password name=user-pass
15     size=10 required pattern=".{4,}"> (最低4文字入力してください。)<p><strong>合言葉</strong> (もう一度): <input type=password
16     name=user-pass2 size=10 required pattern=".{4,}">
17    
18 wakaba 1.12 <p><input type=submit value="作成" class=create></p></form>
19 wakaba 1.1
20     <section>
21     <html lang=en class=account-user-info>
22     <title>さん</title>
23 wakaba 1.12
24     <h1>さん</h1><section id=groups><h2>グループ</h2><section id="groups-joined"><h3>参加中のグループ</h3><ul><li><form action="group.admin-groups" accept-charset=utf-8 method=post><a href="../../groups/admin-groups/">admin-groups</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.admin-users" accept-charset=utf-8 method=post><a href="../../groups/admin-users/">admin-users</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.helo" accept-charset=utf-8 method=post><a href="../../groups/helo/">helo</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.helo-admin" accept-charset=utf-8 method=post><a href="../../groups/helo-admin/">helo-admin</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.schema-db" accept-charset=utf-8 method=post><a href="../../groups/schema-db/">schema-db</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.spec-ja" accept-charset=utf-8 method=post><a href="../../groups/spec-ja/">spec-ja</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.spec-ja-admin" accept-charset=utf-8 method=post><a href="../../groups/spec-ja-admin/">spec-ja-admin</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.suikawiki" accept-charset=utf-8 method=post><a href="../../groups/suikawiki/">suikawiki</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form><li><form action="group.test-results" accept-charset=utf-8 method=post><a href="../../groups/test-results/">test-results</a> <input type=hidden name=action value=leave><input type=submit value="このグループから抜ける"></form></ul></section><section id="groups-requested"><h3>参加申請中 (未許可) のグループ</h3><ul><li><form action="" accept-charset=utf-8 method=post><a href="../../groups//"></a> <input type=hidden name=action value=leave><input type=submit value="申請取消"></form></ul></section></section><section id=props><h2>特性</h2><p><em>これらの特性は管理者のみが見ることができますが、秘密の情報は記述しないことをお勧めします。</em></p>
25    
26     <form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="full_name"><p><label><strong>名前</strong>: <input type="text" name="value" value=""></label> <input type=submit value="保存">
27    
28     </p></form>
29    
30 wakaba 1.13
31    
32 wakaba 1.12 <form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="mail_addr"><p><label><strong>メイル・アドレス</strong>: <input type="email" name="value" value=""></label> <input type=submit value="保存">
33     </p></form>
34    
35     <form action="prop" accept-charset=utf-8 method=post><input type=hidden name=name value="home_url"><p><label><strong>Web サイト URL</strong>: <input type="url" name="value" value=""></label> <input type=submit value="保存">
36     </p>
37    
38     </form></section><section id=password><h2>合言葉</h2>
39 wakaba 1.1
40     <form action=password method=post accept-charset=utf-8>
41    
42     <p>合言葉を変更できます。<p><strong>新しい合言葉</strong>: <input type=password name=user-pass
43     size=10 required pattern=".{4,}"> (最低4文字入力してください。) <p><strong>新しい合言葉</strong> (もう一度): <input type=password
44     name=user-pass2 size=10 required pattern=".{4,}">
45    
46 wakaba 1.12 <p><input type=submit value="変更"></p>
47 wakaba 1.1
48     </form>
49     </section>
50    
51     <section id=disable-account><h2>アカウントの無効化</h2>
52    
53    
54     <p><label><input type=checkbox name=action value=enable checked> このアカウントを有効にする</label>
55    
56     <p><strong>警告!</strong> 自分のアカウントを無効にすると、自分で再度有効にすることはできません。<p><input type=submit value="変更"></form></section></section>
57    
58 wakaba 1.29 <link rel=stylesheet href=SimpleBalloon-style.css>
59 wakaba 1.1
60 wakaba 1.12 </p>
61    
62 wakaba 1.1 <script type="text/javascript" src="uupaa-detect.mini.js"></script>
63     <script type="text/javascript" src="uupaa-selector.js"></script>
64    
65 wakaba 1.4 <script src="../../css/noderect/NodeRect.js"></script>
66 wakaba 1.1 <script src=tutorial.js></script>
67 wakaba 1.18 <script src=SimpleBalloon.js></script>
68    
69 wakaba 1.1 <script>
70     var MyMessage = new JSTE.Subclass (function () {
71     return this._super.apply (this, arguments);
72     }, JSTE.Message, {
73 wakaba 1.21 _render: function (msgContainer) {
74 wakaba 1.1 var doc = this._targetDocument;
75    
76 wakaba 1.21 var container = doc.createElement ('article');
77 wakaba 1.11 container.className = 'mm-container';
78 wakaba 1.1
79     container.appendChild (msgContainer);
80 wakaba 1.21
81     var buttonContainer = this.createCommandButtons ();
82 wakaba 1.1 container.appendChild (buttonContainer);
83    
84     var refElement = JSTE.Node.querySelector (document, this.select);
85 wakaba 1.20 this._simpleBalloon = new SimpleBalloon (container, refElement);
86 wakaba 1.1
87     return this._simpleBalloon.element;
88     }, // _render
89     _remove: function () {
90     this._simpleBalloon.remove ();
91     } // _remove
92     });
93    
94 wakaba 1.28 var local = new JSTE.Storage.Local ();
95     JSTE.Tutorial.createFromURL ('test.xml', document, {messageClass: MyMessage,
96     states: local},
97 wakaba 1.23 function (t) { document.a = t });
98 wakaba 1.1 </script>
99    
100 wakaba 1.3 <!--
101     /* ***** BEGIN LICENSE BLOCK *****
102     * Copyright 2008-2009 Wakaba <w@suika.fam.cx>. All rights reserved.
103     *
104     * This program is free software; you can redistribute it and/or
105     * modify it under the same terms as Perl itself.
106     *
107     * Alternatively, the contents of this file may be used
108     * under the following terms (the "MPL/GPL/LGPL"),
109     * in which case the provisions of the MPL/GPL/LGPL are applicable instead
110     * of those above. If you wish to allow use of your version of this file only
111     * under the terms of the MPL/GPL/LGPL, and not to allow others to
112     * use your version of this file under the terms of the Perl, indicate your
113     * decision by deleting the provisions above and replace them with the notice
114     * and other provisions required by the MPL/GPL/LGPL. If you do not delete
115     * the provisions above, a recipient may use your version of this file under
116     * the terms of any one of the Perl or the MPL/GPL/LGPL.
117     *
118     * "MPL/GPL/LGPL":
119     *
120     * Version: MPL 1.1/GPL 2.0/LGPL 2.1
121     *
122     * The contents of this file are subject to the Mozilla Public License Version
123     * 1.1 (the "License"); you may not use this file except in compliance with
124     * the License. You may obtain a copy of the License at
125     * <http://www.mozilla.org/MPL/>
126     *
127     * Software distributed under the License is distributed on an "AS IS" basis,
128     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
129     * for the specific language governing rights and limitations under the
130     * License.
131     *
132     * The Original Code is JSTE code.
133     *
134     * The Initial Developer of the Original Code is Wakaba.
135     * Portions created by the Initial Developer are Copyright (C) 2008
136     * the Initial Developer. All Rights Reserved.
137     *
138     * Contributor(s):
139     * Wakaba <w@suika.fam.cx>
140     *
141     * Alternatively, the contents of this file may be used under the terms of
142     * either the GNU General Public License Version 2 or later (the "GPL"), or
143     * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
144     * in which case the provisions of the GPL or the LGPL are applicable instead
145     * of those above. If you wish to allow use of your version of this file only
146     * under the terms of either the GPL or the LGPL, and not to allow others to
147     * use your version of this file under the terms of the MPL, indicate your
148     * decision by deleting the provisions above and replace them with the notice
149     * and other provisions required by the LGPL or the GPL. If you do not delete
150     * the provisions above, a recipient may use your version of this file under
151     * the terms of any one of the MPL, the GPL or the LGPL.
152     *
153     * ***** END LICENSE BLOCK ***** */
154     -->

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24