Created
April 1, 2014 09:13
-
-
Save adrelliott/9910692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.modal') | |
@section('modal-body') | |
<h1>Create an order</h1> | |
<div class="row"> | |
{{ Former::open() | |
->role('Form') | |
->class('modal-ajax-form') | |
->tableId('orders') | |
->method('POST') | |
->ajaxMethod('POST') | |
->route('app.orders.store'); | |
}} | |
@section('show-child-view') | |
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
{{ Former::text('order_title')->class('form-control input-sm copy-destination')->label('Order Summary')->placeholder('Add summary of order here')->label('Order Title') }} | |
</div> | |
<div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"> | |
{{ Former::date('order_date')->class('form-control input-sm')->label('Order Date')->value(date('Y-m-d', time()))->label('Order Date') }} | |
</div> | |
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"> | |
{{ Former::select('order_source')->class('form-control input-sm')->options($config['orderSource'])->label('Order Source') }} | |
</div> | |
</div> | |
@show | |
<input type="hidden" class="" name="user_id" value="{{ Auth::user()->id }}"> | |
<input type="hidden" class="" name="contact_id" value="{{ Input::get('contact_id') }}"> | |
<div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
<button type="submit" class="btn btn-lg btn-success pull-right"><i class="fa fa-check"></i> Save</button> | |
</div> | |
{{ Former::close() }} | |
</div> | |
@stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment