Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Godshell
Skynet
Commits
040c3690
Commit
040c3690
authored
Nov 29, 2014
by
Jason Frisvold
Browse files
- Add missing description field
- Update templates to set default if result.disabled doesn't exist
parent
eadd2ec9
Changes
5
Hide whitespace changes
Inline
Side-by-side
gui/app/scanners.php
View file @
040c3690
...
...
@@ -71,7 +71,7 @@
// Pull all data from the timers table
$result
=
$app
->
db
->
table
(
'timers'
)
->
select
(
'id'
,
'cloud_id'
,
'spawn_id'
,
'target_id'
,
'hour'
,
'minute'
,
'day'
,
'month'
,
'disabled'
,
'last_modified'
)
'day'
,
'month'
,
'description'
,
'disabled'
,
'last_modified'
)
->
get
();
$smarty_data
[
'results'
]
=
$result
;
...
...
gui/app/templates/edit-scantype.tpl
View file @
040c3690
...
...
@@ -56,9 +56,10 @@
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
'input-group'
>
<span
class=
"input-group-addon"
>
Disabled
</span>
<input
type=
'text'
name=
'ssh_key'
value=
'
{
$result.disabled
|
default
:
""
}
'
/>
<div
class=
'checkbox'
>
<label>
<input
type=
'checkbox'
name=
'disabled'
value=
'disabled'
{
if
$result.disabled
|
default
:
""
}
checked
{/
if
}
/>
Disabled
</label>
</div>
</div>
</div>
...
...
gui/app/templates/edit-schedule.tpl
View file @
040c3690
...
...
@@ -84,9 +84,10 @@
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
'input-group'
>
<span
class=
"input-group-addon"
>
Disabled
</span>
<input
type=
'text'
name=
'ssh_key'
value=
'
{
$result.disabled
|
default
:
""
}
'
/>
<div
class=
'checkbox'
>
<label>
<input
type=
'checkbox'
name=
'disabled'
value=
'disabled'
{
if
$result.disabled
|
default
:
""
}
checked
{/
if
}
/>
Disabled
</label>
</div>
</div>
</div>
...
...
gui/app/templates/edit-server.tpl
View file @
040c3690
...
...
@@ -94,7 +94,7 @@
<div
class=
"col-md-4"
>
<div
class=
'checkbox'
>
<label>
<input
type=
'checkbox'
name=
'disabled'
value=
'disabled'
{
if
$result.disabled
}
checked
{/
if
}
/>
Disabled
<input
type=
'checkbox'
name=
'disabled'
value=
'disabled'
{
if
$result.disabled
|
default
:
""
}
checked
{/
if
}
/>
Disabled
</label>
</div>
</div>
...
...
gui/app/templates/edit-target.tpl
View file @
040c3690
...
...
@@ -56,9 +56,10 @@
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
'input-group'
>
<span
class=
"input-group-addon"
>
Disabled
</span>
<input
type=
'text'
name=
'ssh_key'
value=
'
{
$result.disabled
|
default
:
""
}
'
/>
<div
class=
'checkbox'
>
<label>
<input
type=
'checkbox'
name=
'disabled'
value=
'disabled'
{
if
$result.disabled
|
default
:
""
}
checked
{/
if
}
/>
Disabled
</label>
</div>
</div>
</div>
...
...
Write
Preview
Supports
Markdown
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