podmin.php 2.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
<?php

/**
 * Form to add a new pod.
 */

declare(strict_types=1);

?>

11
<br>
David Morley's avatar
David Morley committed
12
Want your pod listed? Or to claim a listed pod?<br>
13
<br>
David Morley's avatar
David Morley committed
14
<form action="/">
15 16 17 18 19 20 21 22 23 24
    <div class="form-group row">
        <label for="domain-input" class="col-2 col-form-label">Pod Domain *</label>
        <div class="col-10">
            <div class="input-group mb-2 mr-sm-2 mb-sm-0">
                <div class="input-group-addon">https://</div>
                <input type="text" id="domain-input" name="domain" class="form-control" placeholder="domain.com" aria-describedby="domain-help" aria-required="true" required>
            </div>
            <small id="domain-help" class="form-text text-muted">The base domain name of your pod (without trailing slash).</small>
        </div>
    </div>
25

26 27 28 29 30 31
    <div class="form-group row">
        <label for="email-input" class="col-2 col-form-label">Your Email</label>
        <div class="col-10">
            <input type="email" id="email-input" name="email" class="form-control" placeholder="user@domain.com" aria-describedby="email-help">
            <small id="email-help" class="form-text text-muted">We'll never share your email with anyone else.</small>
        </div>
32 33
    </div>

34 35 36 37
    <div class="form-group">
        <label for="podmin-statement-textarea">Podmin Statement</label>
        <textarea id="podmin-statement-textarea" name="podmin_statement" class="form-control" rows="7" aria-describedby="podmin-statement-help"></textarea>
        <small id="podmin-statement-help" class="form-text text-muted">You can use HTML to include links to your terms and policies and information about your pod you wish to share with users.</small>
38
    </div>
39 40 41 42 43

    <div class="form-check">
        <label class="custom-checkbox">
            <input type="checkbox" name="podmin_notify" class="_form-check-input" aria-describedby="notify-hidden-help" checked>
            <span class="custom-control-indicator"></span>
44
            <span class="custom-control-description">Notify if pod falls off the list</span>
45
        </label>
46
        <small id="notify-hidden-help" class="form-text text-muted">You will get a notification if the pod falls off the list due to a bad score.</small>
47 48 49
    </div>

    <br>
50 51
    <input type="hidden" name="add">
    <button type="submit" class="btn btn-primary" name="action" value="save">Submit</button>
52
</form>