Пример #1
0
<?php

use Enpowi\App;
use Enpowi\Modules\Module;
use Enpowi\Modules\DataOut;
Module::is();
$data = (new DataOut())->add('territoryCount', ETM\Territory::count())->add('pages', ETM\Territory::pages())->out();
?>
<div
    data="<?php 
echo $data;
?>
"
    class="container">
  <h3>Territory Book</h3>
  <table>
    <tr>
      <th>Page</th>
      <th>&nbsp;</th>
      <th>Territories</th>
    </tr>
    <tr v-repeat="page : pages">
      <td><a href="#/territory/page?page={{ $index + 1 }}">{{ $index + 1 }}</a></td>
      <td></td>
      <td>{{ page[0] + ' - ' + page[page.length - 1] }}</td>
    </tr>
  </table>
</div>
Пример #2
0
<?php

use Enpowi\Modules\Module;
use Enpowi\Modules\DataOut;
Module::is();
$data = (new DataOut())->add('congregationGeoJson', json_encode(ETM\Territory::allGeoJson()))->out();
?>
<div data="<?php 
echo $data;
?>
">
  <style>
    .leaflet-label-overlay {
      color: #000000;
      font-weight: bold;
      size: 4em;
    }
  </style>
  <div id="map" style="width: 100%; min-height: 500px;"></div>
</div>
<script>
  app.oneTo().land(function() {
    var mapElement = app.getElementById('map'),
        map = L.map(mapElement),
        geoJson = JSON.parse(datas[0].congregationGeoJson),
        options = {
          style: {
            color: '#50B414',
            weight: 5,
            opacity: 0.65
          }
Пример #3
0
<?php

use Enpowi\App;
use Enpowi\Modules\Module;
use Enpowi\Modules\DataOut;
Module::is();
$data = (new DataOut())->add('territories', ETM\Territory::returnPriority())->out();
?>
<div
    class="container"
    data="<?php 
echo $data;
?>
">
  <h3 v-t>Ideal Territory Return Dates</h3>
  <table class="table territory-detail wide">
    <thead>
    <tr>
      <th v-t>Territory</th>
      <th v-t>Locality</th>
      <th v-t>Checkout Out</th>
      <th v-t>Ideal Return Date</th>
      <th v-t>Publisher</th>
      <th v-t>Status</th>
    </tr>
    </thead>
    <tbody>
    <tr
        v-repeat="territory : territories"
        v-attr="class: territory.due
          ? 'warning'
Пример #4
0
<?php

use Enpowi\App;
use Enpowi\Modules\Module;
use Enpowi\Modules\DataOut;
Module::is();
$workPriority = ETM\Territory::workPriority();
$territoriesNotWorkedInYear = 0;
foreach ($workPriority as $territory) {
    if ($territory->workedInYear === false) {
        continue;
    }
    $territoriesNotWorkedInYear++;
}
$data = (new DataOut())->add('territories', $workPriority)->add('territoriesNotWorkedInYear', $territoriesNotWorkedInYear)->out();
?>
<div data="<?php 
echo $data;
?>
" class="container">
  <h3 v-t>Territory Priority</h3>
  <span v-t>Territories not worked in the year: </span><span>{{ territoriesNotWorkedInYear }}</span>
  <table class="table territory-detail wide">
    <thead>
    <tr>
      <th v-t>Territory</th>
      <th v-t>Locality</th>
      <th v-t>Last Worked</th>
      <th v-t>Last Worked By</th>
      <th v-t>Worked In Year</th>
    </tr>
Пример #5
0
<?php

use Enpowi\App;
use Enpowi\Modules\Module;
use Enpowi\Modules\DataOut;
Module::is();
$page = App::paramInt('page');
$data = (new DataOut())->add('territoryCount', ETM\Territory::count())->add('page', $page)->add('territories', ETM\Territory::page($page))->out();
?>
<div
    v-module
    data="<?php 
echo $data;
?>
">
  <title>Territory Assignment Records Page {{ page }}</title>
  <style>
    * {
      font-family: "Consolas", monospace;
      font-size: 35px;
      line-height: 53px;
      text-decoration: none;
      color: black;
    }
    a {
      color: black ! important;
    }
  </style>
  <img id="card" src="assets/s13.png" style="position: absolute; top: 0px; left: 0px;"/>
  <table
      v-repeat="territory : territories"
Пример #6
0
<?php

use Enpowi\App;
use Enpowi\Modules\Module;
use Enpowi\Modules\DataOut;
Module::is();
$data = (new DataOut())->add('territories', ETM\Territory::all())->out();
?>
<div
    class="container"
    data="<?php 
echo $data;
?>
">
  <h3><span v-t>Territories</span>
    <a v-title="New Territory" href="#/territory/edit"><span class="glyphicon glyphicon-plus-sign"></span></a></h3>
  <table class="table territory-detail wide">
    <thead>
    <tr>
      <th v-t>Number</th>
      <th v-t>Locality</th>
      <th v-t>Status</th>
      <th v-t>Latest Publisher</th>
      <th v-t>Last Worked</th>
    </tr>
    </thead>
    <tbody>
    <tr
        v-repeat="territory : territories"
        class="territory-entry">
      <td><a