Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
42501b0e
Commit
42501b0e
authored
Oct 20, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing for settings with custom input type
parent
b3570083
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
module-fields.blade.php
Resources/views/admin/partials/module-fields.blade.php
+4
-4
No files found.
Resources/views/admin/partials/module-fields.blade.php
View file @
42501b0e
<?php
foreach
(
$moduleSettings
as
$setting
=>
$
description
)
:
?>
<?php
foreach
(
$moduleSettings
as
$setting
=>
$
moduleInfo
)
:
?>
<?php
$settingName
=
$module
.
'_'
.
$setting
;
?>
<?php
$settingName
=
$module
.
'_'
.
$setting
;
?>
<div
class=
'form-group'
>
<div
class=
'form-group'
>
{!! Form::label($settingName . "[$lang]", $
description
) !!}
{!! Form::label($settingName . "[$lang]", $
moduleInfo['description']
) !!}
<?php
if
(
isset
(
$settings
[
$settingName
]))
:
?>
<?php
if
(
isset
(
$settings
[
$settingName
]))
:
?>
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]", $settings[$settingName]->translate($lang)->value), ['class' => 'form-control', 'placeholder' => $
description
]) !!}
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]", $settings[$settingName]->translate($lang)->value), ['class' => 'form-control', 'placeholder' => $
moduleInfo['description']
]) !!}
<?php
else
:
?>
<?php
else
:
?>
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]"), ['class' => 'form-control', 'placeholder' => $
description
]) !!}
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]"), ['class' => 'form-control', 'placeholder' => $
moduleInfo['description']
]) !!}
<?php
endif
;
?>
<?php
endif
;
?>
</div>
</div>
<?php
endforeach
;
?>
<?php
endforeach
;
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment