You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
130 lines
4.4 KiB
130 lines
4.4 KiB
::use 'base.mtt'::
|
|
|
|
::if getParam('__redirect')!=null::
|
|
<!-- need to login to go to this page-->
|
|
<script>$(function(){
|
|
_.loginBox('::raw getParam("__redirect")::');
|
|
});</script>
|
|
::end::
|
|
|
|
<div class="row header" style="margin-top:10px;">
|
|
<div class="col-md-8">
|
|
::set groupName = getCurrentGroup()::
|
|
::if groupName!=null && noGroup!=true::
|
|
<h1>::groupName::</h1>
|
|
::else::
|
|
<h1>::_("Cagette.net")::</h1>
|
|
::end::
|
|
</div>
|
|
|
|
<div class="col-md-4 accountBlock">
|
|
::if user != null::
|
|
<div class="dropdown pull-right text-right userName" style="margin-top:16px;">
|
|
|
|
<a class="" style="margin-right:16px;" href="/user/choose?show=1">
|
|
<span class="glyphicon glyphicon-chevron-left"></span>::_("Change group")::
|
|
</a>
|
|
|
|
<a class="dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
|
|
<span class="glyphicon glyphicon-user"></span>
|
|
::user.getName()::
|
|
::if user.firstName2!=null::
|
|
::_("et"):: ::user.lastName2:: ::user.firstName2::
|
|
::end::
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1">
|
|
<li><a href="/user/logout"><span class="glyphicon glyphicon-log-out"></span> ::_("Log out")::</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
::else::
|
|
<div class="pull-right text-right">
|
|
<a href="/user/login" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-user"></span> ::_("Log in")::</a>
|
|
<a class="btn btn-default btn-sm" href="/group/map"><span class="glyphicon glyphicon-search"></span> ::_("Look for another group")::</a>
|
|
</div>
|
|
::end::
|
|
</div>
|
|
</div>
|
|
|
|
|
|
::if user != null && noGroup!=true::
|
|
|
|
<nav class="navbar navbar-default" ::cond user.getAmap()!=null::>
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#cagette-navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="cagette-navbar">
|
|
|
|
<ul class="nav navbar-nav navbar-left">
|
|
<li ::attr class if(category=="home") 'active' ::><a href="/">::_("Home")::</a></li>
|
|
<li ::attr class if(category=="contract" ) 'active' ::><a href="/contract">::_("My account")::</a></li>
|
|
<li ::attr class if(category=="amap") 'active' ::><a href="/amap">::_("Farmers")::</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li id="member" ::attr class if(category=="members") 'active' ::>
|
|
<a href="/member" ::cond user.canAccessMembership()::>::_("Members")::</a></li>
|
|
<li id="contractadmin" ::attr class if(category=="contractadmin") 'active' ::>
|
|
<a href="/contractAdmin" ::cond user.isContractManager(null)::>::_("Contracts")::</a></li>
|
|
<li id="messages" ::attr class if(category=="messages") 'active' ::>
|
|
<a href="/messages" ::cond user.canAccessMessages()::>::_("Messaging")::</a></li>
|
|
<li id="amapadmin" ::attr class if(category=="amapadmin") 'active' ::>
|
|
<a href="/amapadmin" ::cond user.isAmapManager()::>::_("Group")::</a></li>
|
|
<li ::cond user.isAdmin():: ::attr class if(category=="admin") 'active' ::>
|
|
<a href="/admin" >::_("Admin")::</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
::end::
|
|
|
|
<!-- Notifications -->
|
|
<div class="row">
|
|
<div id="content" class="col-md-12">
|
|
::foreach notification getMessages()::
|
|
<div class="alert ::if notification.error:: alert-danger ::else:: alert-success ::end::" ::cond notification::>
|
|
::if notification.error::
|
|
<span class="glyphicon glyphicon-exclamation-sign"></span>
|
|
::else::
|
|
<span class="glyphicon glyphicon-ok"></span>
|
|
::end::
|
|
|
|
::raw notification.text::
|
|
</div>
|
|
::end::
|
|
</div>
|
|
</div>
|
|
|
|
<!-- extra notification block for plugins -->
|
|
::if extraNotifBlock!=null::
|
|
::raw extraNotifBlock::
|
|
::end::
|
|
|
|
<div class="row">
|
|
::raw __content__::
|
|
</div>
|
|
|
|
<!--<div class="row">
|
|
<div class="col-md-12 alert-danger text-center" style="border-radius: 8px;margin:8px 0;padding:8px 0;">
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
Attention : CagettePéi sera indisponible le <b>mardi 7 août de 9:00 à 11:00</b>.
|
|
<br/>
|
|
Nous déménageons sur un nouveau serveur pour plus de rapidité et de fiabilité.
|
|
</div>
|
|
</div>-->
|
|
|
|
::use 'footer.mtt'::
|
|
::end::
|
|
|
|
|
|
::end::
|