forked from crocodic-studio/crudbooster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/crocodic-studio/master'
- Loading branch information
Showing
147 changed files
with
14,588 additions
and
1,038 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 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
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,23 @@ | ||
# Checkbox Form Type | ||
|
||
### Checkbox With Your Own Enum | ||
```php | ||
$this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'checkbox','dataenum'=>'Android;IOS;Website']; | ||
``` | ||
|
||
### Checkbox With Looking Up Table | ||
```php | ||
$this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'checkbox','datatable'=>'platform,name']; | ||
``` | ||
|
||
### Legend | ||
| Attribute Name | Example | | ||
| -------------- | ------- | | ||
| dataenum | `Android;Ios;Website` . sparate with comma | | ||
| datatable | `table_name,field_name` . field_name is field that want to show as label | | ||
|
||
## What's Next | ||
- [Form Input Type: custom form](./form-custom.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,14 @@ | ||
# Custom Form Type | ||
You might create your own html input type by using `custom` type | ||
|
||
### Code Sample | ||
```php | ||
$custom_element = view('custom_element')->render(); | ||
$this->form[] = ["label"=>"Label Name","name"=>"custom_field","type"=>"custom","html"=>$custom_element]; | ||
``` | ||
|
||
## What's Next | ||
- [Form Input Type: datamodal](./form-datamodal.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,21 @@ | ||
# Datamodal Form Type | ||
Showing popup that contains a data table that you can choose | ||
|
||
## Code Example | ||
```php | ||
$this->form[] = ['label'=>'Product Name','name'=>'products_id','type'=>'datamodal','datamodal_table'=>'products','datamodal_where'=>'','datamodal_columns'=>'name,description,price','datamodal_columns_alias'=>'Name,Description,Price','required'=>true]; | ||
``` | ||
## Legend | ||
| Attribute Name | Example | Description | ||
| -------------- | ----------- | --------- | | ||
| datamodal_table (Required) | E.g : `products` | Table name | | ||
| datamodal_columns (Required) | E.g : `name,description,price` | fields name to show. sparate with comma | | ||
| datamodal_columns_alias (Required) | E.g : `Name,Description,Price` | alias of fields | | ||
| datamodal_where | E.g : `id != 1` | Sql query where | | ||
| datamodal_size | E.g : `large` or `default` | popup size | | ||
|
||
## What's Next | ||
- [Form Input Type: date](./form-date.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,13 @@ | ||
# Date Form Type | ||
Showing datepicker in the input type | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Date Of Birth','name'=>'date_birth','type'=>'date']; | ||
``` | ||
|
||
## What's Next | ||
- [Form Input Type: datetime](./form-datetime.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,12 @@ | ||
# DateTime Form Type | ||
Showing datepicker and time in the input type | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'DateTime Event','name'=>'datetime','type'=>'datetime']; | ||
``` | ||
## What's Next | ||
- [Form Input Type: email](./form-email.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,13 @@ | ||
# Email Form Type | ||
Set input type html as email | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Email','name'=>'email','type'=>'email']; | ||
``` | ||
|
||
## What's Next | ||
- [Form Input Type: filemanager](./form-filemanager.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,21 @@ | ||
# Filemanager Form Type | ||
Upload a file with popup file manager | ||
|
||
### File Upload Sample | ||
```php | ||
$this->form[] = ['label'=>'Document','name'=>'document','type'=>'filemanager','filemanager_type'=>'file']; | ||
``` | ||
|
||
### Image Upload Sample | ||
```php | ||
$this->form[] = ['label'=>'Photo','name'=>'photo','type'=>'filemanager','filemanager_type'=>'image']; | ||
``` | ||
|
||
## What's Next | ||
- [How To Make The Graded Select Boxes (Parent Select -> Child Select -> Etc..)](./how-make-graded-select-box.md) | ||
|
||
## What's Next | ||
- [Form Input Type: googlemaps](./form-googlemaps.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,35 @@ | ||
# Google Maps Form Type | ||
Input address with google maps popup | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Address','name'=>'address','type'=>'googlemaps']; | ||
``` | ||
### Input Address with Latitude & Longitude | ||
#### Sample Table | ||
| Field Name | Data Type | | ||
| ---------- | --------- | | ||
| id | int(pk) | | ||
| created_at | timestamp | | ||
| name | varchar(255) | | ||
| address | varchar(255) | | ||
| lat | varchar(255) | | ||
| lng | varchar(255) | | ||
|
||
#### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Address','name'=>'address','type'=>'googlemaps','latitude'=>'lat','longitude'=>'lng']; | ||
``` | ||
|
||
### Attribute Available | ||
| Attribute Name | Example | Description | | ||
| -------------- | ------- | ----------- | | ||
| latitude | `latitude` | latitude field | | ||
| longitude | `longitude` | longitude field | | ||
|
||
|
||
## What's Next | ||
- [Form Input Type: hidden](./form-hidden.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,13 @@ | ||
# Hidden Form Type | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Label Name','name'=>'field_name','type'=>'hidden','value'=>'YOUR_CUSTOM_VALUE']; | ||
``` | ||
By put `value` attribute, it will force the value to your setted value | ||
|
||
## What's Next | ||
- [Form Input Type: money](./form-money.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,13 @@ | ||
# Money Form Type | ||
Input text with auto money number format | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Price','name'=>'price','type'=>'money']; | ||
``` | ||
|
||
## What's Next | ||
- [Form Input Type: number](./form-number.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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 @@ | ||
# Number Form Type | ||
Showing input number | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Amount','name'=>'amount','type'=>'number','min'=>0,'max'=>100]; | ||
``` | ||
By putting `min` attribute, it will make a minimal amount of the number | ||
and also by putting `max` attribute, it will make a maximal amount of the number | ||
|
||
## What's Next | ||
- [Form Input Type: password](./form-password.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,14 @@ | ||
# Password Form Type | ||
Showing a password input type | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Password','name'=>'password','type'=>'password']; | ||
``` | ||
It will auto make a `hash` once the data saved | ||
|
||
## What's Next | ||
- [Form Input Type: radio](./form-radio.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
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,20 @@ | ||
# Radio Form Type | ||
Showing radio button input type | ||
|
||
### Code Sample | ||
```php | ||
$this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'radio','dataenum'=>'Android;Ios;Website']; | ||
``` | ||
**Important** . You need to set the dataenum attribute, then fill it with the options. The sparate is comma. | ||
|
||
### Code Sample With Custom Value | ||
```php | ||
$this->form[] = ['label'=>'Platform','name'=>'platform','type'=>'radio','dataenum'=>'1|Android;2|Ios;3|Website']; | ||
``` | ||
If you want to custom the value of radio button, then put `|` as a sparator between the value and label. | ||
|
||
## What's Next | ||
- [Form Input Type: select](./form-select.md) | ||
|
||
## Table Of Contents | ||
- [Back To Index](./index.md) |
Oops, something went wrong.