File: generic.tpl

package info (click to toggle)
gosa-plugins-sudo 2.8~git20211022.7ff3ed2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 360 kB
  • sloc: php: 896; xml: 257; makefile: 5
file content (120 lines) | stat: -rw-r--r-- 3,404 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120


<div class="sudo-wrapper">
  {if $is_default}
    <div class="row">
      <div class="col s12 xl6">
        <h3>{t}Generic{/t} - {t}global defaults{/t}</h3>

        <div class="input-field">
          <input type="text" name="dummy" id="dummy" value="{$cn}" disabled>
          <label for="dummy">{t}Name{/t}{$must}</label>
        </div>

        {render acl=$descriptionACL}
        <div class="input-field">
          <input type="text" name="description" id="description" value="{$description}">
          <label for="description">{t}Description{/t}</label>
        </div>
        {/render}
      </div>
    </div>
  {else}
    <div class="row">
      <div class="col s12 xl6">
        <h3>{t}Generic{/t}</h3>

        {render acl=$cnACL}
        <div class="input-field">
          <input type="text" name="cn" id="cn" value="{$cn}">
          <label for="cn">{t}Name{/t}{$must}</label>
        </div>
        {/render}

        {render acl=$descriptionACL}
        <div class="input-field">
          <input type="text" name="description" id="description" value="{$description}">
          <label for="description">{t}Description{/t}</label>
        </div>
        {/render}
      </div>

      <div class="col s12 xl6">
        {$trustModeDialog}
      </div>
    </div>

    <hr class="divider">

    <div class="row">
      <div class="col s12 xl6">
        <h3>{t}Users and groups{/t}</h3>

        {render acl=$sudoUserACL}
        {$listing_sudoUser}
        {/render}

        {render acl=$sudoUserACL}
        <div class="input-field add">
          <input type='text' value='' name='new_sudoUser'>
          <button class="btn-small" type='submit' name='add_sudoUser'>{msgPool type=addButton}</button>
          <button class="btn-small" type='submit' name='list_sudoUser'>{t}Add from list{/t}</button>
        </div>
        {/render}

      </div>

      <div class="col s12 xl6">
        <h3>{t}Systems{/t}</h3>

        {render acl=$sudoHostACL}
        {$listing_sudoHost}
        {/render}

        {render acl=$sudoHostACL}
        <div class="input-field add">
          <input type='text' value='' name='new_sudoHost'>
          <button class="btn-small" type='submit' name='add_sudoHost'>{msgPool type=addButton}</button>
          {if $systemEnabled}
          <button class="btn-small" type='submit' name='list_sudoHost'>{t}Add from list{/t}</button>
          {/if}
        </div>
        {/render}
      </div>
    </div>

    <hr class="divider">

    <div class="row">
      <div class="col s12 xl6">
        <h3>{t}Commands{/t}</h3>

        {render acl=$sudoCommandACL}
        {$listing_sudoCommand}
        {/render}

        {render acl=$sudoCommandACL}
        <div class="input-field add">
          <input type='text' value='' name='new_sudoCommand'>
          <button class="btn-small" type='submit' name='add_sudoCommand'>{msgPool type=addButton}</button>
        </div>
        {/render}
      </div>

      <div class="col s12 xl6">
        <h3>{t}Run as{/t}</h3>

        {render acl=$sudoRunAsACL}
        {$listing_sudoRunAs}
        {/render}

        {render acl=$sudoRunAsACL}
        <div class="input-field add">
          <input type='text' value='' name='new_sudoRunAs'>
          <button class="btn-small" type='submit' name='add_sudoRunAs'>{msgPool type=addButton}</button>
        </div>
        {/render}
      </div>
    </div>
  {/if}
</div>