2022-12-08 15:41:08 +00:00
|
|
|
<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"/>
|
2022-12-19 00:18:37 +00:00
|
|
|
<div class="flex">
|
|
|
|
<input type="text" name="instance"
|
|
|
|
class="w100" placeholder="example.org"/>
|
|
|
|
</div>
|
2022-12-08 15:41:08 +00:00
|
|
|
</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>
|