Revision 10c5bcd8
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
87 | 87 |
$self->js |
88 | 88 |
->hide('#basic_settings') |
89 | 89 |
->after('#basic_settings', $html) |
90 |
->reinit_widgets |
|
90 | 91 |
->render; |
91 | 92 |
} |
92 | 93 |
|
... | ... | |
333 | 334 |
|
334 | 335 |
$::auth->assert('requirement_spec_edit'); |
335 | 336 |
$::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec); |
336 |
$::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); |
|
337 |
$::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 |
|
338 |
ckeditor/ckeditor ckeditor/adapters/jquery); |
|
337 | 339 |
$self->init_visible_section; |
338 | 340 |
|
339 | 341 |
return 1; |
templates/webpages/requirement_spec/_show_basic_settings.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%] |
|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
|
|
2 | 2 |
<div id="basic_settings" class="basic-settings-context-menu"> |
3 | 3 |
<h2> |
4 | 4 |
[% IF SELF.requirement_spec.is_template %] |
... | ... | |
41 | 41 |
[% FOREACH var = cvars %] |
42 | 42 |
<tr class="listrow"> |
43 | 43 |
<td>[% HTML.escape(var.config.description) %]</td> |
44 |
<td>[% HTML.escape(var.value_as_text) %]</td> |
|
44 |
<td> |
|
45 |
[%- IF var.config.type == 'htmlfield' -%] |
|
46 |
[%- L.restricted_html(var.value_as_text) -%] |
|
47 |
[%- ELSE -%] |
|
48 |
[%- HTML.escape(var.value_as_text) -%] |
|
49 |
[%- END -%] |
|
50 |
</td> |
|
45 | 51 |
</tr> |
46 | 52 |
[% END %] |
47 | 53 |
|
Auch abrufbar als: Unified diff
Benutzerdef. Var. als HTML-Feld: Pflichtenhefte