PHP Classes

File: src/views/crud/fields/edit/date.blade.php

Recommend this page to a friend!
  Classes of TJ Webb  >  Laravel CRUD Generator  >  src/views/crud/fields/edit/date.blade.php  >  Download  
File: src/views/crud/fields/edit/date.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel CRUD Generator
Generate MVC classes for any Laravel model
Author: By
Last change:
Date: 2 years ago
Size: 908 bytes
 

Contents

Class file image Download
<div class="col-xs-12 col-sm-12 col-md-12">
    <div class="form-group">
        <strong>{{$fieldDisplayName}}:</strong>

        <div class="input-group date" id="datetimepicker-{{$fieldColumnName}}">
            <input
                type="text"
                name="{{$fieldColumnName}}"
                value="{{$value}}"
                class="form-control"
                data-target="#datetimepicker-{{$fieldColumnName}}"
                data-toggle="datetimepicker"
                placeholder="{{$fieldDisplayName}}">

            <span class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </span>
        </div>

    </div>
    <script type="text/javascript">
        $(function () {
            $('#datetimepicker-{{$fieldColumnName}}').datetimepicker({
                format: 'YYYY-MM-DD',
            });
        });
    </script>
</div>

For more information send a message to info at phpclasses dot org.