Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c45dffc1e | ||
|
|
5bc2ad1517 | ||
|
|
a6eed18ac1 | ||
|
|
67bbb02a2f | ||
|
|
8fe3153c10 | ||
|
|
de0f10425b | ||
|
|
4bd7c3d174 | ||
|
|
ad1ae04624 | ||
|
|
dad6babe97 | ||
|
|
240c63d9fd |
+1
-1
@@ -1 +1 @@
|
|||||||
1.13.3
|
1.14.1
|
||||||
|
|||||||
@@ -123,60 +123,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<div class="row" id="footer">
|
::use 'footer.mtt'::
|
||||||
|
::end::
|
||||||
|
|
||||||
<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="http://www.cagette.net/wiki" 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.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>
|
|
||||||
|
|
||||||
::end::
|
::end::
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
::use 'base.mtt'::
|
::use 'base.mtt'::
|
||||||
|
|
||||||
|
<div class="row header" style="margin-top:10px;">
|
||||||
<div class="col-md-8 col-md-offset-2" style="margin-top:12px;">
|
<div class="col-md-8 col-md-offset-2" style="margin-top:12px;">
|
||||||
|
|
||||||
<!-- Notifications -->
|
<!-- Notifications -->
|
||||||
@@ -13,19 +13,19 @@
|
|||||||
::else::
|
::else::
|
||||||
<span class="glyphicon glyphicon-ok"></span>
|
<span class="glyphicon glyphicon-ok"></span>
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
::raw notification.text::
|
::raw notification.text::
|
||||||
</div>
|
</div>
|
||||||
::end::
|
::end::
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="article">
|
<div class="article">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
::if group._image!=null::
|
::if group._image!=null::
|
||||||
|
|
||||||
::if group.extUrl!=null && group.extUrl!=""::
|
::if group.extUrl!=null && group.extUrl!=""::
|
||||||
@@ -36,21 +36,21 @@
|
|||||||
|
|
||||||
::end::
|
::end::
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
::if isMember::
|
::if isMember::
|
||||||
<!-- connected and member of the group-->
|
<!-- connected and member of the group-->
|
||||||
<a href="/user/choose?amap=::group.id::" class="btn btn-primary">
|
<a href="/user/choose?amap=::group.id::" class="btn btn-primary">
|
||||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||||
::_("Go to my account")::
|
::_("Go to my account")::
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
::else::
|
::else::
|
||||||
|
|
||||||
<h4>Inscriptions :</h4>
|
<h4>Inscriptions :</h4>
|
||||||
::switch group._regOption::
|
::switch group._regOption::
|
||||||
|
|
||||||
::case::
|
::case::
|
||||||
<p>
|
<p>
|
||||||
::_("Contact the person in charge in order to subscribe to this group and get to know membership conditions.")::
|
::_("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")::
|
::_("Subscription on waiting list")::
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
::case::
|
::case::
|
||||||
<p>
|
<p>
|
||||||
<a href="/group/register/::group.id::" class="btn btn-primary">
|
<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.")::
|
::_("This group is full and do not accept any more subscription.")::
|
||||||
</p>
|
</p>
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
::if user==null::
|
::if user==null::
|
||||||
<hr />
|
<hr />
|
||||||
<h4>::_("Already member? Log in:")::</h4>
|
<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>
|
<a href="#" onclick="_.loginBox('/group/::group.id::')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-user"></span> ::_("Log in")::</a>
|
||||||
</div>
|
</div>
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
::group.name::
|
::group.name::
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
::if group.txtIntro!=null && group.txtIntro!=""::
|
::if group.txtIntro!=null && group.txtIntro!=""::
|
||||||
::raw nl2br(group.txtIntro)::
|
::raw nl2br(group.txtIntro)::
|
||||||
::end::
|
::end::
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<h3> ::_("Next deliveries")::</h3>
|
<h3> ::_("Next deliveries")::</h3>
|
||||||
|
|
||||||
::foreach d group.getDeliveries(4)::
|
::foreach d group.getDeliveries(4)::
|
||||||
|
|
||||||
<div style="display:inline-block;margin-right:8px;vertical-align:top;">
|
<div style="display:inline-block;margin-right:8px;vertical-align:top;">
|
||||||
::set s = getDate( d.date )::
|
::set s = getDate( d.date )::
|
||||||
::if isToday(d.date)::
|
::if isToday(d.date)::
|
||||||
@@ -125,15 +125,15 @@
|
|||||||
$$date(::s.dow::,::s.d::,::s.m::,::s.y::,::d._place::)
|
$$date(::s.dow::,::s.d::,::s.m::,::s.y::,::d._place::)
|
||||||
::end::
|
::end::
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
::end::
|
::end::
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<p ::cond group._contact!=null::>
|
<p ::cond group._contact!=null::>
|
||||||
<h3>::_("Contact")::</h3>
|
<h3>::_("Contact")::</h3>
|
||||||
|
|
||||||
<i class="icon-user"></i>
|
<i class="icon-user"></i>
|
||||||
<b>::group._contact.firstName:: ::group._contact.lastName::</b><br/>
|
<b>::group._contact.firstName:: ::group._contact.lastName::</b><br/>
|
||||||
<span ::cond group._contact.email!=null::>
|
<span ::cond group._contact.email!=null::>
|
||||||
@@ -144,52 +144,49 @@
|
|||||||
<span class="glyphicon glyphicon-phone-alt"></span> ::group._contact.phone::<br/>
|
<span class="glyphicon glyphicon-phone-alt"></span> ::group._contact.phone::<br/>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<h3>::_("Suppliers and products")::</h3>
|
<h3>::_("Suppliers and products")::</h3>
|
||||||
<p>
|
<p>
|
||||||
::_("Non-complete extract of available products:")::
|
::_("Non-complete extract of available products:")::
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
::foreach c contracts::
|
::foreach c contracts::
|
||||||
<p>
|
<p>
|
||||||
<b>::c.name::</b><br/>
|
<b>::c.name::</b><br/>
|
||||||
::c._vendor.name::, $$nullSafe(::c._vendor.zipCode::) $$nullSafe(::c._vendor.city::)
|
::c._vendor.name::, $$nullSafe(::c._vendor.zipCode::) $$nullSafe(::c._vendor.city::)
|
||||||
<div class="row">
|
<div class="row">
|
||||||
::foreach p c.getProductsPreview(6)::
|
::foreach p c.getProductsPreview(6)::
|
||||||
<div class="col-md-2" data-toggle="tooltip" data-placement="top" title="::p.name::" >
|
<div class="col-md-2" data-toggle="tooltip" data-placement="top" title="::p.name::" >
|
||||||
<div style="background-image:url('::p.getImage()::')" class="productImg"/>
|
<div style="background-image:url('::p.getImage()::')" class="productImg"/>
|
||||||
</div>
|
</div>
|
||||||
::end::
|
::end::
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12">
|
</div>
|
||||||
<div id="footer">
|
::use 'footer.mtt'::
|
||||||
<a href="::_("http://www.cagette.net")::">::_("Cagette.net, the free software of food direct-selling")::</a>.
|
::end::
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
::end::
|
::end::
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{"name": "cagette-pei", "description": "le logiciel libre du circuit court", "license": "AGPL-3.0", "dependencies": {"bootstrap": "^3.3.4", "eonasdan-bootstrap-datetimepicker": "^4.7.14", "geolib": "^2.0.24", "haxe-modular": "^0.7.0", "jquery": "^2.2.4", "leaflet": "^1.3.1", "react": "^15.6.1", "react-bootstrap-typeahead": "1.4.2", "react-datetime": "^2.9.0", "react-dom": "^15.6.1", "react-leaflet": "^1.8.0", "react-places-autocomplete": "^6.0.2", "react-router": "^4.2.0", "react-router-dom": "^4.2.2"}, "devDependencies": {"babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babelify": "^7.3.0", "browserify": "^14.4.0", "cross-env": "^5.1.1", "node-sass": "^4.5.3", "npm-run-all": "^4.1.2", "uglify-js": "^3.1.9", "watchify": "^3.9.0"}, "scripts": {"build": "npm-run-all --parallel build:*", "build:js": "haxe cagetteJs.hxml", "build:sass": "node-sass www/css -o www/css", "watch:sass": "npm run build:sass -- --watch", "build2": "babel src -d lib", "libs:dev": "browserify js/libs/libs.js -o www/js/libs.js -d", "libs:prod": "cross-env NODE_ENV=production browserify js/libs/libs.js | uglifyjs -c -m > www/js/libs.js", "test": "haxe testsJS.hxml && node js/test/tests.js", "prepush": "npm test"}, "repository": {"type": "git", "url": "git+https://github.com/bablukid/cagette.git"}, "bugs": {"url": "https://github.com/bablukid/cagette/issues"}, "version": "1.13.3"}
|
{"name": "cagette-pei", "description": "le logiciel libre du circuit court", "license": "AGPL-3.0", "dependencies": {"bootstrap": "^3.3.4", "eonasdan-bootstrap-datetimepicker": "^4.7.14", "geolib": "^2.0.24", "haxe-modular": "^0.7.0", "jquery": "^2.2.4", "leaflet": "^1.3.1", "react": "^15.6.1", "react-bootstrap-typeahead": "1.4.2", "react-datetime": "^2.9.0", "react-dom": "^15.6.1", "react-leaflet": "^1.8.0", "react-places-autocomplete": "^6.0.2", "react-router": "^4.2.0", "react-router-dom": "^4.2.2"}, "devDependencies": {"babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babelify": "^7.3.0", "browserify": "^14.4.0", "cross-env": "^5.1.1", "node-sass": "^4.5.3", "npm-run-all": "^4.1.2", "uglify-js": "^3.1.9", "watchify": "^3.9.0"}, "scripts": {"build": "npm-run-all --parallel build:*", "build:js": "haxe cagetteJs.hxml", "build:sass": "node-sass www/css -o www/css", "watch:sass": "npm run build:sass -- --watch", "build2": "babel src -d lib", "libs:dev": "browserify js/libs/libs.js -o www/js/libs.js -d", "libs:prod": "cross-env NODE_ENV=production browserify js/libs/libs.js | uglifyjs -c -m > www/js/libs.js", "test": "haxe testsJS.hxml && node js/test/tests.js", "prepush": "npm test"}, "repository": {"type": "git", "url": "git+https://github.com/bablukid/cagette.git"}, "bugs": {"url": "https://github.com/bablukid/cagette/issues"}, "version": "1.14.1"}
|
||||||
|
|||||||
@@ -29,8 +29,10 @@ class Main extends Controller {
|
|||||||
if ( app.user!=null && group == null) {
|
if ( app.user!=null && group == null) {
|
||||||
throw Redirect("/user/choose");
|
throw Redirect("/user/choose");
|
||||||
}else if (app.user == null && (group==null || group.regOption!=db.Amap.RegOption.Open) ) {
|
}else if (app.user == null && (group==null || group.regOption!=db.Amap.RegOption.Open) ) {
|
||||||
//throw Redirect("/user/login");
|
|
||||||
throw Redirect("/group/1");
|
if (db.Amap.manager.get(1, false) != null) throw Redirect("/group/1");
|
||||||
|
else throw Redirect("/user/login");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
view.amap = group;
|
view.amap = group;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 212 KiB |
Reference in New Issue
Block a user