aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/event_form.tpl
blob: 31e18caebffd7c6c7ede87c37f6bfad9847666c2 (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
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
121
122
123
<form id="event-edit-form" action="{{$post}}" method="post" >

	<input type="hidden" name="event_id" value="{{$eid}}" />
	<input type="hidden" name="event_hash" value="{{$event_hash}}" />
	<input type="hidden" name="xchan" value="{{$xchan}}" />
	<input type="hidden" name="mid" value="{{$mid}}" />
	<input type="hidden" name="type" value="{{$type}}" />
	<input type="hidden" name="preview" id="event-edit-preview" value="0" />


	{{include file="field_input.tpl" field=$summary}}

	{{$s_dsel}}

	{{$f_dsel}}

	{{include file="field_checkbox.tpl" field=$nofinish}}

	<div id="advanced" style="display:none">

		{{include file="field_checkbox.tpl" field=$adjust}}

		{{if $catsenabled}}
		<div id="event-category-text"><b>{{$c_text}}</b></div>
		<div id="events-category-wrap">
			<input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" data-role="cat-tagsinput" />
		</div>
		{{/if}}

		<div class="form-group">
			<div id="event-desc-text"><b>{{$d_text}}</b></div>
			<textarea id="comment-edit-text-desc" class="form-control" name="desc" >{{$d_orig}}</textarea>
			<div id="comment-tools-desc" class="comment-tools" style="display: block;" >
				<div id="comment-edit-bb-desc" class="btn-toolbar">
					<div class='btn-group'>
						<button type="button" class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'desc');">
							<i class="icon-bold comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'desc');">
							<i class="icon-italic comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'desc');">
							<i class="icon-underline comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('none','quote','desc');">
							<i class="icon-quote-left comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'desc');">
							<i class="icon-terminal comment-icon"></i>
						</button>
					</div>
					<div class='btn-group'>
						<button type="button" class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'desc');">
							<i class="icon-camera comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'desc');">
							<i class="icon-link comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'desc');">
							<i class="icon-facetime-video comment-icon"></i>
						</button>
					</div>
				</div>
			</div>
		</div>
		<div class="form-group">
			<div id="event-location-text"><b>{{$l_text}}</b></div>
			<textarea id="comment-edit-text-loc" class="form-control" name="location">{{$l_orig}}</textarea>
			<div id="comment-tools-loc" class="comment-tools" style="display: block;" >
				<div id="comment-edit-bb-loc" class="btn-toolbar">
					<div class='btn-group'>
						<button type="button" class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'loc');">
							<i class="icon-bold comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'loc');">
							<i class="icon-italic comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'loc');">
							<i class="icon-underline comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('none','quote','loc');">
							<i class="icon-quote-left comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'loc');">
							<i class="icon-terminal comment-icon"></i>
						</button>
					</div>
					<div class='btn-group'>
						<button type="button" class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'loc');">
							<i class="icon-camera comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'loc');">
							<i class="icon-link comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'loc');">
							<i class="icon-facetime-video comment-icon"></i>
						</button>
						<button type="button" class="btn btn-default btn-xs" title="{{$mapper}}" onclick="insertbbcomment('none','map','loc');">
							<i class="icon-globe comment-icon"></i>
						</button>
					</div>

				</div>
			</div>
		</div>
	</div>

	{{if ! $eid}}
	{{include file="field_checkbox.tpl" field=$share}}
	{{$acl}}
	{{/if}}

	<div class="clear"></div>

	<button type="button" class="btn btn-default" onclick="openClose('advanced');">{{$advanced}}</button>
	<div class="btn-group pull-right">
		<button id="event-edit-preview-btn" class="btn btn-default" type="button" title="{{$preview}}" onclick="doEventPreview();"><i class="icon-eye-open" ></i></button>
		{{if ! $eid}}
		<button id="dbtn-acl" class="btn btn-default" type="button" data-toggle="modal" data-target="#aclModal" title="{{$permissions}}"><i id="jot-perms-icon"></i></button>
		{{/if}}
		<button id="event-submit" class="btn btn-primary" type="submit" name="submit">{{$submit}}</button>
	</div>
</form>