Skip to content

Commit ae8bfe0

Browse files
committed
Added ID column to ostemplate list.
1 parent fb928bc commit ae8bfe0

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ $wb["active_txt"] = 'Active';
44
$wb["template_name_txt"] = 'Template name';
55
$wb["server_id_txt"] = 'Server';
66
$wb["allservers_txt"] = 'Exists on all servers';
7+
$wb["ostemplate_id_txt"] = 'ID';
78
?>

interface/web/vm/list/openvz_ostemplate.list.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@
5656
'width' => "",
5757
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));
5858

59+
$liste["item"][] = array( 'field' => "ostemplate_id",
60+
'datatype' => "INTEGER",
61+
'formtype' => "TEXT",
62+
'op' => "=",
63+
'prefix' => "",
64+
'suffix' => "",
65+
'width' => "",
66+
'value' => "");
67+
5968

6069
$liste["item"][] = array( 'field' => "template_name",
6170
'datatype' => "VARCHAR",

interface/web/vm/templates/openvz_ostemplate_list.htm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ <h2><tmpl_var name="list_head_txt"></h2>
1818
<thead>
1919
<tr>
2020
<th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th>
21+
<th class="tbl_col_ostemplate_id" scope="col"><tmpl_var name="ostemplate_id_txt"></th>
2122
<th class="tbl_col_template_name" scope="col"><tmpl_var name="template_name_txt"></th>
2223
<th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th>
2324
<th class="tbl_col_allservers" scope="col"><tmpl_var name="allservers_txt"></th>
2425
<th class="tbl_col_buttons" scope="col">&nbsp;</th>
2526
</tr>
2627
<tr>
2728
<td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_active'}</select></td>
28-
<td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" onblur="submitForm('pageForm','vm/openvz_ostemplate_list.php');" /></td>
29+
<td class="tbl_col_ostemplate_id"><input type="text" name="search_ostemplate_id" value="{tmpl_var name='search_ostemplate_id'}" style="width:30px;" /></td>
30+
<td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td>
2931
<td class="tbl_col_server_id"><select name="search_server_id" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_server_id'}</select></td>
3032
<td class="tbl_col_allservers"><select name="search_allservers" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_allservers'}</select></td>
3133
<td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','vm/openvz_ostemplate_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td>
@@ -35,6 +37,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
3537
<tmpl_loop name="records">
3638
<tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
3739
<td class="tbl_col_active"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="active"}</a></td>
40+
<td class="tbl_col_ostemplate_id"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="ostemplate_id"}</a></td>
3841
<td class="tbl_col_template_name"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="template_name"}</a></td>
3942
<td class="tbl_col_server_id"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="server_id"}</a></td>
4043
<td class="tbl_col_allservers"><a href="#" onClick="loadContent('vm/openvz_ostemplate_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="allservers"}</a></td>
@@ -48,7 +51,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
4851
</tbody>
4952
<tfoot>
5053
<tr>
51-
<td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td>
54+
<td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td>
5255
</tr>
5356
</tfoot>
5457
</table>

0 commit comments

Comments
 (0)