Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Tourinsoft
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Bolt Extensions
Tourinsoft
Commits
8627ee38
Commit
8627ee38
authored
Nov 13, 2018
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(all): update fields
parent
35e6786a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
30 deletions
+30
-30
FluxType.php
src/Form/FluxType.php
+2
-2
Flux.php
src/Storage/Entity/Flux.php
+10
-10
Flux.php
src/Storage/Schema/Table/Flux.php
+2
-2
add.html.twig
templates/Backend/flux/add.html.twig
+7
-7
edit.html.twig
templates/Backend/flux/edit.html.twig
+7
-7
list.html.twig
templates/Backend/flux/list.html.twig
+2
-2
No files found.
src/Form/FluxType.php
View file @
8627ee38
...
...
@@ -40,7 +40,7 @@ class FluxType extends AbstractType
),
])
->
add
(
'code'
,
'
flux
code'
,
TextType
::
class
,
[
'label'
=>
Translator
::
__
(
'appolo.tourinsoft.code'
),
...
...
@@ -54,7 +54,7 @@ class FluxType extends AbstractType
]
])
->
add
(
'keys'
,
'
flux
keys'
,
KeyType
::
class
,
[
'label'
=>
false
,
...
...
src/Storage/Entity/Flux.php
View file @
8627ee38
...
...
@@ -16,9 +16,9 @@ class Flux extends Entity
/** @var string */
protected
$title
;
/** @var string */
protected
$code
;
protected
$
flux
code
;
/** @var array */
protected
$keys
;
protected
$
flux
keys
;
/** @var string */
protected
$contentType
;
...
...
@@ -71,36 +71,36 @@ class Flux extends Entity
/**
* @return string
*/
public
function
getCode
()
public
function
get
Flux
Code
()
{
return
$this
->
code
;
return
$this
->
flux
code
;
}
/**
* @param string $code
* @return Flux
*/
public
function
setCode
(
$code
)
public
function
set
Flux
Code
(
$code
)
{
$this
->
code
=
$code
;
$this
->
flux
code
=
$code
;
return
$this
;
}
/**
* @return array
*/
public
function
getKeys
()
public
function
get
Flux
Keys
()
{
return
$this
->
keys
;
return
$this
->
flux
keys
;
}
/**
* @param array $keys
* @return Flux
*/
public
function
setKeys
(
$keys
)
public
function
set
Flux
Keys
(
$keys
)
{
$this
->
keys
=
$keys
;
$this
->
flux
keys
=
$keys
;
return
$this
;
}
...
...
src/Storage/Schema/Table/Flux.php
View file @
8627ee38
...
...
@@ -14,8 +14,8 @@ class Flux extends BaseTable
{
$this
->
table
->
addColumn
(
'id'
,
'integer'
,
[
'autoincrement'
=>
true
]);
$this
->
table
->
addColumn
(
'title'
,
'string'
,
[
'notnull'
=>
true
]);
$this
->
table
->
addColumn
(
'code'
,
'string'
,
[
'notnull'
=>
true
]);
$this
->
table
->
addColumn
(
'keys'
,
'json_array'
,
[
'notnull'
=>
true
]);
$this
->
table
->
addColumn
(
'
flux
code'
,
'string'
,
[
'notnull'
=>
true
]);
$this
->
table
->
addColumn
(
'
flux
keys'
,
'json_array'
,
[
'notnull'
=>
true
]);
$this
->
table
->
addColumn
(
'contentType'
,
'string'
,
[
'notnull'
=>
true
]);
$this
->
table
->
addColumn
(
'viewless'
,
'boolean'
,
[
'default'
=>
false
]);
$this
->
table
->
addColumn
(
'searchable'
,
'boolean'
,
[
'default'
=>
true
]);
...
...
templates/Backend/flux/add.html.twig
View file @
8627ee38
...
...
@@ -24,21 +24,21 @@
</div>
<div
data-bolt-fieldset=
"text"
>
<fieldset
class=
"form-group bolt-field-text"
>
{{
form_label
(
form.code
)
}}
{{
form_label
(
form.
flux
code
)
}}
<div
class=
"col-xs-12"
>
{{
form_widget
(
form.code
)
}}
{{
form_errors
(
form.code
)
}}
{{
form_widget
(
form.
flux
code
)
}}
{{
form_errors
(
form.
flux
code
)
}}
</div>
</fieldset>
</div>
{%
for
key
in
form.keys
%}
{%
for
key
in
form.
flux
keys
%}
<div
data-bolt-fieldset=
"text"
>
<fieldset
class=
"form-group bolt-field-text"
>
{{
form_label
(
attribute
(
form.keys
,
key.vars.name
))
}}
{{
form_label
(
attribute
(
form.
flux
keys
,
key.vars.name
))
}}
<div
class=
"col-xs-12"
>
{{
form_widget
(
attribute
(
form.keys
,
key.vars.name
))
}}
{{
form_errors
(
attribute
(
form.keys
,
key.vars.name
))
}}
{{
form_widget
(
attribute
(
form.
flux
keys
,
key.vars.name
))
}}
{{
form_errors
(
attribute
(
form.
flux
keys
,
key.vars.name
))
}}
</div>
</fieldset>
</div>
...
...
templates/Backend/flux/edit.html.twig
View file @
8627ee38
...
...
@@ -24,21 +24,21 @@
<div
data-bolt-fieldset=
"text"
>
<fieldset
class=
"form-group bolt-field-text"
>
{{
form_label
(
form.code
)
}}
{{
form_label
(
form.
flux
code
)
}}
<div
class=
"col-xs-12"
>
{{
form_widget
(
form.code
)
}}
{{
form_errors
(
form.code
)
}}
{{
form_widget
(
form.
flux
code
)
}}
{{
form_errors
(
form.
flux
code
)
}}
</div>
</fieldset>
</div>
{%
for
key
in
form.keys
%}
{%
for
key
in
form.
flux
keys
%}
<div
data-bolt-fieldset=
"text"
>
<fieldset
class=
"form-group bolt-field-text"
>
{{
form_label
(
attribute
(
form.keys
,
key.vars.name
))
}}
{{
form_label
(
attribute
(
form.
flux
keys
,
key.vars.name
))
}}
<div
class=
"col-xs-12"
>
{{
form_widget
(
attribute
(
form.keys
,
key.vars.name
))
}}
{{
form_errors
(
attribute
(
form.keys
,
key.vars.name
))
}}
{{
form_widget
(
attribute
(
form.
flux
keys
,
key.vars.name
))
}}
{{
form_errors
(
attribute
(
form.
flux
keys
,
key.vars.name
))
}}
</div>
</fieldset>
</div>
...
...
templates/Backend/flux/list.html.twig
View file @
8627ee38
...
...
@@ -35,9 +35,9 @@
<tr
class=
"dim"
id=
"item_1"
>
<td
class=
"id hidden-xs"
>
{{
item.id
}}
</td>
<td><span><strong>
{{
item.title
}}
</strong></span></td>
<td>
{{
item.code
}}
</td>
<td>
{{
item.
flux
code
}}
</td>
<td>
{%
for
index
,
value
in
item.keys
%}
{%
for
index
,
value
in
item.
flux
keys
%}
<strong>
{{
index
}}
</strong>
:
{{
value
}}
<br
/>
{%
endfor
%}
{#
{{
item.key }}#}
...
...
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