Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
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
Privat - Marco Schmiedel
sidekick
Commits
78b29f0d
Commit
78b29f0d
authored
Aug 18, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - form element init
parent
9a849b0d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
284 additions
and
0 deletions
+284
-0
form.init.js
src/Views/Limitless/Form/Attachments/form.init.js
+3
-0
Config.php
src/Views/Limitless/Form/Config.php
+77
-0
Index.blade.php
src/Views/Limitless/Form/Documentation/Index.blade.php
+179
-0
Start.blade.php
src/Views/Limitless/Form/Start.blade.php
+24
-0
Stop.php
src/Views/Limitless/Form/Stop.php
+1
-0
No files found.
src/Views/Limitless/Form/Attachments/form.init.js
0 → 100644
View file @
78b29f0d
$
(
document
).
ready
(
function
()
{
})
\ No newline at end of file
src/Views/Limitless/Form/Config.php
0 → 100644
View file @
78b29f0d
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
|------------------------------------------------------------------------------------------------
|
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author: Kevin Almond Roe Yumang <kevin.yumang@itmax.email>
| Update: 2022-06-30 02:31:57
|
*/
namespace
Ceetrox\Sidekick\Views\Limitless\Form
;
/*
|------------------------------------------------------------------------------------------------
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use
View
;
/*
|------------------------------------------------------------------------------------------------
| Class "Config"
|------------------------------------------------------------------------------------------------
*/
class
Config
{
public
$methodAllocation
=
[
'Limitless::FormStart'
=>
'formStart'
,
'Limitless::FormStop'
=>
'formStop'
,
];
public
$assetAllocation
;
public
function
__construct
()
{
$this
->
assetAllocation
=
[
'Limitless::FormStart'
=>
[
'Attachments/form.init.js'
]
];
}
/*
|--------------------------------------------------------------------------------------------
| Method "formStart"
|--------------------------------------------------------------------------------------------
*/
public
function
formStart
(
$parameters
)
{
return
View
(
'Limitless::Form.Start'
);
}
/*
|--------------------------------------------------------------------------------------------
| Method "formStop"
|--------------------------------------------------------------------------------------------
*/
public
function
formStop
()
{
return
View
(
'Limitless::Form.Stop'
);
}
}
src/Views/Limitless/Form/Documentation/Index.blade.php
0 → 100644
View file @
78b29f0d
{{
--
Layout
Reference
--
}}
@
extends
(
'Limitless::Help.Layout.Master'
)
@
section
(
'Limitless::Content'
)
{{
--
Description
--
}}
@
Limitless
::
CardStart
([
'title'
=>
"Description"
,
'icon'
=>
'icon-info22'
])
<
p
>
A
styled
container
for
grouping
contents
.
For
more
details
,
refer
to
the
original
documentation
<
a
href
=
"/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/content_cards.html"
target
=
"_blank"
>
here
</
a
>.
</
p
>
@
Limitless
::
CardStop
{{
--
Basics
--
}}
@
Limitless
::
CardStart
([
'title'
=>
"Basics"
,
'icon'
=>
'icon-book'
])
<
div
class
="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Output</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::CardStart( ['title' => "
Card
"] )
@Limitless::LoremIpsum
@Limitless::CardStop
</div>
</div>
@php
$example
= base64_decode("
QExpbWl0bGVzczo6Q2FyZFN0YXJ0KCBbJ3RpdGxlJyA9PiAiQ2FyZCJdICkKCUBMaW1pdGxlc3M6OkxvcmVtSXBzdW0KQExpbWl0bGVzczo6Q2FyZFN0b3A
=
");
@endphp
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Code</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' =>
$example
])
</div>
</div>
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Parameters</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])
@Limitless::TableAutofillHeader([
['name' => 'Key'],
['name' => 'Type'],
['name' => 'Description']
])
@Limitless::TableAutofillBody([
[
['value' => 'title'],
['value' => '<i>String</i> [Default = <code>"
No
Title
"</code>]', 'secure' => false],
['value' => 'The header title of the card.']
]
])
@Limitless::TableStop
</div>
</div>
@Limitless::CardStop
{{-- Styling --}}
@Limitless::CardStart(['title' => "
Styling
", 'icon' => 'icon-brush', 'extra' => ['class' => 'card card-collapsed'] ])
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Output</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::CardStart( ['icon' => "
icon
-
newspaper
"] )
@Limitless::LoremIpsum
@Limitless::CardStop
</div>
</div>
@php
$example
= base64_decode("
QExpbWl0bGVzczo6Q2FyZFN0YXJ0KCBbJ2ljb24nID0
+
ICJpY29uLW5ld3NwYXBlciJdICkKCUBMaW1pdGxlc3M6OkxvcmVtSXBzdW0KQExpbWl0bGVzczo6Q2FyZFN0b3A
=
");
@endphp
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Code</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' =>
$example
])
</div>
</div>
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Parameters</h6>
<div class="
mt
-
2
">
@Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])
@Limitless::TableAutofillHeader([
['name' => 'Key'],
['name' => 'Type'],
['name' => 'Description']
])
@Limitless::TableAutofillBody([
[
['value' => 'icon'],
['value' => '<i>String</i> [Default = <code>null</code>]', 'secure' => false],
['value' => 'The header icon of the card.']
]
])
@Limitless::TableStop
</div>
</div>
@Limitless::CardStop
{{-- Attributes --}}
@Limitless::CardStart(['title' => "
Attributes
", 'icon' => 'icon-tree5', 'extra' => ['class' => 'card card-collapsed'] ])
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Output</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::CardStart([ 'collapsible' => false, 'removable' => true, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card my-card-css-class'] ])
@Limitless::LoremIpsum
@Limitless::CardStop
</div>
</div>
@php
$example
= base64_decode("
QExpbWl0bGVzczo6Q2FyZFN0YXJ0KFsgJ2NvbGxhcHNpYmxlJyA9PiBmYWxzZSwgJ3JlbW92YWJsZScgPT4gdHJ1ZSwgJ2V4dHJhJyA9PiBbJ3N0eWxlJyA9PiAncG9zaXRpb246cmVsYXRpdmU7JywgJ2lkJyA9PiAnZWxlbWVudG8xJywgJ2NsYXNzJyA9PiAnY2FyZCBteS1jYXJkLWNzcy1jbGFzcyddIF0pCglATGltaXRsZXNzOjpMb3JlbUlwc3VtCkBMaW1pdGxlc3M6OkNhcmRTdG9w
");
@endphp
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Code</h6>
@Limitless::Divider
<div class="
mt
-
2
">
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' =>
$example
])
</div>
</div>
<div class="
bg
-
dark
rounded
py
-
2
px
-
3
mb
-
3
">
<h6 class="
mb
-
0
font
-
weight
-
semibold
">Parameters</h6>
<div class="
mt
-
2
">
@Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])
@Limitless::TableAutofillHeader([
['name' => 'Key'],
['name' => 'Type'],
['name' => 'Description']
])
@Limitless::TableAutofillBody([
[
['value' => 'collapsible'],
['value' => '<i>Boolean</i> [Default = <code>true</code>]', 'secure' => false],
['value' => 'Option to make the card body to show or hide.']
],
[
['value' => 'removable'],
['value' => '<i>Boolean</i> [Default = <code>false</code>]', 'secure' => false],
['value' => 'Option to show or hide the close button.']
],
[
['value' => 'extra'],
['value' => '<i>Array</i> [Default = <code>[]</code>]', 'secure' => false],
['value' => 'Adds custom attributes for the card div element. existing attributes such as class will be overwritten.']
]
])
@Limitless::TableStop
</div>
</div>
@Limitless::CardStop
@stop
src/Views/Limitless/Form/Start.blade.php
0 → 100644
View file @
78b29f0d
<div
@
foreach
($
extra
as
$
k =
>
$v)
{{$
k
}}="{{$
v
}}"
@
endforeach
class=
"card"
>
<div
class=
"card-header header-elements-inline"
>
<h5
class=
"card-title"
>
@if($icon)
<i
class=
"{{ $icon }} mr-1"
></i>
@endif
{{$title}}
</h5>
<div
class=
"header-elements"
>
<div
class=
"list-icons"
>
@if($collapsible)
<a
class=
"list-icons-item"
data-action=
"collapse"
></a>
@endif
@if($removable)
<a
class=
"list-icons-item"
data-action=
"remove"
></a>
@endif
</div>
</div>
</div>
<div
class=
"card-body"
>
src/Views/Limitless/Form/Stop.php
0 → 100644
View file @
78b29f0d
</div></div>
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