Files

27 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2025-02-04 23:06:08 +01:00
<div class="container mt-5">
<h2 class="text-center">Add Location</h2>
<?php if (isset($error) && $error) : ?>
<div class="alert alert-danger" role="alert">
Please fill in all required fields!
</div>
<?php endif; ?>
<form action="/<?php echo $_SESSION['role']; ?>/location/add" method="POST" class="mt-4">
<div class="form-group">
<label for="name">Name</label>
<input type="name" name="name" id="name" class="form-control" required>
</div>
<div class="form-group">
<label for="name">Location ID</label>
<input type="text" name="location_id" id="location_id" class="form-control" required>
</div>
<div class="form-group">
<label for="name">Webhook</label>
<input type="text" name="webhook" id="webhook" class="form-control" required>
</div>
<div class="form-group">
<label for="relationship_num">API KEY</label>
<input type="text" name="apikey" id="apikey" class="form-control" required>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>