/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to html_server/templates/base.html

  • Committer: Vasilii Chernov
  • Date: 2016-03-01 15:42:48 UTC
  • mto: This revision was merged to the branch mainline in revision 367.
  • Revision ID: vchernov@inr.ru-20160301154248-dpu4wdachiezj2fb
1. api-serer:
   - change multiprosessing work mechanism
   - add new pywrap functions handling
2. html-server: 
   - now works through api-server

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6
6
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7
7
        <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='codebase/dhtmlx.css') }}"/>
 
8
   <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='base.css') }}"/>
8
9
   <script type=text/javascript src="{{ url_for('static', filename='jquery-2.2.1.js') }}"></script>
9
10
        <script src="{{ url_for('static', filename='codebase/dhtmlx.js') }}"></script>
10
11
   <script src="{{ url_for('static', filename='check_err.js') }}"></script>
13
14
      function createPropertyTree(branch, id) {
14
15
         
15
16
         function getPropertyItemsOnLevel(branch, id) {
16
 
            pathToProperties = "{{ url_for('get_property_list_json') }}"
17
 
            completePath = pathToProperties + '?branch=' + branch
 
17
            var pathToProperties = "{{ url_for('process_json_command', command = 'get_property_list') }}"
 
18
            var completePath = pathToProperties + '?branch=' + branch
18
19
            
19
20
            $.getJSON(completePath, 
20
21
                      function(json) {
25
26
         
26
27
         function parsePropertyItems(json, branch, id) {
27
28
            
 
29
            checkError(json)
 
30
            json = json.properties
 
31
            
28
32
            function loadPropertyInfo(branch) {
29
33
               
30
34
               var pathToProperties = "{{ url_for('get_property_list') }}"
57
61
      var regTree
58
62
      function createRegistersList() {
59
63
         function parseJsonRegisterList(json) {
 
64
            checkError(json)
 
65
            json = json.registers
60
66
            
61
67
            function loadRegistersList(bank) {
62
68
               var pathToGetRegisterList = "{{ url_for('get_registers_list') }}"
129
135
         }
130
136
         
131
137
         //get registers json list
132
 
         getRegistersListPath = "{{ url_for('get_registers_list_json') }}" 
 
138
         var getRegistersListPath = "{{ url_for('process_json_command', command = 'get_registers_list') }}" 
133
139
         $.getJSON(getRegistersListPath, parseJsonRegisterList);
134
140
      }
135
141
      
152
158
         <h2>Device {{ device }} model={{ model }} control page </h2>
153
159
      </div>
154
160
   {% endblock %}
155
 
   <style>
156
 
      .tabs > div, .tabs > input { display: none; }
157
 
 
158
 
      .tabs label {
159
 
               padding: 5px;
160
 
               border: 1px solid #aaa;
161
 
               line-height: 28px;
162
 
               cursor: pointer;
163
 
               position: relative;
164
 
               bottom: 1px;
165
 
               background: #fff;
166
 
            }
167
 
            
168
 
      .tabs input[type="radio"]:checked + label { border-bottom: 2px solid #fff; }
169
 
 
170
 
      .tabs > input:nth-of-type(1):checked ~ div:nth-of-type(1),
171
 
      .tabs > input:nth-of-type(2):checked ~ div:nth-of-type(2) {
172
 
                                                      display: block; 
173
 
                                                      padding: 5px; 
174
 
                                                      border: 
175
 
                                                      1px solid #aaa;
176
 
                                                   }
177
 
      .tree {
178
 
               height: 85vh;
179
 
               padding: 5px;
180
 
               border: 1px solid #aaa;
181
 
               line-height: 28px;
182
 
               cursor: pointer;
183
 
               position: relative;
184
 
               bottom: 1px;
185
 
               background: #fff;
186
 
               overflow:auto;
187
 
            }
188
 
            
189
 
      .infoTable {
190
 
               padding: 2px;
191
 
               
192
 
               border: 1px solid #aaa;
193
 
               line-height: 28px;
194
 
               cursor: pointer;
195
 
               position: relative;
196
 
               background: #fff;
197
 
               overflow:auto;
198
 
               bottom: 1px;
199
 
               
200
 
               text-align: left;
201
 
            }
202
 
   </style>
203
161
   
204
162
   <div class="tabs">
205
163
      <input type="radio" name="current" checked="checked" id="props_id"/>
229
187
   </div>
230
188
   {% block content %}
231
189
   {% endblock %}
 
190
    <div class="block1" >
 
191
      <a href="{{ url_for('process_json_command', command='help') }}">Json API usage</a>
 
192
    </div>
232
193
</body>
233
194
</html>