Created
February 5, 2015 18:13
-
-
Save ryanwinchester/002c3489e69cba4551ac to your computer and use it in GitHub Desktop.
Blade form includes
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
@include('Core::partials.viewmodelmessages') | |
<div class="form-horizontal"> | |
<fieldset> | |
<legend>Contractor Company Details</legend> | |
@include('Core::components.textinput',['label' => 'Company Name', 'name' => 'company_name']) | |
@include('Core::components.textinput',['label' => 'Registration No.', 'name' => 'reg_no']) | |
@include('Core::components.textinput',['label' => 'Vat Reg.', 'name' => 'vat_reg']) | |
</fieldset> | |
<fieldset> | |
<legend>Contractor Details</legend> | |
@include('Core::components.textinput',['label' => 'Email', 'name' => 'email']) | |
@include('Core::components.textinput',['label' => 'Tel No', 'name' => 'tel_no']) | |
@include('Core::components.textinput',['label' => 'Fax No', 'name' => 'fax_no']) | |
</fieldset> | |
<fieldset> | |
<legend>Contractor Address</legend> | |
@include('Core::components.textinput',['label' => 'Line1', 'name' => 'line1']) | |
@include('Core::components.textinput',['label' => 'Line2', 'name' => 'line2']) | |
@include('Core::components.textinput',['label' => 'City', 'name' => 'city']) | |
@include('Core::components.textinput',['label' => 'Region', 'name' => 'region']) | |
@include('Core::components.textinput',['label' => 'Postcode', 'name' => 'postcode']) | |
</fieldset> |
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
{{-- @include('Core::components.ckeditor',['label' => 'Agenda','name' => 'agenda', 'options' => '{ height: 200 }']) --}} | |
<div data-bind="validationElement: {{ $property or $name }}" | |
class="form-group"> | |
<label class="control-label {{ $labelwidth or 'col-lg-6' }}" | |
for="{{ $name }}">{{ $label or ''}}</label> | |
<div class="{{ $inputwidth or 'col-lg-12' }}"> | |
<textarea data-bind="ckEditor: {{ $property or $name }}, config: {{ $options or '{}' }}" | |
class="form-control" | |
name="{{ $name }}" | |
id="{{ $name }}" | |
placeholder="{{ $placehold or ''}}"></textarea> | |
<p data-bind="validationMessage: {{ $property or $name }}" | |
class="help-block has-error"></p> | |
</div> | |
</div> | |
{{-- $name (string), $label (string), optional - $property, $placeholder --}} | |
<div data-bind="validationElement: {{ $property or $name }}" | |
class="form-group"> | |
<label class="control-label {{ $labelwidth or 'col-lg-6' }}" | |
for="title">{{ $label or '' }}</label> | |
<div class="{{ $inputwidth or 'col-lg-12' }}"> | |
<input data-bind="value: {{ $property or $name }}" | |
id="{{ $name }}" | |
name="{{ $name }}" | |
type="text" | |
class="form-control" | |
placeholder="{{ $placeholder or '' }}"> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment