From ae8bfe0d361f0d2054c50267243ca930f1b89893 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 5 Sep 2011 13:15:51 +0000 Subject: [PATCH] Added ID column to ostemplate list. --- interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng | 1 + interface/web/vm/list/openvz_ostemplate.list.php | 9 +++++++++ interface/web/vm/templates/openvz_ostemplate_list.htm | 7 +++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng b/interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng index 0e4fe3a993..7fcfbb7e0c 100644 --- a/interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng +++ b/interface/web/vm/lib/lang/en_openvz_ostemplate_list.lng @@ -4,4 +4,5 @@ $wb["active_txt"] = 'Active'; $wb["template_name_txt"] = 'Template name'; $wb["server_id_txt"] = 'Server'; $wb["allservers_txt"] = 'Exists on all servers'; +$wb["ostemplate_id_txt"] = 'ID'; ?> \ No newline at end of file diff --git a/interface/web/vm/list/openvz_ostemplate.list.php b/interface/web/vm/list/openvz_ostemplate.list.php index 721885ed07..3b3dc2ccb2 100644 --- a/interface/web/vm/list/openvz_ostemplate.list.php +++ b/interface/web/vm/list/openvz_ostemplate.list.php @@ -56,6 +56,15 @@ $liste["item"][] = array( 'field' => "active", 'width' => "", 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>")); +$liste["item"][] = array( 'field' => "ostemplate_id", + 'datatype' => "INTEGER", + 'formtype' => "TEXT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => ""); + $liste["item"][] = array( 'field' => "template_name", 'datatype' => "VARCHAR", diff --git a/interface/web/vm/templates/openvz_ostemplate_list.htm b/interface/web/vm/templates/openvz_ostemplate_list.htm index ef73c77ee7..0389ec8f33 100644 --- a/interface/web/vm/templates/openvz_ostemplate_list.htm +++ b/interface/web/vm/templates/openvz_ostemplate_list.htm @@ -18,6 +18,7 @@ <thead> <tr> <th class="tbl_col_active" scope="col"><tmpl_var name="active_txt"></th> + <th class="tbl_col_ostemplate_id" scope="col"><tmpl_var name="ostemplate_id_txt"></th> <th class="tbl_col_template_name" scope="col"><tmpl_var name="template_name_txt"></th> <th class="tbl_col_server_id" scope="col"><tmpl_var name="server_id_txt"></th> <th class="tbl_col_allservers" scope="col"><tmpl_var name="allservers_txt"></th> @@ -25,7 +26,8 @@ </tr> <tr> <td class="tbl_col_active"><select name="search_active" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_active'}</select></td> - <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> + <td class="tbl_col_ostemplate_id"><input type="text" name="search_ostemplate_id" value="{tmpl_var name='search_ostemplate_id'}" style="width:30px;" /></td> + <td class="tbl_col_template_name"><input type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td> <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> <td class="tbl_col_allservers"><select name="search_allservers" onChange="submitForm('pageForm','vm/openvz_ostemplate_list.php');">{tmpl_var name='search_allservers'}</select></td> <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 @@ <tmpl_loop name="records"> <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"> <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> + <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> <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> <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> <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 @@ </tbody> <tfoot> <tr> - <td class="tbl_footer tbl_paging" colspan="5"><tmpl_var name="paging"></td> + <td class="tbl_footer tbl_paging" colspan="6"><tmpl_var name="paging"></td> </tr> </tfoot> </table> -- GitLab