Files
opensourcepos/app/Views/configs/license_config.php
objecttothis 7b224be665 PSR compliance and formatting changes
- Replaced TRUE/FALSE constants with true/false keywords
- Replaced NULL constant with null keyword
- Replaced `<?php echo` in views with shortened `<?=`
- Added missing variable declaration
- Added missing function return type in declaration
- replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
2024-06-15 17:19:15 +02:00

32 lines
750 B
PHP

<?php
/**
* @var array $licenses
*/
?>
<?= form_open('', ['id' => 'license_config_form', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal']) ?>
<div id="config_wrapper">
<fieldset>
<?php
$counter = 0;
foreach($licenses as $license)
{
?>
<div class="form-group form-group-sm">
<?= form_label($license['title'], 'license', ['class' => 'control-label col-xs-3']) ?>
<div class='col-xs-6'>
<?= form_textarea ([
'name' => 'license',
'id' => 'license_' . $counter++, //TODO: String Interpolation
'class' => 'form-control',
'readonly' => '',
'value' => $license['text']
]) ?>
</div>
</div>
<?php
}
?>
</fieldset>
</div>
<?= form_close() ?>