| | |
| | | status.add(new DropDownChoice<TicketModel.Status>("status", statusModel, statusChoices));
|
| | | form.add(status);
|
| | |
|
| | | if (currentUser.canAdmin(ticket, getRepositoryModel())) {
|
| | | // responsible
|
| | | Set<String> userlist = new TreeSet<String>(ticket.getParticipants());
|
| | |
|
| | |
| | | Fragment mergeto = new Fragment("mergeto", "mergeToFragment", this);
|
| | | mergeto.add(new DropDownChoice<String>("mergeto", mergeToModel, branches));
|
| | | form.add(mergeto.setVisible(!branches.isEmpty()));
|
| | |
|
| | | } else {
|
| | | // user can not admin this ticket
|
| | | form.add(new Label("responsible").setVisible(false));
|
| | | form.add(new Label("milestone").setVisible(false));
|
| | | form.add(new Label("mergeto").setVisible(false));
|
| | | }
|
| | | form.add(new Button("update"));
|
| | | Button cancel = new Button("cancel") {
|
| | | private static final long serialVersionUID = 1L;
|