new table form html, css

This commit is contained in:
2018-07-21 18:06:37 +02:00
parent ba721592cd
commit 3242ae9cbe
26 changed files with 749 additions and 148 deletions
+11
View File
@@ -0,0 +1,11 @@
<div class="col-md-1 pl-0">
@if($w->help)
<i class="fa-question-circle"
data-toggle="tooltip"
data-placement="right"
@if(false!==strpos($w->help, '<'))
data-html="true"
@endif
title="{{ $w->help }}"></i>
@endif
</div>
+21
View File
@@ -0,0 +1,21 @@
@php
/** @var \App\View\Widget $w */
@endphp
<div class="row form-group">
<label for="field-{{ $w->name }}" class="col-md-3 col-form-label text-md-right">{{ $w->label }}</label>
<div class="col-md-8 pl-0">
<input id="field-{{ $w->name }}"
name="{{ $w->name }}"
class="form-control{{ $errors->has($w->name) ? ' is-invalid' : '' }}"
value="{{ $w->value }}"
{!! $w->attributes !!}>
@if ($errors->has($w->name))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first($w->name) }}</strong>
</span>
@endif
</div>
@include('form._help')
</div>
+20
View File
@@ -0,0 +1,20 @@
@php
/** @var \App\View\Widget $w */
@endphp
<div class="row form-group">
<label for="field-{{ $w->name }}" class="col-md-3 col-form-label text-md-right">{{ $w->label }}</label>
<div class="col-md-8 pl-0">
<textarea id="field-{{ $w->name }}"
name="{{ $w->name }}"
class="form-control{{ $errors->has($w->name) ? ' is-invalid' : '' }}"
{!! $w->attributes !!}>{{$w->value}}</textarea>
@if ($errors->has($w->name))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first($w->name) }}</strong>
</span>
@endif
</div>
@include('form._help')
</div>