Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-management
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John
esi-management
Commits
d74d17ef
Commit
d74d17ef
authored
Feb 15, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update form esi admin entity and news
parent
d8ab26d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
esi-management-entity-form.php
...in/modules/entity/partials/esi-management-entity-form.php
+2
-2
class-esi-management-news-form.php
...ent/admin/modules/news/class-esi-management-news-form.php
+4
-0
esi-management-news-form.php
.../admin/modules/news/partials/esi-management-news-form.php
+2
-2
No files found.
wp-content/plugins/esi-management/admin/modules/entity/partials/esi-management-entity-form.php
View file @
d74d17ef
...
...
@@ -59,7 +59,7 @@ add_thickbox();
<label
for=
"entity_type_id"
>
<?php
_e
(
'Entity Type'
,
'esi'
);
?>
</label>
</th>
<td>
<select
id=
"entity_type_id"
name=
"entity_type_id"
>
<select
id=
"entity_type_id"
name=
"entity_type_id"
required=
"required"
>
<option
value=
"0"
>
Select an Entity Type
</option>
<?php
foreach
(
$entity_types
as
$entity_type
)
:
?>
<option
value=
"
<?=
$entity_type
->
id
?>
"
<?=
(
$entity_type
->
id
==
$item
->
entity_type_id
)
?
'selected="selected"'
:
''
?>
>
<?=
$entity_type
->
name
?>
</option>
...
...
@@ -202,7 +202,7 @@ add_thickbox();
<label
for=
"technology_id"
>
<?php
_e
(
'Technology'
,
'esi'
);
?>
</label>
</th>
<td>
<select
id=
"technology_id"
class=
"chosen-select"
name=
"technology_id[]"
multiple=
"multiple"
>
<select
id=
"technology_id"
class=
"chosen-select"
name=
"technology_id[]"
multiple=
"multiple"
required=
"required"
>
<?php
foreach
(
$technologies
as
$technology
)
:
?>
<option
value=
"
<?=
$technology
->
id
?>
"
<?=
(
in_array
(
$technology
->
id
,
$technologies_selected
))
?
"selected='selected'"
:
""
?>
>
<?=
$technology
->
name
?>
</option>
<?php
endforeach
;
?>
...
...
wp-content/plugins/esi-management/admin/modules/news/class-esi-management-news-form.php
View file @
d74d17ef
...
...
@@ -93,6 +93,10 @@ class Esi_Management_News_Form {
$errors
[]
=
__
(
'Error: Radar function is required'
,
'esi'
);
}
if
(
!
$technology_ids
)
{
$errors
[]
=
__
(
'Error: Technology is required'
,
'esi'
);
}
// bail out if error found
if
(
$errors
)
{
$first_error
=
reset
(
$errors
);
...
...
wp-content/plugins/esi-management/admin/modules/news/partials/esi-management-news-form.php
View file @
d74d17ef
...
...
@@ -100,7 +100,7 @@ add_thickbox();
<label
for=
"entity_id"
>
<?php
_e
(
'Entity'
,
'esi'
);
?>
</label>
</th>
<td>
<select
id=
"entity_id"
name=
"entity_id[]"
class=
"chosen-select"
multiple=
"multiple"
style=
"float:left"
>
<select
id=
"entity_id"
name=
"entity_id[]"
class=
"chosen-select"
multiple=
"multiple"
required=
"required"
style=
"float:left"
>
<option
value=
"0"
>
Select a entity
</option>
<?php
foreach
(
$companies
as
$entity
)
:
?>
<option
value=
"
<?=
$entity
->
id
?>
"
<?=
(
in_array
(
$entity
->
id
,
$entities_selected
))
?
"selected='selected'"
:
""
?>
>
<?=
$entity
->
name
?>
</option>
...
...
@@ -159,7 +159,7 @@ add_thickbox();
<label
for=
"technology_id"
>
<?php
_e
(
'Technology'
,
'esi'
);
?>
</label>
</th>
<td>
<select
id=
"technology_id"
class=
"chosen-select"
name=
"technology_sub_id[]"
multiple=
"multiple"
>
<select
id=
"technology_id"
class=
"chosen-select"
name=
"technology_sub_id[]"
multiple=
"multiple"
required=
"required"
>
<?php
foreach
(
$technologies
as
$technology
)
:
?>
<option
value=
"
<?=
$technology
->
id
?>
"
<?=
(
in_array
(
$technology
->
id
,
$technologies_selected
))
?
"selected='selected'"
:
""
?>
>
<?=
$technology
->
name
?>
</option>
<?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