editfile.tpl 2.8 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
  <tr id="{$prefix}_edit_row"{if !$fileinfo} class="hidden"{/if}>
    <td colspan=6>
      <table>
        <tbody>
          <tr>
            <th colspan=2 id="{$prefix}_edit_heading">
            {if $fileinfo}{if $fileinfo->artefacttype == 'folder'}{str tag=editfolder section=artefact.file}{else}{str tag=editfile section=artefact.file}{/if}{/if}
            </th>
          </tr>
          <tr>
            <th><label>{str tag=name}</label></th>
12
            <td><input type="text" class="text" name="{$prefix}_edit_title" id="{$prefix}_edit_title" value="{$fileinfo->title}" size="40" /></td>
13
14
15
          </tr>
          <tr>
            <th><label>{str tag=description}</label></th>
16
            <td><input type="text" class="text" name="{$prefix}_edit_description" id="{$prefix}_edit_description" value="{$fileinfo->description}" size="40" /></td>
17
18
19
20
          </tr>
          <tr>
            <th><label>{str tag=tags}</label></th>
            <td>
21
              <input name="{$prefix}_edit_tags" size="40"  id="{$prefix}_edit_tags" value="{foreach from=$fileinfo->tags item=tag name=tags}{if !$.foreach.tags.first}, {/if}{$tag}{/foreach}" />
22
              <span>{contextualhelp plugintype='artefact' pluginname='file' section='tags'}</span>
23
24
            </td>
          </tr>
25
{if $groupinfo}
26
27
28
29
30
31
32
33
34
35
36
37
38
39
          <tr>
            <th><label>{str tag=Permissions}</label></th>
            <td>
              <table class="editpermissions">
                <tbody>
                  <tr>
                    <th>{str tag=Role section=group}</th>
  {foreach from=$groupinfo.perm item=permname}
                    <th>{$permname}</th>
  {/foreach}
                  </tr>
  {foreach from=$groupinfo.roles item=role key=r}
                  <tr>
                    <td>{$role->display}</td>
40
41
42
43
44
45
46
    {foreach from=$groupinfo.perm item=whocares key=permid}
      {if $fileinfo}
                    <td><input type="checkbox" class="permission" name="{$prefix}_permission:{$r}:{$permid}"{if $fileinfo->permissions.$r.$permid} checked{/if}{if $r == 'admin'} disabled{/if} /></td>
      {else}
                    <td><input type="checkbox" class="permission" name="{$prefix}_permission:{$r}:{$permid}" {if $r == 'admin'} checked disabled{/if}/></td>
      {/if}
    {/foreach}
47
48
49
50
51
52
53
54
55
                  </tr>
  {/foreach}
                </tbody>
              </table>
            </td>
          </tr>
{/if}
          <tr>
            <td colspan=2>
56
              <input type="submit" name="{$prefix}_update[{$fileinfo->id}]" id="{$prefix}_edit_artefact" value="{str tag=savechanges section=artefact.file}" />
57
              <input type="submit" class="button" name="{$prefix}_canceledit" id="{$prefix}_edit_cancel" value="{str tag=cancel}" />
58
59
60
61
62
63
64
            </td>
          </tr>
          <tr><td colspan=2 id="{$prefix}_edit_messages"></td></tr>
        </tbody>
      </table>
    </td>
  </tr>