code from amapei

This commit is contained in:
cagette@ct8
2020-09-26 18:25:18 +00:00
parent 42fe367911
commit 72b4699871
1966 changed files with 220437 additions and 2 deletions
+108
View File
@@ -0,0 +1,108 @@
::use 'design.mtt'::
<div class="col-md-12">
<h2>::_("Hello")::
::if whichUser()==0::
::user.firstName::
::else::
::user.firstName2::
::end::
!
</h2>
</div>
<div class="col-md-12" ::cond pros!=null && pros.length>0::>
<p> ::raw _("Connect to your <b>Cagette Pro</b> account to manage your products, catalogs and deliveries.")::</p>
</div>
<!-- cagette pro -->
<div class="col-md-12" ::cond pros!=null::>
<div class="row">
::foreach p pros::
<!-- Cagette pro -->
<div class="col-md-4">
<a class="clickable proBlock" href="/p/pro/?company=::p.id::">
::if p._image!=null::
<img src="::file(p._image)::" class="img-responsive" style="width:92px;float:left;margin-right:12px;" />
::end::
<h4>::p.name::</h4>
</a>
</div>
::end::
</div>
</div>
<div class="col-md-12" >
<p>::raw _("Please click on the <b>Cagette group</b> you want to connect to.")::</p>
</div>
<!-- groups -->
<div class="col-md-12">
<div class="row">
::foreach ua amaps::
::set group = ua._amap::
<div class="col-md-4">
<a class="clickable groupBlock" href="/user/choose?amap=::group.id::">
::if group._image!=null::
<img src="::file(group._image)::" class="img-responsive" style="width:92px;float:left;margin-right:12px;" />
::end::
<h4>::group.name::</h4>
</a>
</div>
::end::
::if amaps.length==0::
<div class="col-md-12">
<div class="article text-center">
<p>
::_("You don't belong to any group yet")::
</p>
<a class="btn btn-primary" href="/group/create/"><span class="glyphicon glyphicon-chevron-right"></span> ::_("Create my own group")::</a>
</div>
</div>
::end::
</div>
</div>
<!-- actions -->
<div class="col-md-12 text-center" style="margin-bottom:12px;" >
::if session.lang!="de"::
<a class="btn btn-default btn-lg" href="/group/map"><span class="glyphicon glyphicon-search"></span> ::_("Find other groups near me")::</a>
::end::
<a class="btn btn-default btn-lg" href="/group/create/"><span class="glyphicon glyphicon-plus"></span> ::_("Create my own group")::</a>
</div>
<!-- waiting list -->
<div class="col-md-12" ::cond wl.length>0::>
<div class="article">
<h4>::_("Subscriptions on waiting list")::</h4>
<table class="table">
::foreach w wl::
<tr>
<td>
<a href="/group/::w._group.id::">::w._group.name::</a>
</td>
<td>
::__("Request sent on ::date::",{ date:hDate(w.date) })::
</td>
<td>
<a href="/group/listCancel/::w._group.id::" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span> ::_("Cancel")::</a>
</td>
</tr>
::end::
</table>
</div>
</div>
::end::
+11
View File
@@ -0,0 +1,11 @@
::use 'design.mtt'::
<ul>
<li><a href="/user/forgottenPassword">::_("Password forgotten")::</a></li>
<li><a href="/user/login">::_("Connection")::</a></li>
</ul>
::end::
+39
View File
@@ -0,0 +1,39 @@
:: use 'design.mtt'::
<h1>::_("Change of password")::</h1>
::if error!=null::
<div class="alert">
::error::
</div>
::end::
::if step==1 ::
<p>
::_("If you have forgotten your password or if you would like to change it, please key-in below your e-mail address:")::
::raw form::
</p>
::elseif step==2::
<p>
::_("An e-mail was sent to you to allow you changing your password.")::
</p>
::elseif step==3::
<p>
::_("Key-in your new password:")::
::raw form::
</p>
::else::
<p>
::_("Congratulations, your password have been modified!")::
</p>
<p>
<a href="/user/login" class="btn btn-default">::_("Log in with")::</a>
</p>
::end::
::end::
@@ -0,0 +1,42 @@
:: use 'design.mtt'::
<div class="col-md-12">
<div class="article">
<h1>Changement de mot de passe</h1>
::if error!=null::
<div class="alert alert-danger">
::error::
</div>
::else::
::if step==1 ::
<p>
::_("If you have forgotten your password or if you would like to change it, please key-in below your e-mail address:")::
::raw form::
</p>
::elseif step==2::
<div class="alert alert-danger">
::_("An e-mail was sent to you to allow you changing your password.")::
</div>
::elseif step==3::
<p>
::_("Key-in your new password:")::
::raw form::
</p>
::else::
<div class="alert alert-success">
::_("Congratulations, your password have been modified!")::
</div>
<p>
<a href="/user/login" class="btn btn-default">::_("Log in with your new password")::</a>
</p>
::end::
::end::
</div>
</div>
::end::
+35
View File
@@ -0,0 +1,35 @@
::use 'design.mtt'::
<div class="col-md-12">
<div class="article">
<h3 ::cond title!=null::>::title::</h3>
<p ::cond userSims!=null && userSims.length>0:: >
<strong>::_("These persons are already in the database, but are not member of this group:")::</strong>
<p>::foreach u userSims::
::u::<br/>
::end::
</p>
</p>
<p ::cond userAmaps!=null && userAmaps.length>0:: >
<strong>::_("These persons are already member of this group:")::</strong>
<p>
::foreach u userAmaps::
::u::<br/>
::end::
</p>
</p>
<div ::cond text!=null::>
::raw text::
</div>
::if form != null::
::raw form::
::end::
</div>
</div>
::end::
+8
View File
@@ -0,0 +1,8 @@
::use 'design.mtt'::
<div class="col-md-12" style="height:500px;">
<script language="javascript">
_.loginBox('::redirect::');
</script>
</div>
::end::
+11
View File
@@ -0,0 +1,11 @@
::use 'design.mtt'::
<div id="content" class="col-md-12">
<h1>::_("Sign up!")::</h1>
::raw form::
</div>
::end::