src/FieldTypes/Date.php 1 location
|
@@ 5-14 (lines=10) @@
|
| 2 |
|
|
| 3 |
|
namespace Eliurkis\Crud\FieldTypes; |
| 4 |
|
|
| 5 |
|
class Date |
| 6 |
|
{ |
| 7 |
|
public static function prepare($name, $value = null, $properties = []) |
| 8 |
|
{ |
| 9 |
|
return '<div class="input-group date"> |
| 10 |
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| 11 |
|
'.(\Form::text($name, \Input::old($name, $value), $properties['attributes'])).' |
| 12 |
|
</div>'; |
| 13 |
|
} |
| 14 |
|
} |
| 15 |
|
|
src/FieldTypes/Text.php 1 location
|
@@ 5-11 (lines=7) @@
|
| 2 |
|
|
| 3 |
|
namespace Eliurkis\Crud\FieldTypes; |
| 4 |
|
|
| 5 |
|
class Text |
| 6 |
|
{ |
| 7 |
|
public static function prepare($name, $value = null, $properties = []) |
| 8 |
|
{ |
| 9 |
|
return \Form::text($name, \Input::old($name, $value), $properties['attributes']); |
| 10 |
|
} |
| 11 |
|
} |
| 12 |
|
|
src/FieldTypes/Textarea.php 1 location
|
@@ 5-11 (lines=7) @@
|
| 2 |
|
|
| 3 |
|
namespace Eliurkis\Crud\FieldTypes; |
| 4 |
|
|
| 5 |
|
class Textarea |
| 6 |
|
{ |
| 7 |
|
public static function prepare($name, $value = null, $properties = []) |
| 8 |
|
{ |
| 9 |
|
return \Form::textarea($name, \Input::old($name, $value), $properties['attributes']); |
| 10 |
|
} |
| 11 |
|
} |
| 12 |
|
|