diff options
author | James Moger <james.moger@gitblit.com> | 2011-10-16 08:07:19 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-10-16 08:07:19 -0400 |
commit | 55a46bd1db51e00467fb2d5c968fbd10feb1bc57 (patch) | |
tree | ccad989a6393b1191f7405e05538f45a3017f948 /src/com/gitblit | |
parent | 15a51d33c2d8edc56fa01e5d77156e71f2b223fa (diff) | |
download | gitblit-55a46bd1db51e00467fb2d5c968fbd10feb1bc57.tar.gz gitblit-55a46bd1db51e00467fb2d5c968fbd10feb1bc57.zip |
Use tabs in repository dialog and show origin.
Diffstat (limited to 'src/com/gitblit')
-rw-r--r-- | src/com/gitblit/client/EditRepositoryDialog.java | 15 | ||||
-rw-r--r-- | src/com/gitblit/wicket/GitBlitWebApp.properties | 3 |
2 files changed, 13 insertions, 5 deletions
diff --git a/src/com/gitblit/client/EditRepositoryDialog.java b/src/com/gitblit/client/EditRepositoryDialog.java index 93fcced3..0955d7be 100644 --- a/src/com/gitblit/client/EditRepositoryDialog.java +++ b/src/com/gitblit/client/EditRepositoryDialog.java @@ -42,6 +42,7 @@ import javax.swing.JLabel; import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
+import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.ListCellRenderer;
@@ -104,6 +105,7 @@ public class EditRepositoryDialog extends JDialog { this.isCreate = false;
initialize(aRepository);
setModal(true);
+ setResizable(false);
setTitle(Translation.get("gb.edit") + ": " + aRepository.name);
setIconImage(new ImageIcon(getClass().getResource("/gitblt-favicon.png")).getImage());
}
@@ -113,6 +115,10 @@ public class EditRepositoryDialog extends JDialog { descriptionField = new JTextField(anRepository.description == null ? ""
: anRepository.description, 35);
+ JTextField originField = new JTextField(anRepository.origin == null ? ""
+ : anRepository.origin, 40);
+ originField.setEditable(false);
+
ownerField = new JComboBox();
useTickets = new JCheckBox(Translation.get("gb.useTicketsDescription"),
@@ -142,6 +148,7 @@ public class EditRepositoryDialog extends JDialog { JPanel fieldsPanel = new JPanel(new GridLayout(0, 1));
fieldsPanel.add(newFieldPanel(Translation.get("gb.name"), nameField));
fieldsPanel.add(newFieldPanel(Translation.get("gb.description"), descriptionField));
+ fieldsPanel.add(newFieldPanel(Translation.get("gb.origin"), originField));
fieldsPanel.add(newFieldPanel(Translation.get("gb.owner"), ownerField));
fieldsPanel.add(newFieldPanel(Translation.get("gb.enableTickets"), useTickets));
@@ -166,10 +173,10 @@ public class EditRepositoryDialog extends JDialog { federationPanel.add(newFieldPanel(Translation.get("gb.federationSets"), setsPalette),
BorderLayout.CENTER);
- JPanel panel = new JPanel(new BorderLayout(5, 5));
- panel.add(fieldsPanel, BorderLayout.NORTH);
- panel.add(accessPanel, BorderLayout.CENTER);
- panel.add(federationPanel, BorderLayout.SOUTH);
+ JTabbedPane panel = new JTabbedPane(JTabbedPane.TOP);
+ panel.addTab(Translation.get("gb.general"), fieldsPanel);
+ panel.addTab(Translation.get("gb.accessRestriction"), accessPanel);
+ panel.addTab(Translation.get("gb.federation"), federationPanel);
JButton createButton = new JButton(Translation.get("gb.save"));
createButton.addActionListener(new ActionListener() {
diff --git a/src/com/gitblit/wicket/GitBlitWebApp.properties b/src/com/gitblit/wicket/GitBlitWebApp.properties index c7ee6ce1..9702e6cc 100644 --- a/src/com/gitblit/wicket/GitBlitWebApp.properties +++ b/src/com/gitblit/wicket/GitBlitWebApp.properties @@ -154,4 +154,5 @@ gb.selected = selected gb.size = size
gb.downloading = downloading
gb.loading = loading
-gb.starting = starting
\ No newline at end of file +gb.starting = starting
+gb.general = general
\ No newline at end of file |