-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #679: Removed CheckableType, ChoiceType, EntityType. Added Chec…
…kboxType, CheckboxesType, RadiosType, DatalistType
- Loading branch information
1 parent
735c258
commit 95b602b
Showing
22 changed files
with
175 additions
and
622 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Kris\LaravelFormBuilder\Fields; | ||
|
||
use Illuminate\Database\Eloquent\Collection; | ||
|
||
class CheckboxesType extends RadiosType | ||
{ | ||
protected function getTemplate() | ||
{ | ||
return 'checkboxes'; | ||
} | ||
|
||
public function setValue($value) | ||
{ | ||
if ($value instanceof Collection) { | ||
$value = $value->modelKeys(); | ||
} | ||
|
||
parent::setValue($value); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Kris\LaravelFormBuilder\Fields; | ||
|
||
class DatalistType extends FormField { | ||
|
||
protected function getTemplate() { | ||
return 'datalist'; | ||
} | ||
|
||
public function getAllAttributes() { | ||
return []; | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.