|
7 | 7 | {% include "_permission_ui_styles.html" %} |
8 | 8 | {% include "_debug_common_functions.html" %} |
9 | 9 | <style> |
10 | | -.permission-check-form form { |
11 | | - max-width: 60rem; |
12 | | -} |
13 | | -.permission-check-form .form-section { |
14 | | - margin-bottom: 1.25em; |
15 | | -} |
16 | | -.permission-check-form .form-section select, |
17 | | -.permission-check-form .form-section input[type="text"], |
18 | | -#actor { |
19 | | - background-color: #fff; |
20 | | - border: 1px solid #aaa; |
21 | | - border-radius: 4px; |
22 | | - box-sizing: border-box; |
23 | | - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); |
24 | | - color: #222; |
25 | | - font-family: inherit; |
26 | | - font-size: 1rem; |
27 | | - line-height: 1.4; |
28 | | - max-width: none; |
29 | | - width: 100%; |
30 | | -} |
31 | | -.permission-check-form .form-section select { |
32 | | - min-height: 2.75rem; |
33 | | - padding: 0.6rem 0.75rem; |
34 | | -} |
35 | | -#actor { |
36 | | - font-family: monospace; |
37 | | - min-height: 12rem; |
38 | | - padding: 0.75rem; |
39 | | - resize: vertical; |
40 | | -} |
41 | | -.permission-check-form .form-section select:focus, |
42 | | -.permission-check-form .form-section input[type="text"]:focus, |
43 | | -#actor:focus { |
44 | | - border-color: #0066cc; |
45 | | - box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18); |
46 | | - outline: none; |
47 | | -} |
48 | | -.permission-check-form .form-section small { |
49 | | - margin-top: 0.45em; |
50 | | -} |
51 | 10 | #output { |
52 | 11 | margin-top: 2em; |
53 | 12 | padding: 1em; |
@@ -154,11 +113,11 @@ <h1>Explain a permission decision</h1> |
154 | 113 |
|
155 | 114 | <p>Test an actor, action and resource. The result explains which rules matched, which specificity level won, and whether actor restrictions or required actions changed the verdict.</p> |
156 | 115 |
|
157 | | -<div class="permission-form permission-check-form"> |
| 116 | +<div class="permission-form"> |
158 | 117 | <form id="check-form" method="get" action="{{ urls.path('-/check') }}"> |
159 | 118 | <div class="form-section"> |
160 | 119 | <label for="actor">Actor JSON:</label> |
161 | | - <textarea id="actor" name="actor">{{ actor_json }}</textarea> |
| 120 | + <textarea class="permission-textarea" id="actor" name="actor">{{ actor_json }}</textarea> |
162 | 121 | <small>Use <code>null</code> for an anonymous actor. This actor is simulated; it does not change who you are signed in as.</small> |
163 | 122 | </div> |
164 | 123 |
|
|
0 commit comments