-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-measures.html
219 lines (207 loc) · 9.88 KB
/
add-measures.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
{% include oira/add-measures-pop-over.html %}
{% assign lang = page.lang | default: site.data.config.lang %}
<div
class="measures pat-clone pat-switch"
data-pat-clone="template: #extra-measure-template; trigger-element: #clone-extra-measure; remove-confirmation: Are you sure you want to remove this measure?"
data-pat-switch="selector: #measures-panel; remove: open; add: closed"
id="ActionPlanItemForm">
{% if page.layout == 'action' %}
<div
class="measure pat-collapsible closed">
<h2>
{{ site.data.oira.ui.label_implemented_measure[lang] }}: Visual inspection of work areas
</h2>
<h4>
Description
</h4>
<div
class="pat-rich">
<pre
class="pat-markdown">
Make sure a visual inspection of work areas is carried out in order to identify the potential hazards of falls and slips. Check that the anti-fall fittings and protective measures are present and in good condition."
expertise: "Contrary to popular belief, Lorem Ipsum is not simply random text.
Beware of the following possible hazards.
- Slippery slopes
- Falling pianos
- Angry queens
It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
</pre>
</div>
</div>
{% endif %}
{% assign solution_nr = 1 %}
{% for solution in page.solutions %}
<div
class="
measure
pat-collapsible
closed
pat-depends"
data-pat-depends="condition: sm-{{ solution_nr }}">
<h2>
{{ solution.title }}
</h2>
<p
class="functions">
<a
tabindex="0"
href="#pick-sm-{{ solution_nr }}"
class="icon-trash pat-forward"
data-pat-forward="selector: #sm-{{ solution_nr }}"
title="Remove this measure.">Remove</a>
</p>
<section
class="pat-rich">
<h4>
Description
</h4>
<p>
{{ solution.description }}
</p>
<h4>
Expertise
</h4>
<p>
{{ solution.expertise }}
</p>
</section>
{% include oira/add-measure-additional-meta-data.html %}
</div>
{% assign solution_nr = solution_nr | plus: 1 %}
{% endfor %}
{% assign extra_nr = 1 %}
{% for extra in page.extra_measures %}
<div
class="
measure
pat-collapsible
{% if extra.state == 'open' %}open{% else %}closed{% endif %}">
<h2>
{{ site.data.oira.ui.label_addition_measure[lang] }} {{ extra_nr }}
</h2>
<p
class="functions">
<a
tabindex="0"
href="#pick-sm-{{ extra_nr }}"
class="icon-trash pat-forward"
data-pat-forward="selector: #sm-{{ extra_nr }}"
title="Remove this measure.">{{ site.data.oira.ui.remove[lang] }}</a>
</p>
<fieldset
class="vertical" id="fields-#{1}">
<label>
{{ site.data.oira.ui.label_description[lang] }}
<dfn
class="info-icon pat-tooltip"
data-pat-tooltip="source: content; position-list: lt">Describe: 1) what is your general approach to eliminate or (if the risk is not avoidable) reduce the risk; 2) the specific action(s) required to implement this approach (to eliminate or to reduce the risk); 3) the level of expertise needed to implement the measure, for instance “common sense (no OSH knowledge required)”, “no specific OSH expertise, but minimum OSH knowledge or training and/or consultation of OSH guidance required”, or “OSH expert”. You can also describe here any other additional requirement (if any).</dfn>
{% capture this_placeholder %}{% include patterns/i18n id="placeholder_comment" %}{% endcapture %}
{% capture these_notes %}{{ page.notes | markdownify }}{% endcapture %}
{% include patterns/rich-editor.html
placeholder=this_placeholder
toolbar="assessment-toolbar"
image-panel="#pat-modal.image-picker"
link-panel="#pat-modal.panel-hyperlink"
html-source-panel="#pat-modal.panel-html-source-editor"
link-menu="/feedback/hyperlink-menu#document-content"
mentions-menu="/feedback/panel-mentions-tiptap#document-content"
tags-menu="/feedback/panel-tags-tiptap#document-content"
autofocus=false
content=these_notes %}
</label>
<label>
{{ site.data.oira.ui.label_expertise[lang] }}
<textarea
tabindex="0"
class="requirements"
name="requirements"
placeholder="Level of expertise and/or requirements needed"
rows="3"></textarea>
</label>
</fieldset>
{% include oira/add-measure-additional-meta-data.html %}
</div>
{% assign solution_nr = extra_nr | plus: 1 %}
{% endfor %}
</div>
<template
id="extra-measure-template">
<div
class="measure pat-collapsible">
<h2>{{ site.data.oira.ui.label_addition_measure[lang] }} #{1}</h2>
<p
class="functions">
<a
class="icon-trash remove-clone"
title="Remove this measure.">{{ site.data.oira.ui.remove[lang] }}</a>
</p>
<fieldset
class="vertical"
id="fields-#{1}">
<fieldset
class="group">
<legend>
{{ site.data.oira.ui.label_description[lang] }}
<dfn
class="info-icon pat-tooltip"
data-pat-tooltip="source: content; position-list: lt">Describe: 1) what is your general approach to eliminate or (if the risk is not avoidable) reduce the risk; 2) the specific action(s) required to implement this approach (to eliminate or to reduce the risk); 3) the level of expertise needed to implement the measure, for instance “common sense (no OSH knowledge required)”, “no specific OSH expertise, but minimum OSH knowledge or training and/or consultation of OSH guidance required”, or “OSH expert”. You can also describe here any other additional requirement (if any).</dfn>
</legend>
{% capture this_placeholder %}{% include patterns/i18n id="placeholder_approach_action_plan" %}{% endcapture %}
{% capture these_notes %}{{ page.notes | markdownify }}{% endcapture %}
<div
class="pat-rich-editor pat-rich toolbar-detached">
{% include patterns/rich-editor.html
placeholder=this_placeholder
toolbar="assessment-toolbar"
image-panel="#pat-modal.image-picker"
link-panel="#pat-modal.panel-hyperlink"
html-source-panel="#pat-modal.panel-html-source-editor"
link-menu="/feedback/hyperlink-menu#document-content"
mentions-menu="/feedback/panel-mentions-tiptap#document-content"
tags-menu="/feedback/panel-tags-tiptap#document-content"
autofocus=true
content=these_notes %}
</div>
</fieldset>
<fieldset
class="group">
<legend>{{ site.data.oira.ui.label_expertise[lang] }}</legend>
{% capture these_notes %}{{ page.notes | markdownify }}{% endcapture %}
<div
class="
pat-rich-editor
pat-rich
toolbar-detached">
{% include patterns/rich-editor.html
placeholder="Level of expertise and/or requirements needed"
toolbar="assessment-toolbar"
image-panel="#pat-modal.image-picker"
link-panel="#pat-modal.panel-hyperlink"
html-source-panel="#pat-modal.panel-html-source-editor"
link-menu="/feedback/hyperlink-menu#document-content"
mentions-menu="/feedback/panel-mentions-tiptap#document-content"
tags-menu="/feedback/panel-tags-tiptap#document-content"
autofocus=false %}
</fieldset>
</fieldset>
{% include oira/add-measure-additional-meta-data.html %}
</div>
</template>
<div
class="button-bar">
{% if page.solutions %}
<button
tabindex="0"
class="pat-button icon-plus pat-depends visible"
data-pat-depends="condition: not (sm-1 and sm-2 and sm-3 and sm-4)"
id="add-standard-measures"
title="Add another measure"
type="button">{%- include patterns/i18n source="oira" id="label_select_standard_measures" -%}</button>
{% endif %}
<button
tabindex="0"
class="add-clone pat-button icon-plus"
id="clone-extra-measure"
title="Add another measure"
type="button">{%- include patterns/i18n source="oira" id="label_extra_add_measure" -%}</button>
</div>