aboutsummaryrefslogblamecommitdiffstats
path: root/view/tpl/event_form.tpl
blob: 43c6942e19d89decdf512834468004949bca3621 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                                                                                                                                                                                        
 









                                                                                



                                                                   












                                                                      
                                                                                                                                                                        


                       

                                          


                                                                                                                              
                                                                                                    
                                                                                   
                                                                    
                                                                                                                                                                                  
                                                                                                    
                                                         
                                                                                                                                                                                    
                                                                                                      
                                                         
                                                                                                                                                                                   
                                                                                                         
                                                         
                                                                                                                                                                                      
                                                                                                
                                                         
                                                                                                                                                                                     
                                                                                               


                                                               
                                                                                                                                                                                   
                                                                                                 
                                                         
                                                                                                                                                                                   
                                                                                                     
                                                         
                                                                                                                                                                                       
                                                                                                       




                                                         

                                          


                                                                                                                                
                                                                                                   
                                                                                  
                                                                    
                                                                                                                                                                                 
                                                                                                    
                                                         
                                                                                                                                                                                   
                                                                                                      
                                                         
                                                                                                                                                                                  
                                                                                                         
                                                         
                                                                                                                                                                                     
                                                                                                
                                                         
                                                                                                                                                                                    
                                                                                               


                                                               
                                                                                                                                                                                  
                                                                                                 
                                                         
                                                                                                                                                                                  
                                                                                                     
                                                         
                                                                                                                                                                                      
                                                                                                       
                                                         
                                                                                                                                                                                  
                                                                                                





                                                         
              
 
                                 
 
                                                                                                                              
                                         
                                                                                                                                                                                               
                             
                                                                                                                                                                                                                                         
                       
                                                                                                                         
              
       



                
<form id="event-edit-form" action="{{$post}}" method="post" class="acl-form" data-form_id="event-edit-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>

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

	{{if $tz_choose}}
	{{include file="field_select_grouped.tpl" field=$timezone}}
	{{/if}}

	{{$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="mb-3">
			<div class="mb-3">
				<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>
			<div id="comment-tools-desc" class="comment-tools" style="display: block;" >
				<div id="comment-edit-bb-desc" class="btn-toolbar">
					<div class='btn-group me-2'>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'desc');">
							<i class="bi bi-type-bold comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'desc');">
							<i class="bi bi-type-italic comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'desc');">
							<i class="bi bi-type-underline comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edquote}}" onclick="insertbbcomment('none','quote','desc');">
							<i class="bi bi-quote comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'desc');">
							<i class="bi bi-code comment-icon"></i>
						</button>
					</div>
					<div class='btn-group'>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'desc');">
							<i class="bi fa-camera comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'desc');">
							<i class="bi bi-link-45deg comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'desc');">
							<i class="bi fa-video-camera comment-icon"></i>
						</button>
					</div>
				</div>
			</div>
		</div>
		<div class="mb-3">
			<div class="mb-3">
				<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>
			<div id="comment-tools-loc" class="comment-tools" style="display: block;" >
				<div id="comment-edit-bb-loc" class="btn-toolbar">
					<div class='btn-group me-2'>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'loc');">
							<i class="bi bi-type-bold comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'loc');">
							<i class="bi bi-type-italic comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'loc');">
							<i class="bi bi-type-underline comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edquote}}" onclick="insertbbcomment('none','quote','loc');">
							<i class="bi bi-quote comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'loc');">
							<i class="bi bi-code comment-icon"></i>
						</button>
					</div>
					<div class='btn-group'>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'loc');">
							<i class="bi fa-camera comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'loc');">
							<i class="bi bi-link-45deg comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'loc');">
							<i class="bi fa-video-camera comment-icon"></i>
						</button>
						<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$mapper}}" onclick="insertbbcomment('none','map','loc');">
							<i class="bi bi-globe comment-icon"></i>
						</button>
					</div>

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

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

	<button type="button" class="btn btn-outline-secondary btn-sm" onclick="openClose('advanced');">{{$advanced}}</button>
	<div class="btn-group float-end">
		<button id="event-edit-preview-btn" class="btn btn-outline-secondary btn-sm" type="button" title="{{$preview}}" onclick="doEventPreview();"><i class="bi bi-eye" ></i></button>
		{{if ! $eid}}
		<button id="dbtn-acl" class="btn btn-outline-secondary btn-sm" type="button" data-bs-toggle="modal" data-bs-target="#aclModal" title="{{$perms_label}}"><i id="jot-perms-icon" class="bi bi-{{$lockstate}}"></i></button>
		{{/if}}
		<button id="event-submit" class="btn btn-primary btn-sm" type="submit" name="submit">{{$submit}}</button>
	</div>
</form>

{{if ! $eid}}
	{{$acl}}
{{/if}}