-
Notifications
You must be signed in to change notification settings - Fork 19
/
tools.php
83 lines (65 loc) · 2.91 KB
/
tools.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
use \OCP\Util;
Util::addScript('timemanager', 'timemanager');
style('timemanager', 'timemanager');
$l = Util::getL10N('timemanager');
?>
<?php print_unescaped($this->inc("partials/navigation")); ?>
<div id="app-content">
<div class="container">
<main class="tools">
<section class="section">
<h2><?php p($l->t("Tools")); ?></h2>
<h3><?php p($l->t("Import (feature preview)")); ?></h3>
<div class="tm_object-details-item">
<p><?php p($l->t("Select a file to see a preview of your import.")); ?></p>
</div>
<div class="tm_object-details-item">
<p><strong><?php p($l->t("Current limitations:")); ?></strong></p>
<ul style="list-style: initial; padding-left: 18px;">
<li><?php p($l->t("Imports need to be self-contained, there's no lookup for existing parent clients, projects or tasks")); ?></li>
<li><?php echo $l->t("Within the CSV file, relationships are determined by %sName%s, so make sure there are no duplicate names within each type of object", ['<code>', '</code>']); ?></li>
<li><?php p($l->t("UTF-8 is the only supported file encoding")); ?></li>
<li><?php echo $l->t("%s;%s and %s,%s are the only supported delimiters", ['<code>', '</code>', '<code>', '</code>']); ?></li>
<li><?php p($l->t("Time entries cannot be imported")); ?></li>
</ul>
</div>
<div class="tm_object-details-item">
<details>
<summary><?php p($l->t("Show overview of expected CSV columns")); ?></summary>
<dl class="csv_list">
<dt><strong><?php p($l->t("Column name")); ?></strong></dt>
<dd><strong><?php p($l->t("Description")); ?></strong></dd>
<dt><code>Type</code></dt>
<dd>
<?php echo $l->t("The type of object %sClient%s, %sProject%s, %sTask%s", ['<code>', '</code>', '<code>', '</code>', '<code>', '</code>']); ?>
<!-- , -->
<!-- <code>Time</code> -->
</dd>
<dt><code>Name</code></dt>
<dd><?php p($l->t("The name of the object")); ?></dd>
<dt><code>Client</code></dt>
<dd><?php p($l->t("The parent client name (if type is project)")); ?></dd>
<dt><code>Project</code></dt>
<dd><?php p($l->t("The parent project name (if type is task)")); ?></dd>
<!-- <dt><code>Task</code></dt> -->
<!-- <dd>The parent task name (if time entry)</dd> -->
<dt><code>Note</code></dt>
<dd><?php p($l->t("An optional note")); ?></dd>
<!-- <dt><code>Done</code></dt>
<dd>
<code>Yes</code> or <code>No</code>, for time entries
</dd>
<dt><code>Start</code></dt>
<dd>The start date of the time entry</dd>
<dt><code>Duration</code></dt>
<dd>The duration of the time entry in minutes</dd> -->
</dl>
</details>
</div>
<span data-svelte="Import.svelte"></span>
<span data-store="<?php p($_["store"]); ?>"></span>
</section>
</main>
</div>
</div>