-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFinished Items.tid
296 lines (277 loc) · 13.7 KB
/
Finished Items.tid
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
caption: Finished Items
tags:
title: $:/plugins/inmysocks/CategoryLists/Finished Items
\define thisListTemplate()
<$reveal type='match' state='$:/plugins/inmysocks/CategoryLists/CategoryLists!!task' text=$(ListType)$ tag=tr>
<td style="""position:relative;width:5%;""">
<$button class="""tc-btn-invisible""" popup="""$:/state/popup/$(ListType)$list/$(CurrentEntry)$""" tooltip='$(ListType)$ Info'>{{$:/core/images/info-button}}
</$button>
<<thisEntryPopup>>
</td>
<td style='width:5%;'>
<$checkbox tiddler=<<CurrentEntry>> tag="""$(FinishedTag)$"""/>
</td>
<td style="""width:45%""">
<$link to=<<CurrentEntry>>>
<$view tiddler=<<CurrentEntry>> field="""title"""/>
</$link>
</td>
<td style="""width:35%""">
<$view tiddler=<<CurrentEntry>> field="""description"""/>
</td>
<td style='position:relative;width:5%;'>
<$button class='tc-btn-invisible' tooltip='Edit $(ListType)$' popup="""$:/state/Edit$(ListType)$/popup/$(CurrentEntry)$""">
{{$:/core/images/edit-button}}
</$button>
</td>
<td style="""text-align:right;width:5%""">
<$fieldmangler tiddler=<<CurrentEntry>>>
<$button class='tc-btn-invisible' tooltip='Remove $(ListType)$'>{{$:/core/images/cancel-button}}
<$action-sendmessage $message="""tm-remove-tag""" $param="""$(Tag)$"""/>
<$action-sendmessage $message="""tm-remove-tag""" $param="""$(FinishedTag)$"""/>
</$button>
</$fieldmangler>
</td>
</$reveal>
<$reveal type='match' state='$:/plugins/inmysocks/CategoryLists/CategoryLists!!event' text=$(ListType)$ tag=tr>
<td style="""position:relative;width:5%;""">
<$button class="""tc-btn-invisible""" popup="""$:/state/popup/$(ListType)$list/$(CurrentEntry)$""" tooltip='$(ListType)$ Info'>{{$:/core/images/info-button}}
</$button>
<<thisEntryPopup>>
</td>
<td style='position:relative;width:5%;'>
<$button class='tc-btn-invisible' tooltip='Edit $(ListType)$' popup="""$:/state/Edit$(ListType)$/popup/$(CurrentEntry)$""">
{{$:/core/images/edit-button}}
</$button>
</td>
<td style="""width:40%""">
<$link to=<<CurrentEntry>>>
<$view tiddler=<<CurrentEntry>> field="""title"""/>
</$link>
</td>
<td style="""width:30%""">
<$view tiddler=<<CurrentEntry>> field="""description"""/>
</td>
<td style="""text-align:right;width:20%""">
<$view tiddler=<<CurrentEntry>> field='start_day'/>/<$view tiddler=<<CurrentEntry>> field='start_month'/>/<$view tiddler=<<CurrentEntry>> field='start_year'/>
</td>
</$reveal>
<tr>
<td colspan=6 style='position:relative;top:100%'>
<$reveal type='popup' state="""$:/state/Edit$(ListType)$/popup/$(CurrentEntry)$""">
<div class='tc-popup-keep' style='border:solid;border-color:grey;border-width:1px;background-color:white;max-width:800px;padding:1em;width:95vw;top:1em;position:absolute;max-width:700px;top:-1em'>
<$tiddler tiddler=<<CurrentEntry>>>
<$transclude tiddler='$:/plugins/inmysocks/CategoryLists/EditEntryTemplate' mode=block/>
</$tiddler>
</div>
</$reveal>
</td>
</tr>
\end
\define thisEntryPopup()
<$reveal type="""popup""" state="""$:/state/popup/$(ListType)$list/$(CurrentEntry)$""">
<div class="""tc-popup-keep tc-drop-down""">
<$transclude tiddler=<<CurrentEntry>> mode=block/>
</div>
</$reveal>
\end
\define thisMakeShowCategoryButton()
<$list filter='[[$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$]!text[show]]'>
<$button class='tc-btn-invisible' style='width:100%;height:100%;' set="""$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$""" setTo=show>
<div style='width:100%;text-align:left;position:absolute;'>
{{$:/core/images/right-arrow}}
</div>
<div style='width:100%;position:absolute;text-align:center;'>
<$view tiddler=<<CurrentCategory>> field="""title"""/>
</div>
<div style='width:100%;text-align:right;'>
{{$:/core/images/left-arrow}}
</div>
</$button>
</$list>
<$list filter='[[$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$]text[show]]'>
<$button class='tc-btn-invisible' style='width:100%;height:100%;' set="""$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$""" setTo=hide>
<div style='width:100%;text-align:left;position:absolute;'>
{{$:/core/images/down-arrow}}
</div>
<div style='width:100%;position:absolute;text-align:center;'>
<$view tiddler=<<CurrentCategory>> field="""title"""/>
</div>
<div style='width:100%;text-align:right;'>
{{$:/core/images/down-arrow}}
</div>
</$button>
</$list>
\end
\define thisMakeCurrentCategoryDisplayState()
$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$
\end
\define thisMakeShowSubCategoryButton()
<$list filter='[[$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$]!text[show]]'>
<$button class='tc-btn-invisible' style='width:100%;height:100%;position:relative;' set="""$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$""" setTo=show>
<div style='width:100%;text-align:left;position:absolute'>
{{$:/core/images/right-arrow}}
</div>
<div style='width:100%;text-align:center;position:absolute'>
<$view tiddler="""$(CurrentCategory)$""" field="""title"""/> : <$view tiddler="""$(CurrentSubCategory)$""" field="""title"""/>
</div>
<div style='width:100%;text-align:right;position:relative;'>
{{$:/core/images/left-arrow}}
</div>
</$button>
</$list>
<$list filter='[[$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$]text[show]]'>
<$button class='tc-btn-invisible' style='width:100%;height:100%;position:relative;' set="""$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$""" setTo=hide>
<div style='width:100%;text-align:left;position:absolute;'>
{{$:/core/images/down-arrow}}
</div>
<div style='width:100%;text-align:center;position:absolute;'>
<$view tiddler="""$(CurrentCategory)$""" field="""title"""/> : <$view tiddler="""$(CurrentSubCategory)$""" field="""title"""/>
</div>
<div style='width:100%;text-align:right;position:relative;'>
{{$:/core/images/down-arrow}}
</div>
</$button>
</$list>
\end
\define thisMakeCurrentSubCategoryDisplayState()
$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$
\end
\define thisMakeShowSubSubCategoryButton()
<$list filter='[[$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$/$(CurrentSubSubCategory)$]!text[show]]'>
<$button class='tc-btn-invisible' style='width:100%;height:100%;position:relative;background-color:beige;' set="""$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$/$(CurrentSubSubCategory)$""" setTo=show>
<div style='width:100%;text-align:center;'>
{{$:/core/images/right-arrow}} <$view tiddler="""$(CurrentCategory)$""" field="""title"""/> : <$view tiddler="""$(CurrentSubCategory)$""" field="""title"""/> :<$view tiddler="""$(CurrentSubSubCategory)$""" field="""title"""/> {{$:/core/images/left-arrow}}
</div>
</$button>
</$list>
<$list filter='[[$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$/$(CurrentSubSubCategory)$]text[show]]'>
<$button class='tc-btn-invisible' style='width:100%;height:100%;position:relative;background-color:beige;' set="""$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$/$(CurrentSubSubCategory)$""" setTo=hide>
<div style='width:100%;text-align:center;'>
{{$:/core/images/down-arrow}} <$view tiddler="""$(CurrentCategory)$""" field="""title"""/> : <$view tiddler="""$(CurrentSubCategory)$""" field="""title"""/> : <$view tiddler="""$(CurrentSubSubCategory)$""" field="""title"""/> {{$:/core/images/down-arrow}}
</div>
</$button>
</$list>
\end
\define thisMakeCurrentSubSubCategoryDisplayState()
$:/state/$(ListType)$List/ShowCategory/$(CurrentCategory)$/$(CurrentSubCategory)$/$(CurrentSubSubCategory)$
\end
\define thisMakeTable()
<table style="""position:relative;width:100%""">
<$set name=CurrentCategory value='No Category'>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]!has[category]!has[draft.of]limit[1]]""">
<tr>
<th colspan=6 style="""background-color:grey""">
<<thisMakeShowCategoryButton>>
</th>
</tr>
</$list>
<$list filter='[<thisMakeCurrentCategoryDisplayState>text[show]]'>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]!has[category]!has[draft.of]sort[title]]""" variable=CurrentEntry>
<<thisListTemplate>>
</$list>
</$list>
</$set>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]has[category]each[category]get[category]!has[draft.of]sort[title]]""" variable="""CurrentCategory""">
<tr style='width:100%;'>
<th colspan=6 style="""background-color:grey""">
<<thisMakeShowCategoryButton>>
</th>
</tr>
<$list filter='[<thisMakeCurrentCategoryDisplayState>text[show]]'>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]category<CurrentCategory>!has[subcategory]!has[draft.of]sort[title]]""" variable=CurrentEntry>
<<thisListTemplate>>
</$list>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]category<CurrentCategory>has[subcategory]each[subcategory]get[subcategory]!has[draft.of]sort[title]]""" variable="""CurrentSubCategory""">
<tr style='width:100%;position:relative;background-color:lightgrey'>
<td colspan=2 style='width:10%'>
</td>
<th colspan=2 style="""position:relative;width:80%;background-color:lightgrey""">
<<thisMakeShowSubCategoryButton>>
</th>
<td colspan=2 style='width:10%'>
</td>
</tr>
<$list filter='[<thisMakeCurrentSubCategoryDisplayState>text[show]]'>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]!has[subsubcategory]category<CurrentCategory>subcategory<CurrentSubCategory>!has[draft.of]sort[title]]""" variable=CurrentEntry>
<<thisListTemplate>>
</$list>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]category<CurrentCategory>subcategory<CurrentSubCategory>has[subsubcategory]each[subsubcategory]get[subsubcategory]!has[draft.of]sort[title]]""" variable="""CurrentSubSubCategory""">
<tr style='width:100%;background-color:beige'>
<td colspan=2 style='width:10%;'>
</td>
<th colspan=2 style="""position:relative;width:80%;background-color:beige;""">
<<thisMakeShowSubSubCategoryButton>>
</th>
<td colspan=2 style='width:10%;'>
</td>
</tr>
<$list filter='[<thisMakeCurrentSubSubCategoryDisplayState>text[show]]'>
<$list filter="""[tag[$(Tag)$]tag[$(FinishedTag)$]$(SearchTag)$$(SelectedCategory)$$(SelectedSubCategory)$$(SelectedSubSubCategory)$regexp[(?i)$(RegExpSearch)$]category<CurrentCategory>subcategory<CurrentSubCategory>subsubcategory<CurrentSubSubCategory>!has[draft.of]sort[title]]""" variable=CurrentEntry>
<<thisListTemplate>>
</$list>
</$list>
</$list>
</$list>
</$list>
</$list>
</$list>
</table>
\end
\define thisMakeSelectedCategory()
category[$(CurrentCategory)$]
\end
\define thisMakeSelectedSubCategory()
subcategory[$(CurrentSubCategory)$]
\end
\define thisMakeSelectedSubSubCategory()
subsubcategory[$(CurrentSubSubCategory)$]
\end
<$set name=RegExpSearch value={{$:/temp/$(ListType)$List/Search!!search_text}}>
<!-- Category Selected -->
<$reveal type='nomatch' state='$:/state/$(ListType)$List/SelectedCategory' text=''>
<!-- Subcategory Selected -->
<$reveal type='nomatch' state='$:/state/$(ListType)$List/SelectedSubCategory' text=''>
<!-- Subsubcategory Selected -->
<$reveal type='nomatch' state='$:/state/$(ListType)$List/SelectedSubSubCategory' text=''>
<$set name=CurrentCategory value={{$:/state/$(ListType)$List/SelectedCategory}}>
<$set name=SelectedCategory value=<<thisMakeSelectedCategory>>>
<$set name=CurrentSubCategory value={{$:/state/$(ListType)$List/SelectedSubCategory}}>
<$set name=SelectedSubCategory value=<<thisMakeSelectedSubCategory>>>
<$set name=CurrentSubSubCategory value={{$:/state/$(ListType)$List/SelectedSubSubCategory}}>
<$set name=SelectedSubSubCategory value=<<thisMakeSelectedSubSubCategory>>>
<<thisMakeTable>>
</$set>
</$set>
</$set>
</$set>
</$set>
</$set>
</$reveal>
<!-- No Subsubcategory Selected -->
<$reveal type='match' state='$:/state/$(ListType)$List/SelectedSubSubCategory' text=''>
<$set name=CurrentCategory value={{$:/state/$(ListType)$List/SelectedCategory}}>
<$set name=SelectedCategory value=<<thisMakeSelectedCategory>>>
<$set name=CurrentSubCategory value={{$:/state/$(ListType)$List/SelectedSubCategory}}>
<$set name=SelectedSubCategory value=<<thisMakeSelectedSubCategory>>>
<<thisMakeTable>>
</$set>
</$set>
</$set>
</$set>
</$reveal>
</$reveal>
<!-- No Subcategory Selected -->
<$reveal type='match' state='$:/state/$(ListType)$List/SelectedSubCategory' text=''>
<$set name=CurrentCategory value={{$:/state/$(ListType)$List/SelectedCategory}}>
<$set name=SelectedCategory value=<<thisMakeSelectedCategory>>>
<<thisMakeTable>>
</$set>
</$set>
</$reveal>
</$reveal>
<!-- No Selected Category -->
<$reveal type='match' state='$:/state/$(ListType)$List/SelectedCategory' text=''>
<<thisMakeTable>>
</$reveal>
</$set>