-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcgroupadd.tpl
82 lines (82 loc) · 2.75 KB
/
cgroupadd.tpl
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
{if isset($permoverview['b_virtualserver_channelgroup_create']) AND empty($permoverview['b_virtualserver_channelgroup_create'])}
<section class="content container-fluid">
<div class="row">
<div class="col-xs-12 col-xs-offset-0 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
<div class="box box-danger">
<div class="box-header"><h3 class="box-title">{$lang['error']}</h3></div>
<div class="box-body">
<p class="lead">{$lang['nopermissions']}</p>
</div>
</div>
</div>
</div>
</section>
{else}
<section class="content container-fluid">
<div class="col-xs-12 col-xs-offset-0 col-sm-10 col-sm-offset-1 col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1 no-padding">
{if !empty($error)}
<div class="alert alert-danger">{$error}</div>
{/if}
{if !empty($noerror)}
<div class="alert alert-info">{$noerror}</div>
{/if}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{$lang['addchannelgroup']}</h3>
</div>
<div class="box-body">
<form method="post" action="index.php?site=cgroupadd&sid={$sid}">
<table class="table table-striped no-margin">
<tr>
<th width="35%"><label>{$lang['type']}:</label></th>
<td>
<div class="radio">
<label>
<input type="radio" name="type" value="0" />
{$lang['template']}
</label>
</div>
<div class="radio">
<label>
<input checked type="radio" name="type" value="1" />
{$lang['normal']}
</label>
</div>
</td>
</tr>
<tr>
<th><label for="new_name">{$lang['name']}</label></th>
<td class="no-padding">
<input type="text" class="form-control" id="new_name" name="name" />
</td>
</tr>
<tr>
<th><label for="new_copyfrom">{$lang['copypermsfrom']}:</label></th>
<td class="no-padding">
<select id="new_copyfrom" name="copyfrom" class="form-control">
<option value="0">-</option>
{foreach key=key item=value from=$channelgroups}
<option value="{$value['cgid']}">{$value['name']}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<th><label for="new_overwrite">{$lang['overwritegroup']}:</label></th>
<td class="no-padding">
<select id="new_overwrite" name="overwrite" class="form-control">
<option value="0">-</option>
{foreach key=key item=value from=$channelgroups}
<option value="{$value['cgid']}">{$value['name']}</option>
{/foreach}
</select>
</td>
</tr>
</table>
<input class="btn btn-flat btn-primary btn-block" type="submit" name="addgroup" value="{$lang['add']}" />
</form>
</div>
</div>
</div>
</section>
{/if}