Revision 5dc93413
Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt
SL/Controller/SimpleSystemSetting.pm | ||
---|---|---|
141 | 141 |
}, |
142 | 142 |
}, |
143 | 143 |
|
144 |
requirement_spec_predefined_text => { |
|
145 |
# Make locales.pl happy: $self->render("simple_system_setting/_requirement_spec_predefined_text_form") |
|
146 |
class => 'RequirementSpecPredefinedText', |
|
147 |
titles => { |
|
148 |
list => t8('Pre-defined Texts'), |
|
149 |
add => t8('Add pre-defined text'), |
|
150 |
edit => t8('Edit pre-defined text'), |
|
151 |
}, |
|
152 |
list_attributes => [ |
|
153 |
{ method => 'description', title => t8('Description') }, |
|
154 |
{ method => 'title', title => t8('Title') }, |
|
155 |
{ title => t8('Content'), formatter => sub { my $t = $_[0]->text_as_stripped_html; length($t) > 50 ? substr($t, 0, 50) . '…' : $t } }, |
|
156 |
{ title => t8('Useable for text blocks'), formatter => sub { $_[0]->useable_for_text_blocks ? t8('yes') : t8('no') } }, |
|
157 |
{ title => t8('Useable for sections'), formatter => sub { $_[0]->useable_for_sections ? t8('yes') : t8('no') } }, |
|
158 |
], |
|
159 |
}, |
|
160 |
|
|
144 | 161 |
); |
145 | 162 |
|
146 | 163 |
my @default_list_attributes = ( |
Auch abrufbar als: Unified diff
SimpleSystemSetting: Umstellung von »Pflichtenhefte« → »Vordefinierte Textblöcke«