|
@@ -148,6 +148,7 @@ class Service extends Make
|
|
|
*/
|
|
*/
|
|
|
protected function getframeImageOnePhpContent(string $field, string $name, bool $required = false, string $icon = 'ios-add', string $width = '950px', string $height = '505px')
|
|
protected function getframeImageOnePhpContent(string $field, string $name, bool $required = false, string $icon = 'ios-add', string $width = '950px', string $height = '505px')
|
|
|
{
|
|
{
|
|
|
|
|
+ $name = addslashes($name);
|
|
|
$requiredText = $required ? '->required()' : '';
|
|
$requiredText = $required ? '->required()' : '';
|
|
|
$content = <<<CONTENT
|
|
$content = <<<CONTENT
|
|
|
\$rule[] = FormBuilder::frameImage('$field', '$name', url(config('app.admin_prefix', 'admin') . '/widget.images/index', ['fodder' => '$field']), \$info['$field'] ?? '')->icon('$icon')->width('$width')->height('$height')->modal(['footer-hide' => true])$requiredText
|
|
\$rule[] = FormBuilder::frameImage('$field', '$name', url(config('app.admin_prefix', 'admin') . '/widget.images/index', ['fodder' => '$field']), \$info['$field'] ?? '')->icon('$icon')->width('$width')->height('$height')->modal(['footer-hide' => true])$requiredText
|
|
@@ -170,6 +171,7 @@ CONTENT;
|
|
|
*/
|
|
*/
|
|
|
protected function getframeImagesPhpContent(string $field, string $name, bool $required = false, string $icon = 'ios-images', int $maxLength = 10, string $width = '950px', string $height = '505px')
|
|
protected function getframeImagesPhpContent(string $field, string $name, bool $required = false, string $icon = 'ios-images', int $maxLength = 10, string $width = '950px', string $height = '505px')
|
|
|
{
|
|
{
|
|
|
|
|
+ $name = addslashes($name);
|
|
|
$requiredText = $required ? '->required()' : '';
|
|
$requiredText = $required ? '->required()' : '';
|
|
|
$content = <<<CONTENT
|
|
$content = <<<CONTENT
|
|
|
\$rule[] = FormBuilder::frameImages('$field', '$name', url(config('app.admin_prefix', 'admin') . '/widget.images/index', ['fodder' => '$field', 'type' => 'many', 'maxLength' => $maxLength]), \$info['$field'] ?? [])->maxLength($maxLength)->icon('$icon')->width('$width')->height('$height')->modal(['footer-hide' => true])$requiredText
|
|
\$rule[] = FormBuilder::frameImages('$field', '$name', url(config('app.admin_prefix', 'admin') . '/widget.images/index', ['fodder' => '$field', 'type' => 'many', 'maxLength' => $maxLength]), \$info['$field'] ?? [])->maxLength($maxLength)->icon('$icon')->width('$width')->height('$height')->modal(['footer-hide' => true])$requiredText
|