mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-03 14:51:31 -04:00
- 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
32 lines
750 B
PHP
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() ?>
|