Delete_Web

Add a user interface to delete a Web.
This commit is contained in:
Jacques Distler 2008-12-06 06:06:46 -06:00
parent 7e66134e2f
commit 61799bc63f
2 changed files with 30 additions and 0 deletions

View file

@ -125,4 +125,17 @@
</p>
<% end %>
<% form_tag({:controller => 'admin', :web => @web.address, :action => 'delete_web'},
{ :id => 'delete_web',
:onsubmit => "return checkSystemPassword(document.getElementById('system_password_delete_web').value)",
'accept-charset' => 'utf-8' }) do
%>
<p style="text-align:right;font-size:.85em;">
Delete this Web, and all its pages.
<input type="password" id="system_password_delete_web" class="disableAutoComplete" name="system_password_delete_web" />
and
<input type="submit" value="Delete Web" />
</p>
<% end %>
<%= javascript_include_tag 'edit_web' %>