Repository navigation
Expand file tree
/
Copy pathdebug.soy
More file actions
82 lines (71 loc) · 2.37 KB
/
Copy pathdebug.soy
File metadata and controls
82 lines (71 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**
* @fileoverview Debug overview for Coding in Chrome editor.
*
* @license Copyright 2015 The Coding with Chrome Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @author mbordihn@google.com (Markus Bordihn)
*/
{namespace cwc.soy.Debug autoescape="strict"}
/**
* Debug template.
*/
{template .template}
{@param prefix: string}
{@param file_types: ?}
{@param mode_types: ?}
{@param message_types: ?}
{@param dialog_types: ?}
<div id="{$prefix}body" class="mdl-dialog">
<h2 class="mdl-dialog__title">Debug screen</h2>
<div id="{$prefix}close" class="icon_24px icon_button">close</div>
<h3>File Types</h3>
<select id="{$prefix}file_types">
{foreach $file_type in keys($file_types)}
<option value="{$file_type}">{$file_type}</option>
{/foreach}
</select>
<h3>Mode Types</h3>
<select id="{$prefix}mode_types">
{foreach $mode_type in keys($mode_types)}
<option value="{$mode_type}">{$mode_type}</option>
{/foreach}
</select>
<h3>Message Types</h3>
<select id="{$prefix}message_types">
{foreach $message_type in keys($message_types)}
<option value="{$message_type}">{$message_type}</option>
{/foreach}
</select>
<h3>Dialog Types</h3>
<select id="{$prefix}dialog_types">
{foreach $dialog_type in keys($dialog_types)}
<option value="{$dialog_type}">{$dialog_type}</option>
{/foreach}
</select>
<p>
<button id="{$prefix}dialog_show">show</button>
<button id="{$prefix}dialog_showModal">showModal</button>
<button id="{$prefix}dialog_showPrompt">showPrompt</button>
<button id="{$prefix}dialog_close">close</button>
</p>
<h3>i18n</h3>
<p>
<button id="{$prefix}i18n_untranslated">Untranslated</button>
</p>
<div id="{$prefix}footer">
Note: Not all features are implemented yet!
</div>
</div>
{/template}