aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/event_form.tpl
blob: 4ce57798c4d2132693979b4741beba1ea53cb737 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<div class="generic-content-wrapper-styled">

<h3>{{$title}}</h3>

<p>
{{$desc}}
</p>

<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}}" />

<div id="event-summary-text">{{$t_text}}</div>
<input type="text" id="event-summary" name="summary" value="{{$t_orig}}" />{{$required}}

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

<div id="event-start-text">{{$s_text}}</div>

{{$s_dsel}}

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

   <div class='field checkbox'>
   <label class="mainlabel" for='id_nofinish'>{{$n_text}}</label>
   <div><input type="checkbox" name='nofinish' id='id_nofinish' value="1" {{$n_checked}} onclick="showHideFinishDate(); return true;" >
	<label class="switchlabel" for='id_nofinish'> <span class="onoffswitch-inner" data-on='' data-off='' ></span>
	<span class="onoffswitch-switch"></span> </label></div><span class='field_help'></span>
    </div>

<div id="event-nofinish-break"></div>

<div id="event-finish-wrapper">
<div id="event-finish-text">{{$f_text}}</div>
{{$f_dsel}}
</div>

<div id="event-datetime-break"></div>

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

<div id="event-adjust-break"></div>



{{if $catsenabled}}
<div id="event-category-wrap">
	<input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="event-cats" style="display: block;" data-role="tagsinput"  />
</div>
{{/if}}



<div id="event-desc-text">{{$d_text}}</div>






<textarea id="event-desc-textarea" name="desc">{{$d_orig}}</textarea>


<textarea id="comment-edit-text-desc" class="comment-edit-text-empty" name="body" onFocus="commentOpenUI(this,'desc');" onBlur="commentCloseUI(this,'desc');" >{{$d_orig}}</textarea>
{{if $qcomment}}
	<select id="qcomment-select-desc" name="qcomment-desc" class="qcomment" onchange="qCommentInsert(this,'desc');" >
	<option value=""></option>
	{{foreach $qcomment as $qc}}
	<option value="{{$qc}}">{{$qc}}</option>				
	{{/foreach}}
	</select>
{{/if}}
	<div class="clear"></div>
	<div id="comment-tools-desc" class="comment-tools">
	<div id="comment-edit-bb-desc" class="btn-toolbar pull-left">
	<div class='btn-group'>
	<button class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('{{$comment}}','b', 'desc'); return false;">
		<i class="icon-bold comment-icon"></i>
	</button>
	<button class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('{{$comment}}','i', 'desc'); return false;">
		<i class="icon-italic comment-icon"></i>
	</button>
	<button class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('{{$comment}}','u', 'desc'); return false;">
		<i class="icon-underline comment-icon"></i>
	</button>
	<button class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('{{$comment}}','quote','desc'); return false;">
		<i class="icon-quote-left comment-icon"></i>
	</button>
	<button class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('{{$comment}}','code', 'desc'); return false;">
		<i class="icon-terminal comment-icon"></i>
	</button>
	</div>
						
	<div class='btn-group'>
	<button class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('{{$comment}}','img', 'desc'); return false;">
		<i class="icon-camera comment-icon"></i>
	</button>
	<button class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('{{$comment}}','url', 'desc'); return false;">
		<i class="icon-link comment-icon"></i>
	</button>
	<button class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('{{$comment}}','video', 'desc'); return false;">
		<i class="icon-facetime-video comment-icon"></i>
	</button>
	</div>
	
	</div>
					
<!--	<div class="btn-group pull-right" id="comment-edit-submit-wrapper-desc">
	{{if $preview}}
	<button id="comment-edit-submit-desc" class="btn btn-default btn-xs" onclick="preview_comment(desc); return false;" title="{{$preview}}">
		<i class="icon-eye-open comment-icon" ></i>
	</button>
	{{/if}}
-->
	</div>







<div id="event-location-text">{{$l_text}}</div>
<textarea id="event-location-textarea" name="location">{{$l_orig}}</textarea>
<br />

<input type="checkbox" name="share" value="1" id="event-share-checkbox" {{$sh_checked}} /> <div id="event-share-text">{{$sh_text}}</div>
<div id="event-share-break"></div>

<button id="event-permissions-button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$permissions}}</button>
	{{$acl}}

<div class="clear"></div>
<input id="event-submit" type="submit" name="submit" value="{{$submit}}" />
</form>

</div>