Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6a04a1d0
authored
2015-11-30 12:12:21 -0500
by
Insu Mun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Make the user select list defaulty value to no users.
1 parent
1bfffaf5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
com/Notifications/views/create.php
com/Notifications/views/form.php
com/Notifications/views/create.php
View file @
6a04a1d
...
...
@@ -69,6 +69,9 @@ function getInputFormValues($validation, $name) {
<td>
Sent To:
</td>
<td>
<select
name=
"sendto"
class=
"wide-input-field"
>
<option
value=
"nousers"
<?php
echo
(
$validation
->
set_value
(
'sendto'
)
==
"nousers"
)
?
'selected="selected"'
:
""
;
?>
>
No Users
</option>
<option
value=
"allusers"
<?php
echo
(
$validation
->
set_value
(
'sendto'
)
==
"allusers"
)
?
'selected="selected"'
:
""
;
?>
>
All Users
</option>
...
...
com/Notifications/views/form.php
View file @
6a04a1d
...
...
@@ -86,6 +86,12 @@ use Tz\WordPress\Tools\Notifications\Settings;
<span
style=
"color:#999;"
><em>
Report Generated
</em></span>
<?php
else
:
?>
<select
name=
"sendto"
class=
"wide-input-field"
>
<option
value=
"nousers"
<?php
echo
(
$validation
->
set_value
(
'sendto'
,
$entry
->
details
[
'sendto'
]
)
==
'nousers'
)
?
'selected="selected"'
:
''
;
?>
>
No Users
</option>
<option
value=
"allusers"
<?php
echo
(
$validation
->
set_value
(
'sendto'
,
$entry
->
details
[
'sendto'
]
...
...
Please
register
or
sign in
to post a comment