Commit 1d0f083d authored by Fabian Franz's avatar Fabian Franz

change dialog style

parent 1923ee6c
......@@ -150,7 +150,7 @@ $( document ).ready(function() {
$(".act_delete").click(function(){
var id = $(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Action");?>",
message: "<?=gettext("Remove Configuration Backup");?> <br/> <?=gettext('Version');?>: " + id,
buttons: [{
......
......@@ -273,7 +273,7 @@ $(document).ready(function() {
$("#ResetRRD").click(function(event){
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Syslog");?>",
message: "<?=gettext('Do you really want to reset the RRD graphs? This will erase all graph data.');?>",
buttons: [{
......@@ -294,7 +294,7 @@ $(document).ready(function() {
$("#resetlogs").click(function(event){
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Syslog");?>",
message: "<?=gettext('Do you really want to reset the log files? This will erase all local log data.');?>",
buttons: [{
......
......@@ -150,7 +150,7 @@ $( document ).ready(function() {
$(".act_delete").click(function(){
var id = $(this).attr("id").split('_').pop(-1);
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Aliases");?>",
message: "<?=gettext("Do you really want to delete this alias? All elements that still use it will become invalid (e.g. filter rules)!");?>",
buttons: [{
......
......@@ -166,7 +166,7 @@ $( document ).ready(function() {
if (id != 'x') {
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Port Forward");?>",
message: "<?=gettext("Do you really want to delete this rule?");?>",
buttons: [{
......@@ -185,7 +185,7 @@ $( document ).ready(function() {
} else {
// delete selected
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Port Forward");?>",
message: "<?=gettext("Do you really want to delete the selected rules?");?>",
buttons: [{
......
......@@ -114,7 +114,7 @@ $main_buttons = array(
if (id != 'x') {
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("1:1");?>",
message: "<?=gettext("Do you really want to delete this rule?");?>",
buttons: [{
......@@ -133,7 +133,7 @@ $main_buttons = array(
} else {
// delete selected
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("1:1");?>",
message: "<?=gettext("Do you really want to delete the selected mappings?");?>",
buttons: [{
......
......@@ -116,7 +116,7 @@ $main_buttons = array(
if (id != 'x') {
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?=gettext("NPT");?>",
message: "<?=gettext("Do you really want to delete this rule?");?>",
buttons: [{
......@@ -135,7 +135,7 @@ $main_buttons = array(
} else {
// delete selected
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("NPT");?>",
message: "<?=gettext("Do you really want to delete the selected rules?");?>",
buttons: [{
......
......@@ -183,7 +183,7 @@ include("head.inc");
if (id != 'x') {
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Nat")." ".gettext("Outbound");?>",
message: "<?=gettext("Do you really want to delete this rule?");?>",
buttons: [{
......@@ -203,7 +203,7 @@ include("head.inc");
} else {
// delete selected
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?=gettext("Nat")." ".gettext("Outbound");?>",
message: "<?=gettext("Do you really want to delete the selected rules?");?>",
buttons: [{
......
......@@ -138,7 +138,7 @@ $( document ).ready(function() {
if (id != 'x') {
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Rules");?>",
message: "<?=gettext("Do you really want to delete this rule?");?>",
buttons: [{
......@@ -157,7 +157,7 @@ $( document ).ready(function() {
} else {
// delete selected
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Rules");?>",
message: "<?=gettext("Do you really want to delete the selected rules?");?>",
buttons: [{
......
......@@ -88,7 +88,7 @@ $main_buttons = array(
var id = $(this).attr("id").split('_').pop(-1);
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Rules");?>",
message: "<?=gettext('Do you really want to delete this schedule?');?>",
buttons: [{
......
......@@ -219,7 +219,7 @@ $main_buttons = array(
var id = $(this).attr("id").split('_').pop(-1);
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Virtual IP");?>",
message: "<?=gettext("Do you really want to delete this entry?");?>",
buttons: [{
......
......@@ -357,7 +357,7 @@ include("head.inc");
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Interfaces");?>",
message: "<?=gettext("Do you really want to delete this interface?"); ?>",
buttons: [{
......
......@@ -88,7 +88,7 @@ $main_buttons = array(
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Bridge");?>",
message: "<?=gettext("Do you really want to delete this bridge?");?>",
buttons: [{
......
......@@ -83,7 +83,7 @@ $main_buttons = array(
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Point-to-Point");?>",
message: "<?=gettext("Do you really want to delete this PPP interface?");?>",
buttons: [{
......
......@@ -81,7 +81,7 @@ $main_buttons = array(
var id = $(this).data("id");
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Wireless");?>",
message: "<?=gettext("Do you really want to delete this wireless clone?");?>",
buttons: [{
......
......@@ -115,7 +115,7 @@ $( document ).ready(function() {
event.preventDefault();
var id = $(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Tunable");?>",
message: "<?=gettext("Do you really want to delete this entry?");?>",
buttons: [{
......
......@@ -370,7 +370,7 @@ $( document ).ready(function() {
var id = $(this).attr("id").split('_').pop(-1);
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Server");?>",
message: "<?=gettext("Do you really want to delete this Server?");?>",
buttons: [{
......
......@@ -426,7 +426,7 @@ $main_buttons = array(
event.preventDefault();
var id = $(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Authorities");?>",
message: "<?=gettext("Do you really want to delete this Certificate Authority and its CRLs, and unreference any associated certificates?");?>",
buttons: [{
......
......@@ -537,7 +537,7 @@ if (empty($act)) {
event.preventDefault();
var id = $(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Certificates");?>",
message: "<?=gettext("Do you really want to delete this Certificate?");?>",
buttons: [{
......
......@@ -292,7 +292,7 @@ include("head.inc");
var id = $(this).data('id');
var descr = $(this).data('descr');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?=gettext("Certificates");?>",
message: "<?=gettext("Do you really want to delete this Certificate Revocation List?");?> (" + descr + ")" ,
buttons: [{
......@@ -316,7 +316,7 @@ include("head.inc");
var id = $(this).data('id');
var certref = $(this).data('certref');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?=gettext("Certificates");?>",
message: "<?=gettext("Delete this certificate from the CRL ");?>",
buttons: [{
......
......@@ -126,7 +126,7 @@ $( document ).ready(function() {
var id = $(this).data('id');
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Gateway-group");?>",
message: '<?=gettext("Do you really want to delete this gateway group?");?>',
buttons: [{
......
......@@ -220,7 +220,7 @@ $( document ).ready(function() {
event.preventDefault();
var id = $(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Gateways");?>",
message: "<?=gettext("Do you really want to delete this gateway?");?>",
buttons: [{
......@@ -252,7 +252,7 @@ $( document ).ready(function() {
event.preventDefault();
var id = $(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Gateways");?>",
message: "<?=gettext("Do you really want to delete the selected gateway items?");?>",
buttons: [{
......
......@@ -251,7 +251,7 @@ $( document ).ready(function() {
var priv_name = $(this).data('privname');
var privid = $(this).data('privid');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Group");?>",
message: "<?=gettext("Do you really want to delete this privilege?");?> " + "<br/>("+priv_name+")",
buttons: [{
......@@ -275,7 +275,7 @@ $( document ).ready(function() {
var groupname = $(this).data('groupname');
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Group");?>",
message: '<?=gettext("Do you really want to delete this group?");?>' + '<br/>('+groupname+")",
buttons: [{
......
......@@ -160,7 +160,7 @@ $( document ).ready(function() {
var id = $(this).data('id');
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Route");?>",
message: '<?=gettext("Do you really want to delete this route?");?>',
buttons: [{
......@@ -182,7 +182,7 @@ $( document ).ready(function() {
$("#del_x").click(function(event){
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Route");?>",
message: '<?=gettext("Do you really want to delete the selected routes?");?>',
buttons: [{
......
......@@ -455,7 +455,7 @@ $( document ).ready(function() {
event.preventDefault();
var priv_name = $(this).data('priv');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("User");?>",
message: "<?=gettext("Do you really want to delete this privilege?");?> " + "<br/>("+priv_name+")",
buttons: [{
......@@ -478,7 +478,7 @@ $( document ).ready(function() {
var certid = $(this).data('certid');
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("Certificate");?>",
message: '<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>',
buttons: [{
......@@ -502,7 +502,7 @@ $( document ).ready(function() {
var username = $(this).data('username');
event.preventDefault();
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("User");?>",
message: '<?=gettext("Do you really want to delete this user?");?>' + '<br/>('+username+")",
buttons: [{
......@@ -563,7 +563,7 @@ $( document ).ready(function() {
event.preventDefault();
var apiKey = $(this).data('key');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("User");?>",
message: '<?=gettext("Do you really want to delete this API key?");?>' + '<br/><small>('+apiKey.substring(0,40)+"...)</small>",
buttons: [{
......
......@@ -340,7 +340,7 @@ $( document ).ready(function() {
$(".act_delete").click(function(){
var id = $(this).attr("id").split('_').pop(-1);
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("OpenVPN");?>",
message: "<?= gettext("Do you really want to delete this client?"); ?>",
buttons: [{
......
......@@ -214,7 +214,7 @@ $( document ).ready(function() {
$(".act_delete").click(function(){
var id = $(this).attr("id").split('_').pop(-1);
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("OpenVPN");?>",
message: "<?= gettext("Do you really want to delete this csc?"); ?>",
buttons: [{
......
......@@ -421,7 +421,7 @@ $( document ).ready(function() {
$(".act_delete").click(function(){
var id = $(this).attr("id").split('_').pop(-1);
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
type:BootstrapDialog.TYPE_DANGER,
title: "<?= gettext("OpenVPN");?>",
message: "<?= gettext("Do you really want to delete this server?"); ?>",
buttons: [{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment