editfile.tpl 4.12 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
  <tr id="{$prefix}_edit_row"{if !$fileinfo} class="hidden editrow"{/if}>
2
    <td></td>
Naomi Guyer's avatar
Naomi Guyer committed
3
    <td colspan="5" class="fileedittablewrap">
4
5
6
      <div class="fileedittable">
          <div>
            <div id="{$prefix}_edit_heading" class="edit-heading">
Naomi Guyer's avatar
Naomi Guyer committed
7
            {if $fileinfo}{if $fileinfo->artefacttype == 'folder'}{str tag=editfolder section=artefact.file}{else}{str tag=editfile section=artefact.file}{/if}{/if}
8
9
10
11
12
13
14
            </div>
          </div>
          <div class="required form-group">
              <label for="{$prefix}_edit_title">{str tag=name}<span class="requiredmarker"> *</span>
              </label> 
              <input type="text" class="text" name="{$prefix}_edit_title" id="{$prefix}_edit_title" value="{$fileinfo->title}"/>
          </div>
Naomi Guyer's avatar
Naomi Guyer committed
15
          {if $fileinfo->artefacttype != 'profileicon'}
16
17
18
19
          <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>
Naomi Guyer's avatar
Naomi Guyer committed
20
          {/if}
21
22
23
          <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}" />
Naomi Guyer's avatar
Naomi Guyer committed
24
              <span>{contextualhelp plugintype='artefact' pluginname='file' section='tags'}</span>
25
26
            <div class="description">{str tag=tagsdescprofile}</div>
          </div>
Naomi Guyer's avatar
Naomi Guyer committed
27
{if $groupinfo}
28
29
30
31
32
33
34
35
          <div>
            <div>
              <strong>{str tag=Permissions}</strong>
            </div>
            <div>
              <div class="editpermissions">
                  <div>
                    <div>{str tag=Role section=group}</div>
Naomi Guyer's avatar
Naomi Guyer committed
36
  {foreach from=$groupinfo.perm item=permname}
37
                    <div>{$permname}</div>
Naomi Guyer's avatar
Naomi Guyer committed
38
  {/foreach}
39
                  </div>
Naomi Guyer's avatar
Naomi Guyer committed
40
  {foreach from=$groupinfo.roles item=role key=r}
41
42
                  <div>
                    <div>{$role->display}</div>
Naomi Guyer's avatar
Naomi Guyer committed
43
44
    {foreach from=$groupinfo.perm item=whocares key=permid}
      {if $fileinfo}
45
46
47
48
                    <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>
Naomi Guyer's avatar
Naomi Guyer committed
49
      {else}
50
51
52
53
                    <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>
Naomi Guyer's avatar
Naomi Guyer committed
54
55
      {/if}
    {/foreach}
56
                  </div>
Naomi Guyer's avatar
Naomi Guyer committed
57
  {/foreach}
58
59
60
              </div>
            </div>
          </div>
Naomi Guyer's avatar
Naomi Guyer committed
61
62
{/if}
          {license_form_files($prefix, 'edit')}
63
64
65
66
67
68
69
          <div class="checkbox form-group">
              <label for="{$prefix}_edit_allowcomments">{str tag=allowcomments section=artefact.comment}</label>
              <input type="checkbox" class="checkbox" name="{$prefix}_edit_allowcomments" id="{$prefix}_edit_allowcomments" {if $fileinfo->allowcomments}checked {/if}/>
          </div>
          <div>
            <div>
              <input type="submit" class="submit btn btn-success" name="{$prefix}_update[{$fileinfo->id}]" id="{$prefix}_edit_artefact" value="{str tag=savechanges section=artefact.file}" />
70
              <input type="submit" class="cancel btn btn-danger" name="{$prefix}_canceledit" id="{$prefix}_edit_cancel" value="{str tag=cancel}" />
71
72
73
74
75
76
77
            </div>
          </div>
          <div>
            <div id="{$prefix}_edit_messages" class="ptm">
            </div>
          </div>
      </div>
Naomi Guyer's avatar
Naomi Guyer committed
78
79
    </td>
  </tr>