editfile.tpl 5.18 KB
Newer Older
1
<tr id="{$prefix}_edit_row"{if !$fileinfo} class="text-regular hidden editrow no-hover"{/if}>
2
    <td colspan="6" class="fileedittablewrap form-condensed">
3
4
5
6
7
8
        <div class="fileedittable">
            <h4 id="{$prefix}_edit_heading" class="edit-heading">
                {if $fileinfo}{if $fileinfo->artefacttype == 'folder'}{str tag=editfolder section=artefact.file}{else}{str tag=editfile section=artefact.file}{/if}{/if}
            </h4>
            <div class="required form-group">
                <label for="{$prefix}_edit_title">{str tag=name}<span class="requiredmarker"> *</span>
9
                </label>
10
                <input type="text" class="text" name="{$prefix}_edit_title" id="{$prefix}_edit_title" value="{$fileinfo->title}"/>
11
            </div>
12
13
14
15
16
17
18
19
20
21
22
            {if $fileinfo->artefacttype != 'profileicon'}
            <div class="form-group">
                <label for="{$prefix}_edit_description">{str tag=description}</label>
                <input type="text" class="text" name="{$prefix}_edit_description" id="{$prefix}_edit_description" value="{$fileinfo->description}" size="40" />
            </div>
            {/if}
            <div class="tags form-group">
                <label for="{$prefix}_edit_tags">{str tag=tags}</label>
                <input name="{$prefix}_edit_tags" id="{$prefix}_edit_tags" class="text" type="text" value="{foreach from=$fileinfo->tags item=tag name=tags}{if !$.foreach.tags.first}, {/if}{$tag}{/foreach}" />
                <span>{contextualhelp plugintype='artefact' pluginname='file' section='tags'}</span>
                <div class="description">{str tag=tagsdescprofile}</div>
23
            </div>
24
            {if $groupinfo}
25
            <div>
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
                <div>
                    <strong>{str tag=Permissions}</strong>
                </div>
                <div>
                    <div class="editpermissions">
                        <div>
                            <div>{str tag=Role section=group}</div>
                            {foreach from=$groupinfo.perm item=permname}
                            <div>{$permname}</div>
                            {/foreach}
                        </div>
                        {foreach from=$groupinfo.roles item=role key=r}
                        <div>
                            <div>{$role->display}</div>
                            {foreach from=$groupinfo.perm item=whocares key=permid}
                            {if $fileinfo}
                            <div class="checkbox form-group">
                                <label for="{$prefix}_permission_{$r}_{$permid}">{str tag=changerolepermissions section=group arg1=$permid arg2=$r}</label>
                                <input type="checkbox" class="permission checkbox" id="{$prefix}_permission_{$r}_{$permid}" name="{$prefix}_permission:{$r}:{$permid}"{if $fileinfo->permissions.$r.$permid} checked{/if}{if $r == 'admin'} disabled{/if} />
                            </div>
                            {else}
                            <div class="checkbox form-group">
                                <label for="{$prefix}_permission_{$r}_{$permid}">{str tag=changerolepermissions section=group arg1=$permid arg2=$r}</label>
                                <input type="checkbox" class="permission checkbox" id="{$prefix}_permission_{$r}_{$permid}" name="{$prefix}_permission:{$r}:{$permid}" {if $r == 'admin'} checked disabled{/if}/>
                            </div>
                            {/if}
                            {/foreach}
                        </div>
                        {/foreach}
55
                    </div>
56
                </div>
57
58
            </div>
          </div>
Naomi Guyer's avatar
Naomi Guyer committed
59
{/if}
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
        {license_form_files($prefix, 'edit')}
        <div class="form-group">
            <label for="{$prefix}_edit_allowcomments">
                {str tag=Comments section=artefact.comment}
            </label>
            <div class="form-switch">
                <div class="switch onoff" style="width: {$switchwidth}">
                    <input class="switchbox" type="checkbox" name="{$prefix}_edit_allowcomments" id="{$prefix}_edit_allowcomments" {if $fileinfo->allowcomments}checked {/if} aria-describedby />
                    <label class="switch-label" tabindex="1" for="{$prefix}_edit_allowcomments">
                        <span class="switch-inner" role="presentation"></span>
                        <span class="switch-indicator" role="presentation"></span>
                        <span class="state-label on" role="presentation" tabindex="-1">On</span>
                        <span class="state-label off" role="presentation" tabindex="-1">Off<span>
                    </label>
                    </div>
                </div>
76
            </div>
77
78
79
80
81
82
        <div>
        <div class="submitcancel form-group">
            <input type="submit" class="submit btn btn-success" name="{$prefix}_update[{$fileinfo->id}]" id="{$prefix}_edit_artefact" value="{str tag=savechanges section=artefact.file}" />
            <input type="submit" class="cancel" name="{$prefix}_canceledit" id="{$prefix}_edit_cancel" value="{str tag=cancel}" />
        </div>
        <div>
83
84
            <div id="{$prefix}_edit_messages" class="ptm">
            </div>
85
86
        </div>
        </div>
Naomi Guyer's avatar
Naomi Guyer committed
87
    </td>
88
</tr>