<?php if ($this->showForm){ ?>

    <form action="" method="post" enctype="multipart/form-data" >

    <input type="hidden" readonly="" id="uid" name="uid" value="<?= \Website\Tool\RealAdvice::generateUid() ?>">
    <input type="hidden" readonly="" id="id" name="id">

    <fieldset>
        <legend>RealAdvice</legend>

        <div class="row">
            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon" id="login">Login</span>
                    <input type="text" class="form-control" aria-describedby="login" name="login">
                </div>
            </div>

            <div class="col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon" id="pwd">Mot de passe</span>
                    <input type="password" class="form-control" aria-describedby="pwd" name="pwd">
                </div>
            </div>

        </div>





    </fieldset>

    <fieldset>
        <legend>Agence</legend>

        <div class="row">

            <div class="col-lg-6">

                <div class="input-group">
                    <span class="input-group-addon" id="name">Nom de l'agence</span>
                    <input type="text" class="form-control" aria-describedby="name" name="name">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="email">Email</span>
                    <input type="text" class="form-control" aria-describedby="email" name="email">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="phone">Téléphone</span>
                    <input type="text" class="form-control" aria-describedby="phone" name="phone">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="address">address</span>
                    <input type="text" class="form-control" aria-describedby="address" name="address">
                </div>

            </div>

            <div class="col-lg-6">


                <div class="input-group">
                    <span class="input-group-addon" id="cp">cp</span>
                    <input type="text" class="form-control" aria-describedby="cp" name="cp">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="short_description">short_description</span>
                    <input type="text" class="form-control" aria-describedby="short_description" name="short_description">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="short_description_nl">short_description_nl</span>
                    <input type="text" class="form-control" aria-describedby="short_description_nl" name="short_description_nl">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="website">website</span>
                    <input type="text" class="form-control" aria-describedby="website" name="website">
                </div>

            </div>

        <input style="display:block" type="file" name="logo" id="logo" class="form-control">

    </fieldset>

    <fieldset>
        <legend>Enquête Seerus</legend>

        <div class="row">

            <div class="col-lg-6">

                <div class="input-group">
                    <span class="input-group-addon" id="custom_url">custom_url</span>
                    <input type="text" class="form-control" aria-describedby="custom_url" name="custom_url">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="seerus_key">seerus_key</span>
                    <input type="text" class="form-control" aria-describedby="seerus_key" name="seerus_key">
                </div>

            </div>

            <div class="col-lg-6">

                <div class="input-group">
                    <span class="input-group-addon" id="seerus_secret">seerus_secret</span>
                    <input type="text" class="form-control" aria-describedby="seerus_secret" name="seerus_secret">
                </div>

                <div class="input-group">
                    <span class="input-group-addon" id="seerus_token">seerus_token</span>
                    <input type="text" class="form-control" aria-describedby="seerus_token" name="seerus_token">
                </div>

            </div>
        </div>

    </fieldset>

    <input type="submit" value="Sauvegarder" class="pull-right btn btn-default">

</form>

<?php } else { ?>

    <div><?= $this->view->message ?></div>

<?php } ?>
