File: /home/cursos.ril.es/resources/views/micuenta/editAlumno.blade.php
@extends('layouts.pagina')
@section('header')
@parent
<title>Editar datos</title>
@stop
@section('pagina')
<div class="padd-long"></div>
<div class="col-xs-12 col-sm-offset-1 col-sm-10 col-md-offset-2 col-md-8">
{!! Form::open(array('url' => '/mi-cuenta/update', 'files' => true, 'method' => 'put')) !!}
<h3>Datos básicos</h3>
<div class="form-group">
<label for="name">Nombre</label>
<input type="text" name="name" class="form-control" id="name" placeholder="name" value="{{ Auth::user()->name }}"/>
@if ($errors->has('name')) <p class="help-block">{{ $errors->first('Nombre') }}</p> @endif
</div>
<div class="form-group">
<label for="apellidos">Apellidos</label>
<input type="text" name="apellidos" class="form-control" id="apellidos" placeholder="apellidos" value="{{ Auth::user()->apellidos }}"/>
@if ($errors->has('apellidos')) <p class="help-block">{{ $errors->first('Apellidos') }}</p> @endif
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="text" name="email" class="form-control" id="email" placeholder="Email" value="{{ Auth::user()->email }}"/>
@if ($errors->has('email')) <p class="help-block">{{ $errors->first('email') }}</p> @endif
</div>
<div class="form-group">
<label for="telefono">Teléfono</label>
<input type="text" name="telefono" class="form-control" id="telefono" placeholder="Teléfono" value="{{ Auth::user()->telefono }}"/>
@if ($errors->has('telefono')) <p class="help-block">{{ $errors->first('telefono') }}</p> @endif
</div>
<div class="form-group">
<label for="telefono">Password</label>
<input type="password" name="password" class="form-control" id="password" value="{{ Auth::user()->password }}"/>
@if ($errors->has('password')) <p class="help-block">{{ $errors->first('password') }}</p> @endif
</div>
<div class="form-group">
<label for="telefono">Confirmar password</label>
<input type="password" name="password_confirmation" class="form-control" id="password_confirmation" value="{{ Auth::user()->password }}"/>
@if ($errors->has('password_confirmation')) <p class="help-block">{{ $errors->first('password_confirmation') }}</p> @endif
</div>
<h3>Datos Opcionales</h3>
<div class="form-group">
<label for="camara">Cámara</label>
<input type="text" name="camara" class="form-control" id="camara" placeholder="Cámara" value="{{ Auth::user()->camara }}"/>
@if ($errors->has('camara')) <p class="help-block">{{ $errors->first('camara') }}</p> @endif
</div>
<div class="form-group">
<label for="avatar">Avatar</label>
<img src="{{Auth::user()->avatar}}" class="img img-responsive" style="max-width: 250px;"/>
<input type="file" name="avatar" id="avatar" value="" />
</div>
<hr />
<div>
<button type="submit" class="btn btn-lg btn-comprar">Enviar</button>
</div>
{!! Form::close() !!}
</div>
@stop