Laravel - datepicker

   
Vista:

datepicker

Publicado por Carmen (8 intervenciones) el 03/11/2017 02:51:52
buenas noches, alguien me explica como poner un datepicker en mi formulario en las fechas de inicio salida y cumpleaños??? porfavor

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@extends('layout.layout')
 
@section('title', 'Bienvenido')
 
@section('header','Bienvenido')
 
 
@section('content')
 
 
    <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
    <!-- Datepicker Files -->
    <link rel="stylesheet" href="{{asset('datePicker/css/bootstrap-datepicker3.css')}}">
    <link rel="stylesheet" href="{{asset('datePicker/css/bootstrap-standalone.css')}}">
    <script src="{{asset('datePicker/js/bootstrap-datepicker.js')}}"></script>
    <!-- Languaje -->
    <script src="{{asset('datePicker/locales/bootstrap-datepicker.es.min.js')}}"></script>
 
 
 
<div class="panel panel-default">
    <div class="panel-heading"><a class="link" data-toggle="collapse" href="#collapse1">Ingresar datos personales</a></div>
        <div class="row ">
 
            <div class="col-md-10 col-md-offset-1">
                    <!--<legend class="text-center header">Login</legend>-->
                    <br>
                 {{Form::open(['route' => 'empleado.store', 'method' => 'post']) }}
                     <div class="form-group row">
                            {{Form::label('Id') }}
                            {{Form::text('id', null,['class' => 'form-control', 'placeholder' => 'Id'])  }}
                    </div>
 
                    <div class="form-group row">
                            {{Form::label('Nombre') }}
                            {{Form::text('nombre', null,['class' => 'form-control', 'placeholder' => 'Nombre'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Apellido') }}
                           {{Form::text('apellido', null,['class' => 'form-control', 'placeholder' => 'Apellido'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Cedula') }}
                                {{Form::text('cedula', null,['class' => 'form-control', 'placeholder' => 'Cedula'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Codigo') }}
                                {{Form::text('codigo', null,['class' => 'form-control', 'placeholder' => 'Codigo'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Cargo') }}
                                {{Form::text('cargo', null,['class' => 'form-control', 'placeholder' => 'Cargo'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Telefono') }}
                                {{Form::text('telefono', null,['class' => 'form-control', 'placeholder' => 'Telefono'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Direccion') }}
                                {{Form::text('direccion', null,['class' => 'form-control', 'placeholder' => 'Direccion'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Fecha de nacimiento') }}
                                {{Form::text('fecha_Nacimiento', null,['class' => 'form-control', 'placeholder' => 'Fecha de nacimiento'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Fecha ingreso') }}
                                {{Form::text('fecha_Inicio', null,['class' => 'form-control', 'placeholder' => 'Fecha ingreso'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Fecha salida') }}
                                {{Form::text('fecha_salida', null,['class' => 'form-control', 'placeholder' => 'Fecha salida'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Mes de cumpleaños') }}
                                {{Form::text('mes_cumpleañosl',null,['class' => 'form-control', 'placeholder' => 'Mes de cumpleaños'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Correo') }}
                                {{Form::text('correo', null,['class' => 'form-control', 'placeholder' => 'Correo'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Eps') }}
                                {{Form::text('eps', null,['class' => 'form-control', 'placeholder' => 'Eps'])  }}
                    </div>
                    <div class="form-group row">
                           {{Form::label('Arl') }}
                                {{Form::text('arl', null,['class' => 'form-control', 'placeholder' => 'Arl'])  }}
                    </div>
                    <div class="form-group row">
                            {{Form::label('Pension') }}
                                {{Form::text('pension',null,['class' => 'form-control', 'placeholder' => 'Pension'])  }}
                    </div>
                    <div class="form-group row">
                          {{Form::label('Estado') }}
                                {{Form::text('estado', null,['class' => 'form-control', 'placeholder' => 'Estado'])  }}
                    </div>
                        <div class="row">
                            <div class="form-group" align="center">
                                    {{Form::submit('Registrar',['class'=> 'btn btn-prymary']) }}
 
                            </div>
                        </div>
            </div>
        </div>
    </div>
</div>
<script>
    $('.datepicker').datepicker({
        format: "dd/mm/yyyy",
        language: "es",
        autoclose: true
    });
</script>
 
{!! Form::close() !!}
 
@endsection
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder