aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/new_channel.tpl
blob: a892082284a7667f8e603ce423e594a7def07d53 (plain) (blame)
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
<div class="generic-content-wrapper">
	<div class="section-title-wrapper">
		<h2>{{$title}}</h2>
	</div>
	<div class="section-content-wrapper">
		{{if ! $default_role}}
		<div class="section-content-info-wrapper">
			{{$desc}}
		</div>
		{{if $channel_usage_message}}
		<div class="section-content-warning-wrapper">
			{{$channel_usage_message}}
		</div>
		{{/if}}
		{{/if}}
		<form action="new_channel" method="post" id="newchannel-form">
			{{if $default_role}}
				<input type="hidden" name="permissions_role" value="{{$default_role}}" />
			{{else}}
				{{include file="field_select_grouped.tpl" field=$role}}
			{{/if}}

			{{include file="field_input.tpl" field=$name}}
			<div id="name-spinner" class="spinner-wrapper"><div class="spinner m"></div></div>

			{{include file="field_input.tpl" field=$nickname}}
			<div id="nick-spinner" class="spinner-wrapper"><div class="spinner m"></div></div>

			<button class="btn btn-secondary" name="validate" id="newchannel-validate-button" value="{{$validate}}" onclick="validate_channel(); return false;">{{$validate}}</button>

			<button class="btn btn-primary" type="submit" name="submit" id="newchannel-submit-button" value="{{$submit}}" >{{$submit}}</button>
			<div id="newchannel-submit-end" class="clear"></div>

			<div id="newchannel-import-link" class="descriptive-paragraph" >{{$label_import}}</div>
			<div id="newchannel-import-end" class="clear"></div>
		</form>
	</div>
</div>