FEATURE: add translation to custom field types
This commit is contained in:
@@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers\Admin;
|
namespace App\Http\Controllers\Admin;
|
||||||
|
|
||||||
|
use App\Enumerations\CustomFieldTypes;
|
||||||
use App\Http\Requests\NewCustomFieldRequest;
|
use App\Http\Requests\NewCustomFieldRequest;
|
||||||
|
|
||||||
class CreateNewCustomField extends Controller
|
class CreateNewCustomField extends Controller
|
||||||
{
|
{
|
||||||
public function getNew()
|
public function getNew()
|
||||||
{
|
{
|
||||||
$types = [];
|
$types = CustomFieldTypes::getWithTranslations();
|
||||||
|
|
||||||
return view('admin.customFields.new', ['types' => $types]);
|
return view('admin.customFields.new', ['types' => $types]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,5 +13,9 @@ return [
|
|||||||
'regExp' => 'Match only this regular expression',
|
'regExp' => 'Match only this regular expression',
|
||||||
'minLength' => 'Minimum length',
|
'minLength' => 'Minimum length',
|
||||||
'maxLength' => 'Maximum length',
|
'maxLength' => 'Maximum length',
|
||||||
'createNew' => 'Create new field'
|
'createNew' => 'Create new field',
|
||||||
|
'date' => 'Date',
|
||||||
|
'number' => 'Number',
|
||||||
|
'selectboxList' => 'List (selectbox)',
|
||||||
|
'string' => 'Short text'
|
||||||
];
|
];
|
||||||
Reference in New Issue
Block a user