James Moger
2014-11-04 4e84166db5c5538e3984d9d2d6bb1f9902e65ee0
src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java
@@ -21,7 +21,6 @@
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.Radio;
import org.apache.wicket.markup.html.form.RadioGroup;
import org.apache.wicket.markup.html.list.ListItem;
@@ -147,21 +146,19 @@
      }
      add(policiesGroup);
      allowForks = Model.of(true);
      add(newCheckbox("allowForks",
      allowForks = Model.of(app().settings().getBoolean(Keys.web.allowForking, true));
      if (allowForks.getObject()) {
         Fragment fragment = new Fragment("allowForks", "allowForksFragment", this);
         fragment.add(new BooleanOption("allowForks",
            getString("gb.allowForks"),
            getString("gb.allowForksDescription"),
            allowForks).setEnabled(app().settings().getBoolean(Keys.web.allowForking, true)));
            allowForks));
         add(fragment);
      } else {
         add(new Label("allowForks").setVisible(false));
      }
      setOutputMarkupId(true);
   }
   private Fragment newCheckbox(String wicketId, String title, String description, IModel<Boolean> model) {
      Fragment fragment = new Fragment(wicketId, "checkboxOption", this);
      fragment.add(new Label("name", title));
      fragment.add(new Label("description", description));
      fragment.add(new CheckBox("checkbox", model));
      return fragment;
   }
   public void updateModel(RepositoryModel repository) {