Skip to content
Snippets Groups Projects
Commit b646c9d8 authored by Florian Gnägi's avatar Florian Gnägi
Browse files

OO-4511 Add title to my bookings page

parent f3886107
No related branches found
No related tags found
No related merge requests found
...@@ -86,12 +86,27 @@ public class OrdersController extends FormBasicController implements Activateabl ...@@ -86,12 +86,27 @@ public class OrdersController extends FormBasicController implements Activateabl
@Autowired @Autowired
private AccessControlModule acModule; private AccessControlModule acModule;
/**
* Constructor that shows table with title and description for identity of user
* session.
*
* @param ureq
* @param wControl
*/
public OrdersController(UserRequest ureq, WindowControl wControl) { public OrdersController(UserRequest ureq, WindowControl wControl) {
super(ureq, wControl, LAYOUT_BAREBONE); super(ureq, wControl, "orders");
this.identity = getIdentity(); this.identity = getIdentity();
initForm(ureq); initForm(ureq);
} }
/**
* Constructor that shows table without title and description for the given
* identity, e.g. for an admin interface.
*
* @param ureq
* @param wControl
* @param identity
*/
public OrdersController(UserRequest ureq, WindowControl wControl, Identity identity) { public OrdersController(UserRequest ureq, WindowControl wControl, Identity identity) {
super(ureq, wControl, LAYOUT_BAREBONE); super(ureq, wControl, LAYOUT_BAREBONE);
this.identity = identity; this.identity = identity;
......
<div class="o_sel_order_list"> <div class="o_sel_order_list">
<h4><i class="o_icon o_icon_booking"> </i> $title</h4> <h2><i class="o_icon o_icon-fw o_icon_booking"> </i> $title</h2>
#set ($notEmpty = $r.isNotZero($r.getComponent("orderList").getFlexiTableElement().getRowCount()))
#if ($notEmpty)
<div class="o_info">$description</div> <div class="o_info">$description</div>
#if($r.available("searchForm"))
$r.render("searchForm")
#end #end
$r.render("orderList") $r.render("orderList")
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment