Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advance_script_manager
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
advance_script_manager
Commits
9ce4fea4
Commit
9ce4fea4
authored
1 year ago
by
Rakesh Kumar Regar
Committed by
Kapil Kumar
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3392788
: Fix Filter form button alignment
parent
68f1cd40
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!14
Issue #3392788: Fix Filter form button alignment
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Form/ListscriptsForm.php
+3
-3
3 additions, 3 deletions
src/Form/ListscriptsForm.php
src/Form/SearchscriptsForm.php
+3
-9
3 additions, 9 deletions
src/Form/SearchscriptsForm.php
with
6 additions
and
12 deletions
src/Form/ListscriptsForm.php
+
3
−
3
View file @
9ce4fea4
...
...
@@ -106,7 +106,7 @@ class ListscriptsForm extends FormBase {
'#options'
=>
[
'0'
=>
$this
->
t
(
'-Select-'
),
'activate'
=>
$this
->
t
(
'Activate selected scripts'
),
'd
eactivat
e'
=>
$this
->
t
(
'D
eactivat
e selected scripts'
),
'd
isabl
e'
=>
$this
->
t
(
'D
isabl
e selected scripts'
),
'move_script_to_header'
=>
$this
->
t
(
'Move scripts to header'
),
'move_script_to_body'
=>
$this
->
t
(
'Move scripts to body'
),
'move_script_to_footer'
=>
$this
->
t
(
'Move scripts to footer'
),
...
...
@@ -170,7 +170,7 @@ class ListscriptsForm extends FormBase {
'visibility_section'
=>
$row
->
visibility_section
,
'created'
=>
(
$row
->
created
?
date
(
'm/d/Y H:i:s'
,
$row
->
created
)
:
'NULL'
),
'updated'
=>
(
$row
->
updated
?
date
(
'm/d/Y H:i:s'
,
$row
->
updated
)
:
'NULL'
),
'status'
=>
(
$row
->
status
==
1
?
$this
->
t
(
'
a
ctive'
)
:
$this
->
t
(
'Disabled'
)),
'status'
=>
(
$row
->
status
==
1
?
$this
->
t
(
'
A
ctive'
)
:
$this
->
t
(
'Disabled'
)),
'action'
=>
Link
::
createFromRoute
(
'Edit script'
,
'advance_script_manager.scripts_form'
,
[
'num'
=>
$row
->
id
]),
];
}
...
...
@@ -191,7 +191,7 @@ class ListscriptsForm extends FormBase {
$action
=
$form_state
->
getValue
(
'bulk_action_type'
);
switch
(
$action
)
{
case
'd
eactivat
e'
:
case
'd
isabl
e'
:
$res
=
$this
->
database
->
update
(
'advance_script_manager'
)
->
fields
([
'status'
=>
2
])
->
condition
(
'id'
,
$item_ids
,
'IN'
)
...
...
This diff is collapsed.
Click to expand it.
src/Form/SearchscriptsForm.php
+
3
−
9
View file @
9ce4fea4
...
...
@@ -68,8 +68,6 @@ class SearchscriptsForm extends FormBase {
$form
[
'container'
]
=
[
'#type'
=>
'fieldset'
,
'#prefix'
=>
'<div id="names-fieldset-wrapper">'
,
'#suffix'
=>
'</div>'
,
];
// $form['container']['visibility'] = [
...
...
@@ -82,7 +80,6 @@ class SearchscriptsForm extends FormBase {
// 'Body' => $this->t('Body'),
// ],
// '#default_value' => (!empty($visibility)) ? $visibility : 'Any',
// '#prefix' => '<div class="form--inline clearfix">',
// '#size' => 1,
// '#weight' => '0',
// ];
...
...
@@ -97,23 +94,20 @@ class SearchscriptsForm extends FormBase {
'#default_value'
=>
(
!
empty
(
$status
))
?
$status
:
''
,
'#size'
=>
1
,
'#weight'
=>
'0'
,
'#suffix'
=>
'</div>'
,
];
$form
[
'container'
][
'submit'
]
=
[
$form
[
'container'
][
'
actions'
][
'
submit'
]
=
[
'#type'
=>
'submit'
,
'#value'
=>
$this
->
t
(
'Filter'
),
'#prefix'
=>
'<div class="form--inline clearfix">'
,
];
$form
[
'container'
][
'clear'
]
=
[
$form
[
'container'
][
'
actions'
][
'
clear'
]
=
[
'#type'
=>
'link'
,
'#title'
=>
'Reset'
,
'#url'
=>
URL
::
fromRoute
(
'advance_script_manager.advance_script_controller_build'
),
'#attributes'
=>
[
'class'
=>
[
'button'
,
'
js-form-submit'
,
'form-submit'
],
'class'
=>
[
'button'
,
'js-form-submit'
,
'form-submit'
],
'role'
=>
'button'
,
],
'#suffix'
=>
'</div>'
,
];
return
$form
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment