Browse Source

footer reuse

master
pvincent 2 years ago
parent
commit
67bbb02a2f
  1. 56
      lang/master/tpl/design.mtt
  2. 55
      lang/master/tpl/footer.mtt
  3. 101
      lang/master/tpl/group/view.mtt

56
lang/master/tpl/design.mtt

@ -123,60 +123,8 @@
</div>
</div>-->
<div class="row" id="footer">
<div class="col-md-2" >
<img width="120" style="border: white 5px solid;" src="/img/logo-mini.jpg" alt="::_("Cagette.net")::" title="Logo ::_("Cagette.net")::"/>
</div>
<div class="col-md-7" style="padding-top:1em">
Cagette Péi est un logiciel libre qui favorise les circuits courts.<br/>
Il a été adapté pour les besoins des AMAPs sur le marché réunionnais.<br/>
</div>
<div class="col-md-3" >
::_("HELP")::
<ul>
<li>
<a href="https://wiki.cagette.net/doku.php" target="_blank">::_("Documentation")::</a>
</li>
<li>
<a href="https://pad1.zourit.net/p/4a3b09afd25b4fdcb3f0a9598db21e61" target="_blank">Proposer une amélioration</a>
</li>
<li>
<a href="https://pad1.zourit.net/p/4a3b09afd25b4fdcb3f0a9598db21e61" target="_blank">Soumettre une anomalie</a>
</li>
</ul>
</div>
</div>
<div class="row" id="subfooter">
<p>
version cagettepei-<a target="_blank" href="https://git.artcode.re/cagetters/cagettepei/src/tag/::VERSION::">::VERSION::</a>
</p>
::if BANDEAU_REGION::
<img src='/img/bandeau_region_france_relance.png' alt='bandeau Région Réunion' width='250'></img>
::end::
</div>
::use 'footer.mtt'::
::end::
<div class="row">
<div class="col-md-12">
<!-- SQL LOG -->
<table class="sqlLog table table-bordered" ::cond sqlLog::>
::foreach r sqlLog::
<tr ::attr class if(r.bad) 'badSql'::>
<td>::r.t::ms</td>
<td>::r.length::</td>
<td><a href="#" onclick="javascript:alert('::r.explain::');return false;">Exp</a></td>
<td><a href="#" onclick="javascript:alert('::r.stack::');return false;">Stack</a></td>
<td>::r.sql::</td>
</tr>
::end::
</table>
</div>
</div>
::end::

55
lang/master/tpl/footer.mtt

@ -0,0 +1,55 @@
<div class="row" id="footer">
<div class="col-md-2" >
<img width="120" style="border: white 5px solid;" src="/img/logo-mini.jpg" alt="::_("Cagette.net")::" title="Logo ::_("Cagette.net")::"/>
</div>
<div class="col-md-7" style="padding-top:1em">
Cagette Péi est un logiciel libre qui favorise les circuits courts.<br/>
Il a été adapté pour les besoins des AMAPs sur le marché réunionnais.<br/>
</div>
<div class="col-md-3" >
::_("HELP")::
<ul>
<li>
<a href="https://wiki.cagette.net/doku.php" target="_blank">::_("Documentation")::</a>
</li>
<li>
<a href="https://pad1.zourit.net/p/4a3b09afd25b4fdcb3f0a9598db21e61" target="_blank">Proposer une amélioration</a>
</li>
<li>
<a href="https://pad1.zourit.net/p/4a3b09afd25b4fdcb3f0a9598db21e61" target="_blank">Soumettre une anomalie</a>
</li>
</ul>
</div>
</div>
<div class="row" id="subfooter">
<p>
version cagettepei-<a target="_blank" href="https://git.artcode.re/cagetters/cagettepei/src/tag/::VERSION::">::VERSION::</a>
</p>
::if BANDEAU_REGION::
<img src='/img/bandeau_region_france_relance.png' alt='bandeau Région Réunion' width='250'></img>
::end::
</div>
<div class="row">
<div class="col-md-12">
<!-- SQL LOG -->
<table class="sqlLog table table-bordered" ::cond sqlLog::>
::foreach r sqlLog::
<tr ::attr class if(r.bad) 'badSql'::>
<td>::r.t::ms</td>
<td>::r.length::</td>
<td><a href="#" onclick="javascript:alert('::r.explain::');return false;">Exp</a></td>
<td><a href="#" onclick="javascript:alert('::r.stack::');return false;">Stack</a></td>
<td>::r.sql::</td>
</tr>
::end::
</table>
</div>
</div>

