Added feedback when deleting an activity.
This commit is contained in:
parent
ec5b3cacae
commit
8cc6c62cc3
view/src/main/java/se/su/dsv/scipro/activityplan
|
@ -34,6 +34,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<!--row end-->
|
||||
<div wicket:id="feedback"></div>
|
||||
<table class="table table-striped table-hover" wicket:id="table"></table>
|
||||
<wicket:fragment wicket:id="resourceCell">
|
||||
<div wicket:id="fileUpload"></div>
|
||||
|
|
|
@ -8,6 +8,7 @@ import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColu
|
|||
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
|
||||
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
|
||||
import org.apache.wicket.extensions.markup.html.repeater.data.table.export.AbstractExportableColumn;
|
||||
import org.apache.wicket.feedback.FencedFeedbackPanel;
|
||||
import org.apache.wicket.markup.html.WebPage;
|
||||
import org.apache.wicket.markup.html.basic.Label;
|
||||
import org.apache.wicket.markup.html.form.EnumChoiceRenderer;
|
||||
|
@ -71,7 +72,12 @@ public class ActivityPlanPanel extends GenericPanel<Project> {
|
|||
newButtonSetup();
|
||||
dataViewSetup();
|
||||
addModeControls();
|
||||
addFeedback();
|
||||
}
|
||||
|
||||
private void addFeedback() {
|
||||
add(new FencedFeedbackPanel("feedback", this)
|
||||
.setOutputMarkupId(true));
|
||||
}
|
||||
|
||||
private void newDialogSetup() {
|
||||
|
@ -205,6 +211,8 @@ public class ActivityPlanPanel extends GenericPanel<Project> {
|
|||
facade.deleteActivity(rowModel.getObject());
|
||||
target.add(table);
|
||||
notifyDeletedActivityPlan(rowModel.getObject().getTitle());
|
||||
success(getString("activity.deleted", model));
|
||||
target.addListener(new AjaxFeedbackPanelUpdater());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ edit: Edit
|
|||
delete: Delete
|
||||
save.as.template: Save as template
|
||||
delete.confirmation: Are you sure you want to delete this activity?
|
||||
activity.deleted: Activity '${title}' was removed from the activity plan.
|
||||
SearchMode.PROJECT_ALL: Show all activities
|
||||
SearchMode.PROJECT_PAST: Show past activities
|
||||
SearchMode.PROJECT_FUTURE: Show upcoming activities
|
||||
|
|
Loading…
Reference in New Issue
Block a user