git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@330 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
parent
ccc5aa36b4
commit
9218f6ffd5
src/main/java/se/su/dsv/scipro/schedule/panels
@ -13,7 +13,7 @@
|
||||
<span wicket:id="eventTitle">Event title here</span>
|
||||
<span wicket:id="eventDueDate">Event date here</span>
|
||||
<span wicket:id="eventDeleteButton" class="floating-icon icon-button icon-delete float-right"></span>
|
||||
<span wicket:id="eventEditButton" class="floating-icon icon-button icon-edit float-right"></span>
|
||||
<span wicket:id="eventEditButton" class="floating-icon icon-button icon-pencil float-right"></span>
|
||||
<div class="scheduleEventIconbar">
|
||||
<span>Space for activity icons etc</span>
|
||||
</div>
|
||||
|
@ -65,14 +65,14 @@ public class EventPanel extends Panel {
|
||||
@Override
|
||||
protected void onEvent(AjaxRequestTarget target) {
|
||||
if(!showingDetails){
|
||||
showDetailsButton.add(new AttributeModifier("class", new Model<String>("icon icon-button icon-showLess")));
|
||||
showDetailsButton.add(new AttributeModifier("class", new Model<String>("icon icon-button icon-minus")));
|
||||
eventDetailsContainer.replace(event.getScheduleDetailsPanel("eventDetails"));
|
||||
target.addComponent(showDetailsButton);
|
||||
target.addComponent(eventDetailsContainer);
|
||||
target.appendJavascript(new StringBuffer(new JsStatement().$(eventDetailsContainer).chain(new SlideDown(EffectSpeed.FAST)).render(true)).toString());
|
||||
showingDetails = !showingDetails;
|
||||
} else {
|
||||
showDetailsButton.add(new AttributeModifier("class", new Model<String>("icon icon-button icon-showMore")));
|
||||
showDetailsButton.add(new AttributeModifier("class", new Model<String>("icon icon-button icon-plus")));
|
||||
target.addComponent(showDetailsButton);
|
||||
target.appendJavascript(new StringBuffer(new JsStatement().$(eventDetailsContainer).chain(new SlideUp(EffectSpeed.FAST)).render(true)).toString());
|
||||
showingDetails = !showingDetails;
|
||||
|
@ -3,7 +3,7 @@
|
||||
<wicket:panel>
|
||||
<span wicket:id="timeDiffDays" class="icon icon-timeDiff">18</span> <span wicket:id="timeDiffDaysText">days</span>
|
||||
<span wicket:id="timeDiffHours">5</span> <span wicket:id="timeDiffHoursText">hours</span>
|
||||
<span wicket:id="noNextEvent" class="icon icon-timeDiff"></span>
|
||||
<span wicket:id="noNextEvent" class="icon icon-arrowDown"></span>
|
||||
</wicket:panel>
|
||||
</body>
|
||||
</html>
|
@ -43,6 +43,8 @@ public class ScheduleTimeControllerPanel extends Panel {
|
||||
|
||||
MonthPicker mp = new MonthPicker("monthPicker");
|
||||
mp.registerOnChangeListener(new IMonthChangedListener(){
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public void onSelectionChange(AjaxRequestTarget target, Date date) {
|
||||
parent.getListModel().setMonthFromDate(date);
|
||||
|
Loading…
x
Reference in New Issue
Block a user