generated from smedev/Template-for-SMEServer-Core-Package
* Mon Feb 17 2025 Brian Read <brianr@koozali.org> 11.0-3.sme
- Change status in template to use helper script to pre-set dropdown value [SME: 12923] - Update Custom routines to openb DB when required, not relying on global open [SME: 12695]
This commit is contained in:
@@ -27,8 +27,9 @@
|
||||
<p><span class=label>
|
||||
%=l('lets_SERVICE_STATUS')
|
||||
</span><span class=data>
|
||||
% my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
|
||||
% param 'status' => $lets_data->{status} unless param 'status';
|
||||
%# my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
|
||||
% my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']], $lets_data->{status});
|
||||
%# param 'status' => $lets_data->{status} unless param 'status';
|
||||
%= select_field 'status' => @status_options, class => 'input'
|
||||
<br></span> </p>
|
||||
|
||||
@@ -94,4 +95,4 @@
|
||||
|
||||
%# Probably finally by a submit.
|
||||
%end
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user