-
Notifications
You must be signed in to change notification settings - Fork 0
/
coaViewWidget.html
44 lines (44 loc) · 2.44 KB
/
coaViewWidget.html
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
<div class="coa">
<form>
<div class="chartFields">
{{if messages && messages.length > 0}}
<ul class="messages">
{{each messages}}
<li>${$value}</li>
{{/each}}
</ul>
{{/if}}
{{if errors && errors.length > 0}}
<ul class="errors">
{{each errors}}
<li>${$value}</li>
{{/each}}
</ul>
{{/if}}
<label for="speedtype" class="sameLine">SpeedType</label><span id="speedtype">${coa.speedtype}</span><br/>
<label for="fund" class="sameLine">Fund</label><span id="fund">${coa.fund}</span><br/>
<label for="program" class="sameLine">Program</label><span id="program">${coa.program}</span><br/>
<label for="speedtypeDescr" class="sameLine">Speedtype descr</label><span id="speedtypeDescr">${coa.speedtypeDescr}</span><br/>
<label for="account" class="sameLine">Account</label><span id="account">${coa.account}</span><br/>
<label for="classField" class="sameLine">Class</label><span id="classField">${coa.classField}</span><br/>
<label for="userField" class="sameLine">UserField</label><span id="userField">${coa.userField}</span><br/>
<label for="projectId" class="sameLine">Project Id/grant</label><span id="projectId">${coa.projectId}</span><br/>
<label for="source" class="sameLine">Source</label><span id="source">${coa.source}</span><br/>
<label for="resourceType" class="sameLine">Resource type</label><span id="resourceType">${coa.resourceType}</span><br/>
<label for="resourceCat" class="sameLine">Resource category</label><span id="resourceCat">${coa.resourceCat}</span><br/>
<label for="resourceSubcat" class="sameLine">Resource subcategory</label><span id="resourceSubcat">${coa.resourceSubcat}</span><br/>
<label for="budgetRef" class="sameLine">Work order #/Budget ref</label><span id="budgetRef">${coa.budgetRef}</span><br/>
<label for="adminOverridden" class="sameLine">Admin overridden</label><span id="adminOverridden">${coa.adminOverridden}</span><br/>
<label for="facilitiesApproved" class="sameLine">Facilities approved</label><span id="facilitiesApproved">${coa.facilitiesApproved}</span><br/>
<label for="comments" class="diffLines">Comments</label><p id="comments">${coa.comments}</p>
</div>
<div class="coaHeader">
<h3>Chart of Accounts ${coa.id}</h3>
</div>
{{if !coa.finalized && allowEdit}}
<div class="coaFooter">
<button class="coaButton" onClick='$(this).parents(".coa").parent().coa("doAction","edit");return false;'>Edit</button>
</div>
{{/if}}
</form>
</div>