]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add confirm window to delete job action
authorMarcin Haba <marcin.haba@bacula.pl>
Sat, 9 Nov 2019 06:19:55 +0000 (07:19 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Dec 2019 14:59:53 +0000 (15:59 +0100)
gui/baculum/protected/Web/Lang/en/messages.mo
gui/baculum/protected/Web/Lang/en/messages.po
gui/baculum/protected/Web/Lang/ja/messages.mo
gui/baculum/protected/Web/Lang/ja/messages.po
gui/baculum/protected/Web/Lang/pl/messages.mo
gui/baculum/protected/Web/Lang/pl/messages.po
gui/baculum/protected/Web/Lang/pt/messages.mo
gui/baculum/protected/Web/Lang/pt/messages.po
gui/baculum/protected/Web/Pages/JobHistoryView.page

index 3a372d0679f817c8f629d6ad98ac5fef4b2e86a0..94bc9ae346a5687a94ef36b6202cefecfbe4f013 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/en/messages.mo and b/gui/baculum/protected/Web/Lang/en/messages.mo differ
index 85492b2729f0cce134a8db4b329ca0a0bde6ef30..bb1fa3dc0a5de4d48f7bd0af151e5aa5ac85e6b6 100644 (file)
@@ -2453,3 +2453,5 @@ msgstr "Please select hour in Run block"
 msgid "Please select hour and minute in Run block"
 msgstr "Please select hour and minute in Run block"
 
+msgid "Are you sure, you want to delete this job?"
+msgstr "Are you sure, you want to delete this job?"
index 486378f00e742af182d508d2a5dc2375a384bee0..a54caaecba18db42038a00a4765a7fca54d9815d 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/ja/messages.mo and b/gui/baculum/protected/Web/Lang/ja/messages.mo differ
index 454904e9dcdf7f69c42cb0ded35b21ac6c719c3f..4ed7e20ad0e69ed1928885b3fe1961313e20d606 100644 (file)
@@ -2539,3 +2539,5 @@ msgstr "Please select hour in Run block"
 msgid "Please select hour and minute in Run block"
 msgstr "Please select hour and minute in Run block"
 
+msgid "Are you sure, you want to delete this job?"
+msgstr "Are you sure, you want to delete this job?"
index a4da11e6706d4449117704254dce4e98fac4b410..b28ff0dd06346808a2d87b39814800c78e35d7ce 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/pl/messages.mo and b/gui/baculum/protected/Web/Lang/pl/messages.mo differ
index fd14f885242d9f6dc8a92cc2e3325638551f3edf..2e7df94a83ec45768f66bc42b70a53a199b4d398 100644 (file)
@@ -2460,3 +2460,5 @@ msgstr "Proszę wybrać godzinę w bloku Uruchom"
 msgid "Please select hour and minute in Run block"
 msgstr "Proszę wybrać godzinę i minutę w bloku Uruchom"
 
+msgid "Are you sure, you want to delete this job?"
+msgstr "Czy jesteś pewien, że chcesz skasować to zadanie?"
index 6d7b8c57ab52103cf4d8d323727a9c8e853d7824..1f886fa7367148c42025ba925b2b0bcb0d1a6e47 100644 (file)
Binary files a/gui/baculum/protected/Web/Lang/pt/messages.mo and b/gui/baculum/protected/Web/Lang/pt/messages.mo differ
index 82db2a6b64083f427cc6407b9f7c1a2503e7d0b4..7bf7cf3f9cca8dccad46ecc3fe1992a85fbcbc65 100644 (file)
@@ -2468,3 +2468,5 @@ msgstr "Please select hour in Run block"
 msgid "Please select hour and minute in Run block"
 msgstr "Please select hour and minute in Run block"
 
+msgid "Are you sure, you want to delete this job?"
+msgstr "Are you sure, you want to delete this job?"
index ef91e59707cb92ee32cb310b7373320089da87d1..1a64b0f465b25605b61a9ffe0e8ccacc7ddf30a7 100644 (file)
                >
                        <prop:Text><%=Prado::localize('Run job again')%> &nbsp;<i class="fa fa-undo"></i></prop:Text>
                </com:TActiveLinkButton>
-               <com:TActiveLinkButton
-                       ID="DeleteBtn"
-                       CssClass="w3-button w3-green w3-margin-bottom"
-                       OnClick="delete"
-                       Display="None"
-                       ClientSide.OnSuccess="document.location.href='<%=$this->Service->constructUrl('JobHistoryList')%>';"
-               >
-                       <prop:Text><%=Prado::localize('Delete')%> &nbsp;<i class="fa fa-trash-alt"></i></prop:Text>
-               </com:TActiveLinkButton>
+               <button id="btn_job_delete" type="button" class="w3-button w3-red w3-margin-bottom" onclick="$('#job_delete_confirm').show();">
+                       <%[ Delete ]%> &nbsp;<i class="fa fa-trash-alt"></i>
+               </button>
                <com:TActiveLinkButton
                        ID="RestoreBtn"
                        Attributes.onclick="document.location = '<%=$this->Service->constructUrl('RestoreWizard', array('jobid' => $this->getJobId()))%>';"
@@ -500,4 +494,23 @@ $(function() {
                        ShowCancelButton="false"
                />
        </div>
+       <div id="job_delete_confirm" class="w3-modal" style="display: none">
+               <div class="w3-modal-content w3-card-4 w3-padding-large w3-animate-zoom" style="width:600px">
+                       <span onclick="$('#job_delete_confirm').hide();" class="w3-button w3-xlarge w3-hover-red w3-display-topright">&times;</span>
+                       <h2><%[ Delete job ]%></h2>
+                       <p><%[ Are you sure, you want to delete this job? ]%></p>
+                       <div class="w3-center">
+                               <button type="button" class="w3-button w3-red" onclick="$('#job_delete_confirm').hide();"><i class="fa fa-times"></i> &nbsp;<%[ Cancel ]%></button>
+                               <com:TActiveLinkButton
+                                       ID="DeleteBtn"
+                                       CssClass="w3-button w3-green"
+                                       OnClick="delete"
+                                       Display="None"
+                                       ClientSide.OnSuccess="document.location.href='<%=$this->Service->constructUrl('JobHistoryList')%>';"
+                               >
+                                       <prop:Text><%=Prado::localize('Delete')%> &nbsp;<i class="fa fa-trash-alt"></i></prop:Text>
+                               </com:TActiveLinkButton>
+                       </div>
+               </div>
+</div>
 </com:TContent>