Updated several labels
This commit is contained in:
parent
5031c3b9c0
commit
008ffbfef6
|
@ -393,7 +393,7 @@ public class CreateDatasetForm extends Composite {
|
||||||
listOfSteps = Arrays.asList("Edit Common Metadata", "Select Item Resources",
|
listOfSteps = Arrays.asList("Edit Common Metadata", "Select Item Resources",
|
||||||
"Edit Item Specific Metadata & Publish");
|
"Edit Item Specific Metadata & Publish");
|
||||||
} else {
|
} else {
|
||||||
listOfSteps = Arrays.asList("Edit Common Metadata", "Edit Item Specific Metadata & Publish");
|
listOfSteps = Arrays.asList("Edit Common Metadata", "Edit Item Specific Metadata & Publish", "Add Resources");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.wizCreator = new WizardCreator(listOfSteps);
|
this.wizCreator = new WizardCreator(listOfSteps);
|
||||||
|
|
|
@ -393,7 +393,7 @@ public class UpdateDatasetForm extends Composite {
|
||||||
|
|
||||||
infoBlock.add(alertPanel);
|
infoBlock.add(alertPanel);
|
||||||
|
|
||||||
List<String> listOfSteps = Arrays.asList("Edit Common Metadata", "Edit Item Specific Metadata & Update");
|
List<String> listOfSteps = Arrays.asList("Edit Common Metadata", "Edit Item Specific Metadata & Update", "Manage Resources");
|
||||||
|
|
||||||
this.wizCreator = new WizardCreator(listOfSteps);
|
this.wizCreator = new WizardCreator(listOfSteps);
|
||||||
wizardCreatorPanel.add(wizCreator);
|
wizardCreatorPanel.add(wizCreator);
|
||||||
|
|
|
@ -247,7 +247,7 @@ public class AddResourceToDataset extends Composite {
|
||||||
infoPanel.clear();
|
infoPanel.clear();
|
||||||
|
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
showAlert("Resource created correctly", null, AlertType.SUCCESS, true, true);
|
showAlert("Resource added correctly", null, AlertType.SUCCESS, true, true);
|
||||||
eventBus.fireEvent(new AddResourceEvent(result));
|
eventBus.fireEvent(new AddResourceEvent(result));
|
||||||
eventBus.fireEvent(new ReloadDatasetPageEvent(datasetId));
|
eventBus.fireEvent(new ReloadDatasetPageEvent(datasetId));
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@ import com.google.gwt.event.shared.HandlerManager;
|
||||||
import com.google.gwt.uibinder.client.UiBinder;
|
import com.google.gwt.uibinder.client.UiBinder;
|
||||||
import com.google.gwt.uibinder.client.UiField;
|
import com.google.gwt.uibinder.client.UiField;
|
||||||
import com.google.gwt.user.client.ui.Composite;
|
import com.google.gwt.user.client.ui.Composite;
|
||||||
|
import com.google.gwt.user.client.ui.HTML;
|
||||||
|
import com.google.gwt.user.client.ui.HTMLPanel;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
|
|
||||||
public class ManageResources extends Composite {
|
public class ManageResources extends Composite {
|
||||||
|
@ -32,6 +34,12 @@ public class ManageResources extends Composite {
|
||||||
|
|
||||||
@UiField
|
@UiField
|
||||||
TabPanel tabPanel;
|
TabPanel tabPanel;
|
||||||
|
|
||||||
|
@UiField
|
||||||
|
HTMLPanel manageResourceTitle;
|
||||||
|
|
||||||
|
@UiField
|
||||||
|
HTML manageResourceSubTitle;
|
||||||
|
|
||||||
private AddedResourcesSummary addedResourcesSummary;
|
private AddedResourcesSummary addedResourcesSummary;
|
||||||
|
|
||||||
|
@ -44,6 +52,8 @@ public class ManageResources extends Composite {
|
||||||
public ManageResources(HandlerManager eventBus, final DatasetBean theDatasetBean, String datasetUrl) {
|
public ManageResources(HandlerManager eventBus, final DatasetBean theDatasetBean, String datasetUrl) {
|
||||||
initWidget(uiBinder.createAndBindUi(this));
|
initWidget(uiBinder.createAndBindUi(this));
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
|
|
||||||
|
manageResourceSubTitle.setText(" "+theDatasetBean.getTitle());
|
||||||
|
|
||||||
addResourceForm = new AddResourceToDataset(eventBus, theDatasetBean.getId(), theDatasetBean.getTitle(),
|
addResourceForm = new AddResourceToDataset(eventBus, theDatasetBean.getId(), theDatasetBean.getTitle(),
|
||||||
theDatasetBean.getSelectedOrganization(), datasetUrl);
|
theDatasetBean.getSelectedOrganization(), datasetUrl);
|
||||||
|
|
|
@ -6,17 +6,30 @@
|
||||||
.important {
|
.important {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.manage_resource_title{
|
|
||||||
|
.manage_resource_title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.manage_resource_subtitle {
|
||||||
|
font-size: 16px;
|
||||||
|
color: gray;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
</ui:style>
|
</ui:style>
|
||||||
<g:HTMLPanel>
|
<g:HTMLPanel>
|
||||||
<g:HTML addStyleNames="{style.manage_resource_title}">Manage Resources</g:HTML>
|
<g:HTMLPanel addStyleNames="{style.manage_resource_title}"
|
||||||
|
ui:field="manageResourceTitle">
|
||||||
|
Manage Resources of:
|
||||||
|
<g:HTML ui:field="manageResourceSubTitle"
|
||||||
|
addStyleNames="{style.manage_resource_subtitle}">
|
||||||
|
</g:HTML>
|
||||||
|
</g:HTMLPanel>
|
||||||
<b:TabPanel ui:field="tabPanel">
|
<b:TabPanel ui:field="tabPanel">
|
||||||
<b:Tab ui:field="addResources" heading="Add Resource"></b:Tab>
|
<b:Tab ui:field="addResources" heading="Add Resource"></b:Tab>
|
||||||
<b:Tab ui:field="addedResources" heading="Added Resources"></b:Tab>
|
<b:Tab ui:field="addedResources" heading="Current Resources"></b:Tab>
|
||||||
</b:TabPanel>
|
</b:TabPanel>
|
||||||
</g:HTMLPanel>
|
</g:HTMLPanel>
|
||||||
</ui:UiBinder>
|
</ui:UiBinder>
|
Loading…
Reference in New Issue