keksAccount/resources/views/admin/app_details.php

78 lines
4.1 KiB
PHP

<?php include(__DIR__."/../layout/top.php"); ?>
<div class="row">
<div class="col-md-12">
<h3>Apps <?php echo $app->name; ?></h3>
<p><?php echo $app->description; ?></p>
<a href="<?php echo $app->url; ?>"><?php echo $app->url; ?></a>
<hr>
<h2>Settings</h2>
<form method="post">
<table class="table">
<tr>
<th>Name</th>
<th>Beschreibung</th>
<th>Value</th>
</tr>
<!--<tr>
<td>Status</td>
<td colspan="2">
<select name="status" class="form-control">
<option <?php if($app->status == "active" ) { echo "selected='selected'"; } ?>>active</option>
<option <?php if($app->status == "testing" ) { echo "selected='selected'"; } ?>>testing</option>
<option <?php if($app->status == "deactivate" ) { echo "selected='selected'"; } ?>>deactivate</option>
</select>
</td>
</tr>
<tr>
<td>Trust Level</td>
<td colspan="2">
<select name="trustLevel" class="form-control">
<option <?php if($app->trustLevel == "full-trustet" ) { echo "selected='selected'"; } ?>>full-trustet</option>
<option <?php if($app->trustLevel == "trustet" ) { echo "selected='selected'"; } ?>>trustet</option>
<option <?php if($app->trustLevel == "untrustet" ) { echo "selected='selected'"; } ?>>untrustet</option>
</select>
</td>
</tr>
<tr>
<td>Owner</td>
<td colspan="2">
<select name="owner" class="form-control">
<option <?php if($app->owner == "user" ) { echo "selected='selected'"; } ?>>user</option>
<option <?php if($app->owner == "system" ) { echo "selected='selected'"; } ?>>system</option>
</select>
</td>
</tr>!-->
<tr>
<td>Auto Accept</td>
<td>User dont have to click login, if the user is logged in he/she will immediately redirected back.</td>
<td>
<input name="auto_accept" type="checkbox" <?php if($app->auto_accept) { echo 'checked="checked"'; } ?>>
</td>
</tr>
<tr>
<td>Testing Warning</td>
<td>Show warning that the Application is just in testing mode</td>
<td>
<input name="testing_warning" type="checkbox" <?php if($app->testing_warning) { echo 'checked="checked"'; } ?>>
</td>
</tr>
<tr>
<td>Untrusted Warning</td>
<td>Show warning that the Application is untrusted</td>
<td>
<input name="untrusted_warning" type="checkbox" <?php if($app->untrusted_warning) { echo 'checked="checked"'; } ?>>
</td>
</tr>
<tr>
<td>Show on Webpage</td>
<td>Show this App on the Webpage.</td>
<td>
<input name="show_on_webpage" type="checkbox" <?php if($app->show_on_webpage) { echo 'checked="checked"'; } ?>>
</td>
</tr>
</table>
<input type="submit" class="btn btn-warning" value="Save">
</form>
</div>
</div>
<?php include(__DIR__."/../layout/bottom.php"); ?>