Gitlab CSE Unil

admin.mustache 3.89 KB
Newer Older
M. Chardon's avatar
M. Chardon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{!
    @template assignfeedback_editpdfplus/admin
}}

<div class="assignfeedback_editpdfplus_widget_admin">                                                                                                             
    <h5>{{# str }} adminsubtitle, assignfeedback_editpdfplus {{/ str }}</h5> 

    <div class="panel panel-default">
        <div class="panel-heading">
            {{# str }} admincurrenttoolbar, assignfeedback_editpdfplus {{/ str }}
        </div>
        <div class="panel-body">
            <div class='row'>
                <div class='col-sm-2'>
                    <h6>
16
                        {{# str }} adminaxis, assignfeedback_editpdfplus {{/ str }}
M. Chardon's avatar
M. Chardon committed
17
18
19
20
21
22
                        <button type="button" class="btn btn-default" id="assignfeedback_editpdfplus_widget_admin_button_addaxis">
                            <i class="fa fa-plus" aria-hidden="true"></i>
                        </button>
                    </h6>
                </div>
                <div class='col-sm-10' id='assignfeedback_editpdfplus_widget_admin_toolheader'>
23
24
                    <h6>
                        {{# str }} admintools, assignfeedback_editpdfplus {{/ str }}
M. Chardon's avatar
M. Chardon committed
25
26
27
28
                        <button type="button" class="btn btn-default" id="assignfeedback_editpdfplus_widget_admin_button_addtool">
                            <i class="fa fa-plus" aria-hidden="true"></i>
                        </button>
                    </h6>
M. Chardon's avatar
M. Chardon committed
29
30
31
32
33
34
                </div>
            </div>
            <div class='row' id='assignfeedback_editpdfplus_widget_admin_workspace'>
                <div class='col-sm-2'>
                    <select id='editpdlplus_axes' class='form-control'>
                        {{# axis }}
35
                        <option value="{{id}}" data-delete="{{children}}">{{label}}</option>
M. Chardon's avatar
M. Chardon committed
36
37
38
39
40
41
42
                        {{/ axis }}
                    </select>
                    <div class="panel panel-default" id="axistool">
                        <div class="panel-body" style="text-align: center;">
                            <button type="button" class="btn btn-default" id="assignfeedback_editpdfplus_widget_admin_button_editaxis">
                                <i class="fa fa-pencil" aria-hidden="true"></i>
                            </button>
43
44
45
                            <button type="button" class="btn btn-default" id="assignfeedback_editpdfplus_widget_admin_button_delaxis">
                                <i class="fa fa-remove" aria-hidden="true"></i>
                            </button>
M. Chardon's avatar
M. Chardon committed
46
47
48
49
50
51
52
53
                        </div>
                    </div>
                    <div id="assignfeedback_editpdfplus_widget_admin_div_addaxis">
                        <div class="panel-body"></div>
                    </div>
                    <div id="assignfeedback_editpdfplus_widget_admin_div_editaxis">
                        <div class="panel-body"></div>
                    </div>
54
55
56
                    <div id="assignfeedback_editpdfplus_widget_admin_div_delaxis">
                        <div class="panel-body"></div>
                    </div>
M. Chardon's avatar
M. Chardon committed
57
58
59
60
61
                </div>
                <div class='col-sm-10'>
                    {{# toolbars }}
                    <div id="editpdlplus_toolbar_{{axis.id}}" class="btn-group toolbar" style="display: none;">
                        {{# tools }}
M. Chardon's avatar
M. Chardon committed
62
63
64
                        <button class="btn {{button}} editpdlplus_tool" id="editpdlplus_tool_{{id}}" value="{{id}}" style="{{style}}" data-enable="{{enabled}}">
                            {{label}}
                        </button>
M. Chardon's avatar
M. Chardon committed
65
66
67
68
                        {{/ tools }}
                    </div>
                    {{/ toolbars }}

M. Chardon's avatar
M. Chardon committed
69
70
                    <div id="editpdlplus_tool_item" style="margin-top: 10px;"></div>
                    
M. Chardon's avatar
M. Chardon committed
71
72
73
74
75
76
77
78
79
80
81
                </div>
            </div>
        </div>
    </div>
</div>

{{# js }}
require(['assignfeedback_editpdfplus/admin_panel'], function(AdminPanel) {
var adminpanel = new AdminPanel({{context.id}});
});
{{/ js }}