summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java20
-rw-r--r--src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java10
-rw-r--r--src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java2
-rw-r--r--src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.html (renamed from src/main/java/com/gitblit/wicket/panels/ConditionalChoiceOption.html)0
-rw-r--r--src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.java (renamed from src/main/java/com/gitblit/wicket/panels/ConditionalChoiceOption.java)4
-rw-r--r--src/main/java/com/gitblit/wicket/panels/BooleanOption.html (renamed from src/main/java/com/gitblit/wicket/panels/CheckboxOption.html)0
-rw-r--r--src/main/java/com/gitblit/wicket/panels/BooleanOption.java (renamed from src/main/java/com/gitblit/wicket/panels/CheckboxOption.java)8
-rw-r--r--src/main/java/com/gitblit/wicket/panels/TextOption.html2
8 files changed, 23 insertions, 23 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
index f891595c..a0e6e7ba 100644
--- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -71,7 +71,7 @@ import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.panels.AccessPolicyPanel;
import com.gitblit.wicket.panels.BasePanel.JavascriptEventConfirmation;
import com.gitblit.wicket.panels.BulletListPanel;
-import com.gitblit.wicket.panels.CheckboxOption;
+import com.gitblit.wicket.panels.BooleanOption;
import com.gitblit.wicket.panels.ChoiceOption;
import com.gitblit.wicket.panels.RegistrantPermissionsPanel;
import com.gitblit.wicket.panels.RepositoryNamePanel;
@@ -436,17 +436,17 @@ public class EditRepositoryPage extends RootSubPage {
//
// TICKETS
//
- form.add(new CheckboxOption("acceptNewPatchsets",
+ form.add(new BooleanOption("acceptNewPatchsets",
getString("gb.acceptNewPatchsets"),
getString("gb.acceptNewPatchsetsDescription"),
new PropertyModel<Boolean>(repositoryModel, "acceptNewPatchsets")));
- form.add(new CheckboxOption("acceptNewTickets",
+ form.add(new BooleanOption("acceptNewTickets",
getString("gb.acceptNewTickets"),
getString("gb.acceptNewTicketsDescription"),
new PropertyModel<Boolean>(repositoryModel, "acceptNewPatchsets")));
- form.add(new CheckboxOption("requireApproval",
+ form.add(new BooleanOption("requireApproval",
getString("gb.requireApproval"),
getString("gb.requireApprovalDescription"),
new PropertyModel<Boolean>(repositoryModel, "requireApproval")));
@@ -460,19 +460,19 @@ public class EditRepositoryPage extends RootSubPage {
//
// RECEIVE
//
- form.add(new CheckboxOption("isFrozen",
+ form.add(new BooleanOption("isFrozen",
getString("gb.isFrozen"),
getString("gb.isFrozenDescription"),
new PropertyModel<Boolean>(repositoryModel, "isFrozen")));
- form.add(new CheckboxOption("incrementalPushTags",
+ form.add(new BooleanOption("incrementalPushTags",
getString("gb.enableIncrementalPushTags"),
getString("gb.useIncrementalPushTagsDescription"),
new PropertyModel<Boolean>(repositoryModel, "useIncrementalPushTags")));
final CheckBox verifyCommitter = new CheckBox("checkbox", new PropertyModel<Boolean>(repositoryModel, "verifyCommitter"));
verifyCommitter.setOutputMarkupId(true);
- form.add(new CheckboxOption("verifyCommitter",
+ form.add(new BooleanOption("verifyCommitter",
getString("gb.verifyCommitter"),
getString("gb.verifyCommitterDescription") + "<br/>" + getString("gb.verifyCommitterNote"),
verifyCommitter).setIsHtmlDescription(true));
@@ -547,17 +547,17 @@ public class EditRepositoryPage extends RootSubPage {
"span6",
new PropertyModel<String>(repositoryModel, "origin")).setEnabled(false));
- form.add(new CheckboxOption("showRemoteBranches",
+ form.add(new BooleanOption("showRemoteBranches",
getString("gb.showRemoteBranches"),
getString("gb.showRemoteBranchesDescription"),
new PropertyModel<Boolean>(repositoryModel, "showRemoteBranches")));
- form.add(new CheckboxOption("skipSizeCalculation",
+ form.add(new BooleanOption("skipSizeCalculation",
getString("gb.skipSizeCalculation"),
getString("gb.skipSizeCalculationDescription"),
new PropertyModel<Boolean>(repositoryModel, "skipSizeCalculation")));
- form.add(new CheckboxOption("skipSummaryMetrics",
+ form.add(new BooleanOption("skipSummaryMetrics",
getString("gb.skipSummaryMetrics"),
getString("gb.skipSummaryMetricsDescription"),
new PropertyModel<Boolean>(repositoryModel, "skipSummaryMetrics")));
diff --git a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
index 0134677e..b8752e33 100644
--- a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java
@@ -56,8 +56,8 @@ import com.gitblit.utils.StringUtils;
import com.gitblit.wicket.GitBlitWebSession;
import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.panels.AccessPolicyPanel;
-import com.gitblit.wicket.panels.CheckboxOption;
-import com.gitblit.wicket.panels.ConditionalChoiceOption;
+import com.gitblit.wicket.panels.BooleanOption;
+import com.gitblit.wicket.panels.BooleanChoiceOption;
import com.gitblit.wicket.panels.RepositoryNamePanel;
public class NewRepositoryPage extends RootSubPage {
@@ -181,7 +181,7 @@ public class NewRepositoryPage extends RootSubPage {
// add README
addReadmeModel = Model.of(false);
- form.add(new CheckboxOption("addReadme",
+ form.add(new BooleanOption("addReadme",
getString("gb.initWithReadme"),
getString("gb.initWithReadmeDescription"),
addReadmeModel));
@@ -202,7 +202,7 @@ public class NewRepositoryPage extends RootSubPage {
gitignoreModel = Model.of("");
addGitignoreModel = Model.of(false);
- form.add(new ConditionalChoiceOption<String>("addGitIgnore",
+ form.add(new BooleanChoiceOption<String>("addGitIgnore",
getString("gb.initWithGitignore"),
getString("gb.initWithGitignoreDescription"),
addGitignoreModel,
@@ -211,7 +211,7 @@ public class NewRepositoryPage extends RootSubPage {
// TODO consider gitflow at creation (ticket-55)
addGitflowModel = Model.of(false);
- form.add(new CheckboxOption("addGitFlow",
+ form.add(new BooleanOption("addGitFlow",
"Include a .gitflow file",
"This will generate a config file which guides Git clients in setting up Gitflow branches.",
addGitflowModel).setVisible(false));
diff --git a/src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java b/src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java
index 7a812307..d8dcdced 100644
--- a/src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java
@@ -149,7 +149,7 @@ public class AccessPolicyPanel extends BasePanel {
allowForks = Model.of(app().settings().getBoolean(Keys.web.allowForking, true));
if (allowForks.getObject()) {
Fragment fragment = new Fragment("allowForks", "allowForksFragment", this);
- fragment.add(new CheckboxOption("allowForks",
+ fragment.add(new BooleanOption("allowForks",
getString("gb.allowForks"),
getString("gb.allowForksDescription"),
allowForks));
diff --git a/src/main/java/com/gitblit/wicket/panels/ConditionalChoiceOption.html b/src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.html
index fb360d12..fb360d12 100644
--- a/src/main/java/com/gitblit/wicket/panels/ConditionalChoiceOption.html
+++ b/src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.html
diff --git a/src/main/java/com/gitblit/wicket/panels/ConditionalChoiceOption.java b/src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.java
index 07aaee84..98a700b7 100644
--- a/src/main/java/com/gitblit/wicket/panels/ConditionalChoiceOption.java
+++ b/src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.java
@@ -35,14 +35,14 @@ import org.parboiled.common.StringUtils;
* @author James Moger
*
*/
-public class ConditionalChoiceOption<T> extends BasePanel {
+public class BooleanChoiceOption<T> extends BasePanel {
private static final long serialVersionUID = 1L;
final CheckBox checkbox;
final DropDownChoice<T> choice;
- public ConditionalChoiceOption(String wicketId, String title, String description, IModel<Boolean> checkboxModel, IModel<T> choiceModel, List<T> choices) {
+ public BooleanChoiceOption(String wicketId, String title, String description, IModel<Boolean> checkboxModel, IModel<T> choiceModel, List<T> choices) {
super(wicketId);
add(new Label("name", title));
add(new Label("description", description).setVisible(!StringUtils.isEmpty(description)));
diff --git a/src/main/java/com/gitblit/wicket/panels/CheckboxOption.html b/src/main/java/com/gitblit/wicket/panels/BooleanOption.html
index 6684fe92..6684fe92 100644
--- a/src/main/java/com/gitblit/wicket/panels/CheckboxOption.html
+++ b/src/main/java/com/gitblit/wicket/panels/BooleanOption.html
diff --git a/src/main/java/com/gitblit/wicket/panels/CheckboxOption.java b/src/main/java/com/gitblit/wicket/panels/BooleanOption.java
index 08eeaa24..4a9299ce 100644
--- a/src/main/java/com/gitblit/wicket/panels/CheckboxOption.java
+++ b/src/main/java/com/gitblit/wicket/panels/BooleanOption.java
@@ -29,25 +29,25 @@ import org.parboiled.common.StringUtils;
* @author James Moger
*
*/
-public class CheckboxOption extends BasePanel {
+public class BooleanOption extends BasePanel {
private static final long serialVersionUID = 1L;
- public CheckboxOption(String wicketId, String title, String description, IModel<Boolean> model) {
+ public BooleanOption(String wicketId, String title, String description, IModel<Boolean> model) {
super(wicketId);
add(new Label("name", title));
add(new Label("description", description).setVisible(!StringUtils.isEmpty(description)));
add(new CheckBox("checkbox", model));
}
- public CheckboxOption(String wicketId, String title, String description, CheckBox checkbox) {
+ public BooleanOption(String wicketId, String title, String description, CheckBox checkbox) {
super(wicketId);
add(new Label("name", title));
add(new Label("description", description).setVisible(!StringUtils.isEmpty(description)));
add(checkbox.setMarkupId("checkbox"));
}
- public CheckboxOption setIsHtmlDescription(boolean val) {
+ public BooleanOption setIsHtmlDescription(boolean val) {
((Label) get("description")).setEscapeModelStrings(!val);
return this;
}
diff --git a/src/main/java/com/gitblit/wicket/panels/TextOption.html b/src/main/java/com/gitblit/wicket/panels/TextOption.html
index ff2da78e..9fa0c700 100644
--- a/src/main/java/com/gitblit/wicket/panels/TextOption.html
+++ b/src/main/java/com/gitblit/wicket/panels/TextOption.html
@@ -11,7 +11,7 @@
<b><span wicket:id="name"></span></b>
</div>
<label class="checkbox" style="color:#777;"> <span wicket:id="description"></span>
- <p style="padding-top:5px;"><input class="span2" type="text" wicket:id="text" /></p>
+ <p style="padding-top:5px;"><input class="span3" type="text" wicket:id="text" /></p>
</label>
</div>