soselo/views/add.php

38 lines
1.1 KiB
PHP
Raw Normal View History

<div id="new-instance-form" class="flex hmax">
<div class="card center w100" style="max-width: 20em">
<button class="btn white noborder" onclick="window.history.back()">
<i class="fa fa-arrow-left fa-fw"></i></button>
<form action="api/v1/config/instances/add" method="GET">
<h3>Add new instance</h3>
<br>
<div class="input">
<label for="software">ActivityPub Software:</label>
<br class="sep"/>
<select name="software" class="w100">
<?php foreach ($GLOBALS['supported_ap_software'] as $software): ?>
<option value="<?php echo $software ?>"><?php echo ucfirst($software) ?></option>
<?php endforeach ?>
</select>
</div>
<div class="input">
<label for="software">Instance domain:</label>
<br class="sep"/>
<div class="flex">
<input type="text" name="instance"
class="w100" placeholder="example.org"/>
</div>
</div>
<br>
<input class="btn green w100"
type="submit" value="Add Instance"/>
</form>
</div>
</div>
<script>
function title__add() { apcontrol_title('New instance') }
function load__add() {
console.log('prueba');
}
</script>