summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/pages/EditRepositoryPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-07-20 16:03:07 -0400
committerJames Moger <james.moger@gitblit.com>2011-07-20 16:03:07 -0400
commit331fbc638684c605d90d49269202dde071db10c4 (patch)
tree0fc262888b2fc95de0dace14f0ed39b732386b85 /src/com/gitblit/wicket/pages/EditRepositoryPage.java
parent20165d234037cb62640e4d9a3fe285260a6a2444 (diff)
downloadgitblit-331fbc638684c605d90d49269202dde071db10c4.tar.gz
gitblit-331fbc638684c605d90d49269202dde071db10c4.zip
Cancel buttons on edit pages. Column fix for flat repositories view.
Diffstat (limited to 'src/com/gitblit/wicket/pages/EditRepositoryPage.java')
-rw-r--r--src/com/gitblit/wicket/pages/EditRepositoryPage.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/com/gitblit/wicket/pages/EditRepositoryPage.java
index af9358e7..824f13dc 100644
--- a/src/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -25,6 +25,7 @@ import java.util.Map;
import org.apache.wicket.PageParameters;
import org.apache.wicket.extensions.markup.html.form.palette.Palette;
+import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.ChoiceRenderer;
import org.apache.wicket.markup.html.form.DropDownChoice;
@@ -182,6 +183,18 @@ public class EditRepositoryPage extends BasePage {
form.add(new CheckBox("showReadme"));
form.add(usersPalette);
+ form.add(new Button("save"));
+ Button cancel = new Button("cancel"){
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ public void onSubmit() {
+ setResponsePage(RepositoriesPage.class);
+ }
+ };
+ cancel.setDefaultFormProcessing(false);
+ form.add(cancel);
+
add(form);
}