$self->js
->hide('#basic_settings')
->after('#basic_settings', $html)
+ ->reinit_widgets
->render;
}
$::auth->assert('requirement_spec_edit');
$::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec);
- $::request->{layout}->use_javascript("${_}.js") for qw(jquery.jstree jquery/jquery.contextMenu jquery/jquery.hotkeys requirement_spec ckeditor/ckeditor ckeditor/adapters/jquery kivi.Part kivi.CustomerVendor);
+ $::request->{layout}->use_javascript("${_}.js") for qw(jquery.jstree jquery/jquery.contextMenu jquery/jquery.hotkeys requirement_spec ckeditor/ckeditor ckeditor/adapters/jquery kivi.Part kivi.CustomerVendor
+ ckeditor/ckeditor ckeditor/adapters/jquery);
$self->init_visible_section;
return 1;
-[%- USE HTML -%][%- USE LxERP -%]
+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
<div id="basic_settings" class="basic-settings-context-menu">
<h2>
[% IF SELF.requirement_spec.is_template %]
[% FOREACH var = cvars %]
<tr class="listrow">
<td>[% HTML.escape(var.config.description) %]</td>
- <td>[% HTML.escape(var.value_as_text) %]</td>
+ <td>
+ [%- IF var.config.type == 'htmlfield' -%]
+ [%- L.restricted_html(var.value_as_text) -%]
+ [%- ELSE -%]
+ [%- HTML.escape(var.value_as_text) -%]
+ [%- END -%]
+ </td>
</tr>
[% END %]