This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/host/views/host/admin/update.php

55 lines
1.5 KiB
PHP

<!-- @todo NEEDS TO BE TRANSLATED -->
<table width="100%">
<?php if ($x=$hso->manage_button()) { ?>
<tr>
<td style="width: 40%;">Panel Login</td>
<td style="width: 60%;" class="data"><?php echo $x; ?></td>
</tr>
<?php } ?>
</table>
<?php echo Form::open(); ?>
<table class="box-left">
<tr>
<th>Name</th>
<td><?php echo Form::input('name',$hso->name); ?></td>
</tr>
<tr>
<th>Active</th>
<td><?php echo StaticList_YesNo::form('status',$hso->status); ?></td>
</tr>
<tr>
<th>Debug Mode</th>
<td><?php echo StaticList_YesNo::form('debug',$hso->debug); ?></td>
</tr>
<tr>
<th>Notes</th>
<td><?php echo Form::input('notes',$hso->notes); ?></td>
</tr>
<tr>
<th>Provision Plugin</th>
<!-- @todo This should be a dynamic list -->
<td><?php echo Form::input('provision_plugin',$hso->provision_plugin); ?></td>
</tr>
<tr>
<th>Max Accounts</th>
<td><?php echo Form::input('max_accounts',$hso->max_accounts); ?></td>
</tr>
<tr>
<th>Manage URL</th>
<td>
<?php echo Form::input('manage_url',$hso->manage_url,array('size'=>($a=strlen($hso->manage_url)>50 ? $a : 50))); ?>
</td>
</tr>
<tr>
<th>Manage Admin</th>
<td><?php echo Form::input('manage_username',$hso->manage_username); ?></td>
</tr>
<tr>
<th>Manage Password</th>
<td><?php echo Form::input('manage_password',$hso->manage_password); ?></td>
</tr>
</table>
<?php if ($plugin_form) { echo '<br/>'.$plugin_form; } ?>
<?php echo Form::submit('submit',_('Update'),array('class'=>'form_button')); ?>
<?php echo Form::close(); ?>