* 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:
2025-02-17 11:45:04 +00:00
parent 26aa5253cc
commit 444fc11ead
3 changed files with 22 additions and 10 deletions

View File

@@ -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>