r2297 | GHendricks | 2006-10-12 12:05:26 -0600 (Thu, 12 Oct 2006) | 1 line

Changed paths:
   M /trunk/template/en/default/testopia/environment/admin/category.html.tmpl
   M /trunk/template/en/default/testopia/environment/admin/element.html.tmpl
   M /trunk/template/en/default/testopia/environment/admin/property.html.tmpl
   M /trunk/template/en/default/testopia/environment/admin/valid_exp.html.tmpl
   M /trunk/tr_admin_environment.cgi

Environment administrator: Unable to name new categories. AND submit button doesn't work...
This commit is contained in:
ghendricks%novell.com 2006-10-12 18:08:40 +00:00
Родитель 74819fae31
Коммит 24681a385f
5 изменённых файлов: 11 добавлений и 40 удалений

Просмотреть файл

@ -22,16 +22,9 @@
[%# INTERFACE:
# ...
#%]
<script type="text/javascript">
</script>
<form method="POST" action="tr_admin_environment.cgi" name="form1">
<form method="POST" action="tr_admin_environment.cgi" name="form1" onSubmit="updateCategory();return false;">
<h3>Category Administration</h3>
<input type="hidden" name="action" value="[% action FILTER none %]" />
<input type="hidden" name="id" value="[% category.id FILTER none %]" />
<input type="hidden" name="type" value="category" />
<table border="0">
<tr>
<th class="bz_row_header" align="right">Parent Product:</th>
@ -53,13 +46,5 @@
<br />
<input name="submit" type="button" value="Submit" onClick="updateCategory()">
<input name="submit" type="button" value="Submit">
</form>

Просмотреть файл

@ -24,15 +24,8 @@
# ...
#%]
<form method="POST" action="tr_admin_environment.cgi" name="form1">
<form method="POST" action="tr_admin_environment.cgi" name="form1" onsubmit="updateElement();return false">
<h3>Element Administration</h3>
<input type="hidden" name="action" value="[% action FILTER none %]" />
<input type="hidden" name="id" value="[% element.id FILTER none %]" />
<input type="hidden" name="type" value="element" />
<table>
<tr>
@ -125,4 +118,5 @@
</tr>
</table>
<br />
<input name="submit" id="element_submit" type="button" value="Submit" onClick="updateElement();">
<input name="submit" id="element_submit" type="submit" value="Submit" >
</form>

Просмотреть файл

@ -24,15 +24,8 @@
# ...
#%]
<form method="POST" action="tr_admin_environment.cgi" name="form1">
<form method="POST" action="tr_admin_environment.cgi" name="form1" onsubmit="updateProperty(); return false">
<h3>Property Administration</h3>
<input type="hidden" name="action" value="[% action FILTER none %]" />
<input type="hidden" name="id" value="[% property.id FILTER none %]" />
<input type="hidden" name="type" value="property" />
<table border="0">
<tr>
<th class="bz_row_header" align="right">Assiged to Element:</th>
@ -55,4 +48,4 @@
<br />
<input name="submit" type="button" value="Submit" onclick="updateProperty()">
<input name="submit" type="submit" value="Submit">

Просмотреть файл

@ -26,8 +26,6 @@
<form method="POST" onsubmit="submit_valid_exp();" action="tr_admin_environment.cgi" name="form1">
<h3>Property Value Administration</h3>
<input type="hidden" name="action" value="do_edit" />
<input type="hidden" name="id" value="[% property.id FILTER none %]" />
<input type="hidden" name="type" value="validexp" />
@ -67,4 +65,5 @@
<br />
<input name="submit" type="submit" value="Save Changes">
<p><b>You must click Save Changes for your changes to take effect</b></p>
<p><b>You must click Save Changes for your changes to take effect</b></p>
</form>

Просмотреть файл

@ -520,7 +520,7 @@ sub add_validexp{
#############################
sub delete_category{
my ($id) = (@_);
my $category = Bugzilla::Testopia::Environment::Category->new({});
my $category = Bugzilla::Testopia::Environment::Category->new($id);
my $success = $category->obliterate;
print $success == 1 ? "true" : "false";
}