]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/lang/es/tpl/display_job_zoom.tpl
1dc53248ae90b96d74ef2e67a09d1336f673a647
[bacula/bacula] / gui / bweb / lang / es / tpl / display_job_zoom.tpl
1  <div class='titlediv'>
2   <h1 class='newstitle'>Información acerca jobs</h1>
3  </div>
4  <div class="bodydiv">
5  <table id='id0'></table>
6  <table><td>
7  <form name="delete" action='bweb.pl?'>
8   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
9   <button type="submit" name='action' class="bp" value='delete' title='delete this job'
10  onclick="return confirm('Do you want to delete this job from the catalog?');">
11    <img src='/bweb/purge.png' alt=''>Borrar</button>
12  </form>
13  </td><td>
14  <form name="media" action='bweb.pl?'>
15   <TMPL_LOOP volumes>
16    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
17   </TMPL_LOOP>   
18   <button type="submit" name='action' value='media' title='Ver medio' class="bp">
19    <img src='/bweb/zoom.png'alt=''>Ver medio</button>
20  </form>
21  </td>
22  <td>
23  <form name="job" action='bweb.pl?'>
24   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
25   <button type="submit" class="bp" name='action' value='job' title='view <TMPL_VAR Client> jobs'><img src='/bweb/zoom.png'>Ver jobs</button>
26  </form>
27  </td>
28  <td>
29  <form name="graph" action='bweb.pl?'>
30   <input type='hidden' name='age' value='2678400'>
31   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
32   <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
33   <button type="submit" class="bp" name='action' value='graph' title='View trends'>
34    <img src='/bweb/chart.png' alt=''> Ver estadísticas </button>
35  </form>
36  </td>
37  <td>
38  <form name="fileset_view" action='bweb.pl?'>
39   <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
40   <button type="submit" class="bp" name='action' value='fileset_view' title='Ver FileSet'> 
41  <img src='/bweb/zoom.png' alt=''>Ver FileSet</button>
42  </form>
43  </td>
44  <td>
45  <form name="bfileview" action='bfileview.pl?'>
46   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
47   <input type='hidden' name='where' value='/'>
48   <button type="submit" class="bp" name='action' value='bfileview' 
49    title='View file usage' 
50    onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("It could take long time, do you want to continue?")} else { return 1; }'>
51    <img src='/bweb/colorscm.png' alt=''> View file usage </button>
52  </form>
53  </td>
54 <TMPL_IF wiki_url>
55   <td>
56    <a href="<TMPL_VAR wiki_url><TMPL_VAR Client>" title='View doc'><img src='/bweb/doc.png' alt='View doc'></a>View doc
57  </td>
58 </TMPL_IF>
59  <td>
60  <form name="rerun" action='bweb.pl?' onsubmit="document.getElementById('rerun_level').value=joblevelname['<TMPL_VAR NAME=Level>']">
61   <input type='hidden' name='storage' value='<TMPL_VAR storage>'>
62   <input type='hidden' name='fileset' value='<TMPL_VAR fileset>'>
63   <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
64   <input type='hidden' name='client' value='<TMPL_VAR client>'>
65   <input type='hidden' id="rerun_level" name='level'>
66   <input type='hidden' name='job' value='<TMPL_VAR jobname>'>
67   <button type="submit" class="bp" name='action' value='run_job_mod' title='run this job again'>
68    <img src='/bweb/R.png'> Run this job </button>
69  </form>
70  </td>
71 <TMPL_IF joberrors>
72  <td>
73     <a href="<TMPL_VAR thisurl>;error=1"
74          title="View only errors">
75     <img src='/bweb/doc.png' alt="View errors"></a> View only errors
76   </td>
77 </TMPL_IF>
78  </table>
79 </div>
80
81 <script type="text/javascript" language='JavaScript'>
82 var header = new Array("JobId",
83                        "Cliente",
84                        "Nombre Job", 
85                        "FileSet",
86                        "Nivel",
87                        "Inicio", 
88                        "Archivos Job",
89                        "Bytes Job",
90                        "JobBytes",
91                        "Errores",
92                        "Pool",
93                        "Nombre Volumen",
94                        "Estado");
95
96 var data = new Array();
97
98 img = document.createElement("IMG");
99 img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", 
100                          <TMPL_VAR joberrors>,
101                          '<TMPL_VAR jobtype>');
102 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
103
104 data.push( new Array(
105 "<TMPL_VAR JobId>",
106 "<TMPL_VAR Client>",     
107 "<TMPL_VAR JobName>",    
108 "<TMPL_VAR FileSet>",    
109 "<TMPL_VAR Level>",      
110 "<TMPL_VAR StartTime>",
111 "<TMPL_VAR duration>",
112 "<TMPL_VAR JobFiles>",   
113 human_size(<TMPL_VAR JobBytes>),
114 "<TMPL_VAR joberrors>",
115 "<TMPL_VAR poolname>",
116 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
117 img
118  )
119 );
120
121 nrsTable.setup(
122 {
123  table_name:     "id0",
124  table_header: header,
125  table_data: data,
126  up_icon: up_icon,
127  down_icon: down_icon,
128  prev_icon: prev_icon,
129  next_icon: next_icon,
130  rew_icon:  rew_icon,
131  fwd_icon:  fwd_icon,
132 // natural_compare: true,
133  even_cell_color: even_cell_color,
134  odd_cell_color: odd_cell_color, 
135  header_color: header_color,
136  page_nav: true,
137  rows_per_page: rows_per_page,
138 // disable_sorting: new Array(6)
139  padding: 3
140 }
141 );
142
143 </script>