Exemple #1
0
<?php

$degree = addToSquare($name, null, '_degree');
$minute = addToSquare($name, null, '_minute');
$second = addToSquare($name, null, '_second');
$cardinal = addToSquare($name, null, '_cardinal');
?>

@if ($errors->has(squareToDot($degree))
  || $errors->has(squareToDot($minute))
  || $errors->has(squareToDot($second))
  || $errors->has(squareToDot($cardinal)))
  <div class="form-group has-feedback has-error">
@else
  <div class="form-group">
@endif

  @if ($required)
    <label for="{{ $name }}" class="col-md-3 control-label required">
  @else
    <label for="{{ $name }}" class="col-md-3 control-label">
  @endif
    Center latitude
  </label>

  @if ($errors->has(squareToDot($degree)))
    <div class="col-md-2 has-feedback has-error">
  @else
    <div class="col-md-2">
  @endif
Exemple #2
0
<?php

$degree = addToSquare($name, null, '_degree');
$minute = addToSquare($name, null, '_minute');
$second = addToSquare($name, null, '_second');
?>

@if ($errors->has(squareToDot($degree))
  || $errors->has(squareToDot($minute))
  || $errors->has(squareToDot($second)))
  <div class="form-group has-feedback has-error">
@else
  <div class="form-group">
@endif

  @if ($required)
    <label for="{{ $name }}" class="col-md-3 control-label required">
  @else
    <label for="{{ $name }}" class="col-md-3 control-label">
  @endif
    Center latitude
  </label>

  @if ($errors->has(squareToDot($degree)))
    <div class="col-md-2 has-feedback has-error">
  @else
    <div class="col-md-2">
  @endif

    <div class="input-group">
      {{ Form::text($degree, null, ['class' => 'form-control', 'placeholder' => 'degree']) }}