Exemplo n.º 1
0
                    <?php 
if (session()->hasErrors()) {
    ?>
                        <div class="alert alert-danger">
                            <p><?php 
    echo session()->getErrors()->first();
    ?>
</p>
                        </div>
                    <?php 
}
?>

                    <div class="form-group">
                        <label for="name">Name:</label>
                        <input type="text" name="name" <?php 
oldInput('name');
?>
 class="form-control">
                    </div>

                    <button type="submit" class="btn btn-default">Submit</button>
                </form>

            </div>

        </div>
    </div>

<?php 
include view('layout.footer');
Exemplo n.º 2
0
                <?php 
if (session()->hasErrors()) {
    ?>
                    <div class="alert alert-danger">
                        <p><?php 
    echo session()->getErrors()->first();
    ?>
</p>
                    </div>
                <?php 
}
?>
                <div class="form-group">
                    <label for="email">E-mail Address:</label>
                    <input type="email" <?php 
oldInput('email');
?>
 name="email" class="form-control" placeholder="*****@*****.**">
                </div>
                
                <div class="form-group">
                    <label for="password">Password:</label>
                    <input type="password" name="password" class="form-control">
                </div>

                <div class="form-group">
                    <button class="btn btn-default padding-medium" type="submit">Login</button>
                </div>
            </form>
        </div>
    </div>
Exemplo n.º 3
0
                <div class="form-group">
                    <label for="password">Confirm Password:</label>
                    <input type="password" name="password_confirmation" class="form-control">
                </div>

                <div class="form-group">
                    <label for="phone">Phone Number:</label>
                    <input type="text" <?php 
oldInput('phone');
?>
 name="phone" class="form-control" placeholder="07123456789">
                </div>

                <div class="form-group">
                    <label for="address">Address:</label>
                    <textarea name="address" class="form-control" cols="30" rows="4"><?php 
echo oldInput('address', false);
?>
</textarea>
                </div>

                <div class="form-group">
                    <button class="btn btn-default padding-medium" type="submit">Register</button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php 
include view('layout.footer');
Exemplo n.º 4
0
</textarea>
                    </div>

                    <div class="form-group">
                        <label for="cast">Cast:</label>
                        <textarea name="cast" class="form-control" cols="30" rows="5"><?php 
echo oldInput('cast', false);
?>
</textarea>
                    </div>

                    <div class="form-group">
                        <label for="price">Price band:</label>
                        <select name="price" class="form-control">
                            <?php 
$oldPrice = oldInput('price', false);
?>
                            <option <?php 
if ($oldGenre == 'A') {
    echo 'selected="selected"';
}
?>
 value="A">A - £3.50</option>
                            <option <?php 
if ($oldGenre == 'B') {
    echo 'selected="selected"';
}
?>
 value="B">B - £2.50</option>
                            <option <?php 
if ($oldGenre == 'C') {