|
1 | 1 | <header class='row'> |
2 | 2 | <div class='col-sm-5 pull-left'> |
3 | | - <h3><%=t 'CronJobs' %></h3> |
| 3 | + <h3><%= t('CronJobs') %></h3> |
4 | 4 | </div> |
5 | 5 | <div class='col-sm-7 pull-right' style="margin-top: 20px; margin-bottom: 10px;"> |
6 | 6 | <% if @cron_jobs.size > 0 %> |
7 | 7 | <form action="<%= root_path %>cron/__all__/delete" method="post" class="pull-right"> |
8 | 8 | <%= csrf_tag if respond_to?(:csrf_tag) %> |
9 | | - <input class="btn btn-small btn-danger" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSureDeleteCronJobs') %>"> |
| 9 | + <input class="btn btn-small btn-danger" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSureDeleteCronJobs') %>" /> |
10 | 10 | </form> |
11 | 11 | <form action="<%= root_path %>cron/__all__/disable" method="post" class="pull-right"> |
12 | 12 | <%= csrf_tag if respond_to?(:csrf_tag) %> |
|
18 | 18 | </form> |
19 | 19 | <form action="<%= root_path %>cron/__all__/enque" method="post" class="pull-right"> |
20 | 20 | <%= csrf_tag if respond_to?(:csrf_tag) %> |
21 | | - <input class="btn btn-small" type="submit" name="enque" value="<%= t('EnqueueAll') %>" /> |
| 21 | + <input class="btn btn-small" type="submit" name="enque" value="<%= t('EnqueueAll') %>" data-confirm="<%= t('AreYouSureEnqueueCronJobs') %>" /> |
22 | 22 | </form> |
23 | 23 | <% end %> |
24 | 24 | </div> |
|
61 | 61 | <% if job.status == 'enabled' %> |
62 | 62 | <form action="<%= root_path %>cron/<%= CGI.escape(job.name).gsub('+', '%20') %>/enque" method="post"> |
63 | 63 | <%= csrf_tag if respond_to?(:csrf_tag) %> |
64 | | - <input class='btn btn-xs pull-left' type="submit" name="enque" value="<%= t('EnqueueNow') %>"/> |
| 64 | + <input class='btn btn-xs pull-left' type="submit" name="enque" value="<%= t('EnqueueNow') %>" data-confirm="<%= t('AreYouSureEnqueueCronJob', :job => job.name) %>"/> |
65 | 65 | </form> |
66 | 66 | <form action="<%= root_path %>cron/<%= CGI.escape(job.name).gsub('+', '%20') %>/disable" method="post"> |
67 | 67 | <%= csrf_tag if respond_to?(:csrf_tag) %> |
|
0 commit comments