Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
4f88f025
Commit
4f88f025
authored
Jul 09, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: dialog primary buttons and less trigger-happy process #1707
parent
b73c0e7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
firmware.volt
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
+11
-4
No files found.
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
View file @
4f88f025
...
...
@@ -216,6 +216,7 @@ POSSIBILITY OF SUCH DAMAGE.
message
:
"{{ lang._('The firewall will be rebooted directly after this firmware update.') }}"
,
buttons
:
[{
label
:
"{{ lang._('OK') }}"
,
cssClass
:
'btn-primary'
,
action
:
function
(
dialogRef
){
dialogRef
.
close
();
upgrade
();
...
...
@@ -471,15 +472,15 @@ POSSIBILITY OF SUCH DAMAGE.
$
(
'#checkupdate'
)
.
click
(
updateStatus
);
$
(
'#upgrade'
)
.
click
(
upgrade_ui
);
$
(
'#audit'
)
.
click
(
audit
);
// show upgrade message if there
if
(
$
(
'#message'
)
.
html
()
!=
''
)
{
$
(
'#upgrade_maj'
)
.
click
(
function
()
{
BootstrapDialog
.
show
({
type
:
BootstrapDialog
.
TYPE_WARNING
,
title
:
"{{ lang._('
End-of-Life Notice
') }}"
,
title
:
"{{ lang._('
Upgrade instructions
') }}"
,
message
:
$
(
'#message'
)
.
html
(),
buttons
:
[{
<?
php
if
(
file_exists
(
'/usr/local/opnsense/firmware-upgrade'
))
:
?>
label: "{{ lang._('Upgrade') }}",
cssClass: 'btn-primary',
action: function(dialogRef){
dialogRef.close();
$.upgrade_needs_reboot = 1;
...
...
@@ -494,7 +495,7 @@ POSSIBILITY OF SUCH DAMAGE.
}
}]
});
}
}
);
// populate package information
packagesInfo(true);
...
...
@@ -620,7 +621,13 @@ POSSIBILITY OF SUCH DAMAGE.
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<?php
if
(
file_exists
(
'/usr/local/opnsense/firmware-message'
))
:
?>
<div
id=
"message"
style=
"display:none"
class=
"alert alert-warning"
role=
"alert"
>
<?=
@
file_get_contents
(
'/usr/local/opnsense/firmware-message'
)
?>
</div>
<div
class=
"alert alert-warning"
role=
"alert"
style=
"min-height: 65px;"
>
<button
class=
'btn btn-primary pull-right'
id=
"upgrade_maj"
>
{{ lang._('Upgrade instructions') }}
</button>
<div
style=
"margin-top: 8px;"
>
{{ lang._('This software release has reached its designated end of life.') }}
</div>
</div>
<?php
endif
?>
<div
class=
"alert alert-info"
role=
"alert"
style=
"min-height: 65px;"
>
<button
class=
'btn btn-primary pull-right'
id=
"upgrade"
style=
"display:none"
><i
id=
"upgrade_progress"
class=
""
></i>
{{ lang._('Upgrade now') }}
</button>
<button
class=
'btn btn-primary pull-right'
id=
"audit"
><i
id=
"audit_progress"
class=
""
></i>
{{ lang._('Audit now') }}
</button>
...
...
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