goals.tpl 3.6 KB
Newer Older
Pat Kira's avatar
Pat Kira committed
1
2
3
4
5
6
<div class="goals-wrapper">
    {if !$hidetitle}
    <h3 class="resumeh3">
        {str tag='mygoals' section='artefact.resume'}
        {if $controls}
        {contextualhelp plugintype='artefact' pluginname='resume' section='mygoals'}
Naomi Guyer's avatar
Naomi Guyer committed
7
        {/if}
Pat Kira's avatar
Pat Kira committed
8
9
    </h3>{/if}
    <div id="goalslist{$suffix}" class="panel-items js-masonry" data-masonry-options='{ "itemSelector": ".panel" }'>
10
        {foreach from=$goals item=n, name='default'}
Pat Kira's avatar
Pat Kira committed
11
        <div class="panel panel-default">
Naomi Guyer's avatar
Naomi Guyer committed
12
13
14
15
16
17
            <h4 class="panel-heading has-link">
                {if $n->exists}
                    <a id="goals_edit_{$n->artefacttype}" href="{$WWWROOT}artefact/resume/editgoalsandskills.php?id={$n->id}" title="{str tag=edit$n->artefacttype section=artefact.resume}">
                    {str tag=$n->artefacttype section='artefact.resume'}
                    <span class="fa fa-pencil pull-right pls"></span>
                    <span class="sr-only">{str tag=edit}</span>
Pat Kira's avatar
Pat Kira committed
18
                    </a>
Naomi Guyer's avatar
Naomi Guyer committed
19
20
21
22
23
                {else}
                    <a id="goals_edit_{$n->artefacttype}" href="{$WWWROOT}artefact/resume/editgoalsandskills.php?type={$n->artefacttype}" title="{str tag=edit$n->artefacttype section=artefact.resume}">
                          {str tag=$n->artefacttype section='artefact.resume'}
                    <span class="fa fa-pencil pull-right pls"></span>
                    <span class="sr-only">{str tag=edit}</span>
Pat Kira's avatar
Pat Kira committed
24
                    </a>
Naomi Guyer's avatar
Naomi Guyer committed
25
26
                {/if}
            </h4>
27
            <div class="panel-body">
Pat Kira's avatar
Pat Kira committed
28
29
30
31
32
33
34
                {if $n->description != ''}
                {$n->description|clean_html|safe}
                {else}
                {str tag=nodescription section=artefact.resume}
                {/if}
            </div>
            {if $n->files}
35
            <div id="resume_{$n->id}" class="has-attachment">
Pat Kira's avatar
Pat Kira committed
36
                <a class="collapsible collapsed panel-footer" aria-expanded="false" href="#attach_goal_{$.foreach.default.index}" data-toggle="collapse">
37
38
39
40
41
42
43
44
45
46
47
48
                    <p class="text-left mbs">
                        <span class="fa fa-lg prm fa-paperclip"></span>

                        <span class="text-small">{str tag=attachedfiles section=artefact.blog}</span>
                         <span class="metadata">({$n->count})</span>
                        <span class="fa fa-chevron-down pull-right collapse-indicator"></span>
                    </p>
                </a>


                <div id="attach_goal_{$.foreach.default.index}" class="collapse">
                    <ul class="list-unstyled list-group mbs">
Pat Kira's avatar
Pat Kira committed
49
                    {foreach from=$n->files item=file}
50
51
                        <li class="list-group-item-text list-group-item-link">
                            <a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}" '{if $file->description}' title="{$file->description}" data-toggle="tooltip" '{/if}' >
Pat Kira's avatar
Pat Kira committed
52
                                <div class="file-icon mrs">
53
                                    {if $file->icon}
Pat Kira's avatar
Pat Kira committed
54
                                    <img src="{$file->icon}" alt="">
55
56
57
                                    {else}
                                    <span class="fa fa-{$file->artefacttype} fa-lg text-default"></span>
                                    {/if}
Pat Kira's avatar
Pat Kira committed
58
59
60
61
62
63
64
65
66
67
68
69
                                </div>
                                {$file->title|truncate:40}
                            </a>
                        </li>
                    {/foreach}
                    </ul>
                </div>
            </div>
            {/if}
            </div>
        {/foreach}
    </div>
70
71
72
73
74
    {if $license}
    <div class="resumelicense">
        {$license|safe}
    </div>
    {/if}
Pat Kira's avatar
Pat Kira committed
75
</div>