101
lang/master/tpl/group/view.mtt

@ -1,6 +1,6 @@
::use 'base.mtt'::
<div class="col-md-8 col-md-offset-2" style="margin-top:12px;">
<!-- Notifications -->
@ -13,19 +13,19 @@
::else::
<span class="glyphicon glyphicon-ok"></span>
::end::
::raw notification.text::
::raw notification.text::
</div>
::end::
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-4">
<p>
::if group._image!=null::
::if group.extUrl!=null && group.extUrl!=""::
@ -36,21 +36,21 @@
::end::
</p>
<p>
::if isMember::
<!-- connected and member of the group-->
<a href="/user/choose?amap=::group.id::" class="btn btn-primary">
<span class="glyphicon glyphicon-chevron-right"></span>
::_("Go to my account")::
</a>
::else::
<h4>Inscriptions :</h4>
::switch group._regOption::
::case::
<p>
::_("Contact the person in charge in order to subscribe to this group and get to know membership conditions.")::
@ -71,7 +71,7 @@
::_("Subscription on waiting list")::
</a>
</p>
::case::
<p>
<a href="/group/register/::group.id::" class="btn btn-primary">
@ -84,12 +84,12 @@
::_("This group is full and do not accept any more subscription.")::
</p>
::end::
::end::
</p>
::if user==null::
<hr />
<h4>::_("Already member? Log in:")::</h4>
@ -97,26 +97,26 @@
<a href="#" onclick="_.loginBox('/group/::group.id::')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-user"></span> ::_("Log in")::</a>
</div>
::end::
</div>
<div class="col-md-8">
<h2>
::group.name::
</h2>
<p>
::if group.txtIntro!=null && group.txtIntro!=""::
::raw nl2br(group.txtIntro)::
::end::
</p>
<p>
<h3> ::_("Next deliveries")::</h3>
::foreach d group.getDeliveries(4)::
<div style="display:inline-block;margin-right:8px;vertical-align:top;">
::set s = getDate( d.date )::
::if isToday(d.date)::
@ -125,15 +125,15 @@
$$date(::s.dow::,::s.d::,::s.m::,::s.y::,::d._place::)
::end::
</div>
::end::
</p>
<hr/>
<p ::cond group._contact!=null::>
<h3>::_("Contact")::</h3>
<i class="icon-user"></i>
<b>::group._contact.firstName:: ::group._contact.lastName::</b><br/>
<span ::cond group._contact.email!=null::>
@ -144,52 +144,49 @@
<span class="glyphicon glyphicon-phone-alt"></span> ::group._contact.phone::<br/>
</span>
</p>
<hr/>
<p>
<h3>::_("Suppliers and products")::</h3>
<p>
::_("Non-complete extract of available products:")::
</p>
::foreach c contracts::
<p>
<b>::c.name::</b><br/>
::c._vendor.name::, $$nullSafe(::c._vendor.zipCode::) $$nullSafe(::c._vendor.city::)
<div class="row">
::foreach p c.getProductsPreview(6)::
<div class="col-md-2" data-toggle="tooltip" data-placement="top" title="::p.name::" >
<div style="background-image:url('::p.getImage()::')" class="productImg"/>
<div class="col-md-2" data-toggle="tooltip" data-placement="top" title="::p.name::" >
<div style="background-image:url('::p.getImage()::')" class="productImg"/>
</div>
::end::
::end::
</div>
</p>
</p>
::end::
</p>
</div>
</div>
<div class="col-md-4">
</div>
</div>
</div>
<div class="col-md-12">
<div id="footer">
<a href="::_("http://www.cagette.net")::">::_("Cagette.net, the free software of food direct-selling")::</a>.
</div>
</div>
::use 'footer.mtt'::
::end::
::end::
Loading…
Cancel
Save