Redesigned UpcomingEventsPanel
This commit is contained in:
parent
ad0ed5b84b
commit
a2036ab5ec
src/main
java/se/su/dsv/scipro
data
project
webapp/css
@ -64,7 +64,6 @@ public class EventDaoJPAImp extends LazyDeleteAbstractDaoJPAImp<Event> implement
|
||||
events.addAll(d.getEventsByUserAndProject(u, p, fromDate, toDate, limit));
|
||||
}
|
||||
Collections.sort(events);
|
||||
System.out.println(events);
|
||||
return events;
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class ProjectEvent extends Event {
|
||||
|
||||
@Override
|
||||
protected void onFormSubmit(AjaxRequestTarget target) {
|
||||
System.out.println("On form submitt in event class");
|
||||
//System.out.println("On form submitt in event class");
|
||||
callback.doCallback(target);
|
||||
|
||||
}
|
||||
|
@ -119,7 +119,6 @@ public class ProjectPartnerPage extends ProjectPage {
|
||||
wmc.add(dataView);
|
||||
wmc.setOutputMarkupId(true);
|
||||
pagingNavigator = new PagingNavigator("navigator", dataView);
|
||||
System.out.println(dataView.size());
|
||||
wmc.add(pagingNavigator);
|
||||
add(wmc);
|
||||
|
||||
|
@ -2,18 +2,17 @@
|
||||
<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
|
||||
<body>
|
||||
<wicket:panel>
|
||||
<div wicket:id="showDetailsIcon" class="left"></div>
|
||||
<a href="#" class="right" wicket:id="eventPageLink"><img wicket:id="eventPageLinkIcon" /></a><div wicket:id="eventDueDate" class="span-1 left month"></div>
|
||||
|
||||
<p></p>
|
||||
<span class="event-title" wicket:id="eventTitle">Event title here</span>
|
||||
<div>
|
||||
<img wicket:id="eventDeleteIcon" class="right" />
|
||||
<img wicket:id="eventEditIcon" class="right" />
|
||||
<div>
|
||||
<div wicket:id="showDetailsIcon" class="left"></div>
|
||||
<span wicket:id="eventDueDate" class="span-2 left month"></span>
|
||||
<div>
|
||||
<span wicket:id="eventTitle">Event title here</span>
|
||||
|
||||
<img wicket:id="eventDeleteIcon" class="right" />
|
||||
<img wicket:id="eventEditIcon" class="right" />
|
||||
|
||||
<span class ="right"></span>
|
||||
<div wicket:id="statusIcon"></div>
|
||||
<a href="#" wicket:id="eventPageLink"><span wicket:id="statusIcon"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
|
@ -23,13 +23,11 @@ import se.su.dsv.scipro.data.dataobjects.Event;
|
||||
import se.su.dsv.scipro.data.dataobjects.HandInActivity;
|
||||
import se.su.dsv.scipro.data.dataobjects.Project;
|
||||
import se.su.dsv.scipro.data.dataobjects.User;
|
||||
import se.su.dsv.scipro.icons.ActionIcon;
|
||||
import se.su.dsv.scipro.icons.AjaxActionIcon;
|
||||
import se.su.dsv.scipro.icons.ExpandContractActionIcon;
|
||||
import se.su.dsv.scipro.icons.IconPanel;
|
||||
import se.su.dsv.scipro.icons.ImageIcon;
|
||||
import se.su.dsv.scipro.schedule.baseevent.panels.EventScheduleDetailsPanel;
|
||||
import se.su.dsv.scipro.schedule.calendar.icon.CalendarIconImage;
|
||||
import se.su.dsv.scipro.util.IAjaxCallback;
|
||||
import se.su.dsv.scipro.util.JavascriptEventConfirmation;
|
||||
import se.su.dsv.scipro.util.WiQueryCoreEffectsHelper;
|
||||
@ -56,8 +54,8 @@ public abstract class EventLayoutPanel extends Panel {
|
||||
|
||||
//add(new CalendarIconImage("calendarIcon", event.getDueDate()));
|
||||
//add(new DateLabel("month", new Model<Date>(event.getDueDate()), new PatternDateConverter("MMM", false)));
|
||||
add(new Label("eventTitle", event.getTitle()));
|
||||
add(new DateLabel("eventDueDate", new Model<Date>(event.getDueDate()), new PatternDateConverter("yyyy-MM-dd HH:mm", false)));
|
||||
add(new Label("eventTitle", event.getTitle()));
|
||||
|
||||
final WebMarkupContainer eventDetailsContainer = new WebMarkupContainer("eventDetailsContainer");
|
||||
eventDetailsContainer.setOutputMarkupId(true);
|
||||
@ -91,8 +89,7 @@ public abstract class EventLayoutPanel extends Panel {
|
||||
}
|
||||
};
|
||||
|
||||
ImageIcon eventPageLinkIcon = new ImageIcon("eventPageLinkIcon", ActionIcon.ICON_DETAILS);
|
||||
eventPageLink.add(eventPageLinkIcon);
|
||||
|
||||
add(eventPageLink);
|
||||
|
||||
add(new AjaxActionIcon("eventEditIcon", AjaxActionIcon.ICON_EDIT){
|
||||
@ -172,7 +169,7 @@ public abstract class EventLayoutPanel extends Panel {
|
||||
}
|
||||
}
|
||||
|
||||
add(new IconPanel("statusIcon", statusIcon){
|
||||
eventPageLink.add(new IconPanel("statusIcon", statusIcon){
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
|
@ -1035,7 +1035,11 @@ div.wicket-aa ul li.selected {
|
||||
}
|
||||
|
||||
.month{
|
||||
font-size: 2em;
|
||||
font-style: strong;
|
||||
padding:0.2em;
|
||||
font-size: 1em;
|
||||
font-style: strong;
|
||||
}
|
||||
|
||||
.event-title{
|
||||
font-size: 1.4em;
|
||||
font-style: strong;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user