1 <script language="javascript" type="text/javascript"
2 src="{{$baseurl}}/view/theme/frio/js/event_edit.js"></script>
3 <div id="event-form-wrapper">
4 <h3 class="heading">{{$title}}</h3>
6 {{* The event edit navigation menu (text input, permissions, preview, filebrowser) *}}
7 <ul id="event-nav" class="nav nav-tabs event-nav" role="menubar" data-tabs="tabs">
8 {{* Mark the first list entry as active because it is the first which is active after opening
9 the modal. Changing of the activity status is done by js in event_head.tpl *}}
10 <li class="active" role="menuitem"><a id="event-edit-lnk" onclick="eventEditActive(); return false;">{{$basic}}</a></li>
11 <li role="menuitem"><a id="event-desc-lnk" onclick="eventDescActive(); return false;">{{$advanced}}</a></li>
12 {{if $acl}}<li role="menuitem" {{if !$sh_checked}} style="display: none"{{/if}}><a id="event-perms-lnk" onclick="eventAclActive();return false;">{{$permissions}}</a></li>{{/if}}
13 {{if $preview}}<li role="menuitem"><a id="event-preview-lnk" onclick="eventPreviewActive();return false;">{{$preview}}</a></li>{{/if}}
14 {{* commented out because it isn't implemented yet
15 <li role="menuitem"><a id="event-preview-link" onclick="fbrowserActive(); return false;"> Browser </a></li>
19 <div id="event-edit-form-wrapper">
20 <form id="event-edit-form" action="{{$post}}" method="post" >
22 <input type="hidden" name="event_id" value="{{$eid}}" />
23 <input type="hidden" name="cid" value="{{$cid}}" />
24 <input type="hidden" name="uri" value="{{$uri}}" />
25 <input type="hidden" name="preview" id="event-edit-preview" value="0" />
27 {{* The tab conten with the necessary basic settings *}}
28 <div id="event-edit-wrapper">
30 {{* The event title *}}
31 {{include file="field_input.tpl" field=$summary}}
33 <div id="event-edit-time">
34 {{* The field for event starting time *}}
37 {{* The field for event finish time *}}
40 {{* checkbox if the the event doesn't have a finish time *}}
41 {{include file="field_checkbox.tpl" field=$nofinish}}
43 {{* checkbox for adjusting the event time to the timezone of the user *}}
44 {{include file="field_checkbox.tpl" field=$adjust}}
47 {{* checkbox to enable event sharing and the permissions tab *}}
49 {{include file="field_checkbox.tpl" field=$share}}
52 {{* The submit button - saves the event *}}
53 <div class="pull-right" >
54 <button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
56 <div class="clear"></div>
59 {{* The advanced tab *}}
60 <div id="event-desc-wrapper" style="display: none">
62 {{* The textarea for the event description *}}
63 <div class="form-group">
64 <div id="event-desc-text"><b>{{$d_text}}</b></div>
65 <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" >{{$d_orig}}</textarea>
66 <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
67 {{* commented out because it isn't implemented yet
69 <a class="icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="desc">
70 <i class="fa fa-picture-o"></i>
75 <a class="icon bb-url" style="cursor: pointer;" title="{{$edurl|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="desc">
76 <i class="fa fa-link"></i>
80 <a class="icon bb-video" style="cursor: pointer;" title="{{$edvideo|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="desc">
81 <i class="fa fa-video-camera"></i>
86 <a class="icon underline" style="cursor: pointer;" title="{{$eduline|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="desc">
87 <i class="fa fa-underline"></i>
91 <a class="icon italic" style="cursor: pointer;" title="{{$editalic|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="desc">
92 <i class="fa fa-italic"></i>
96 <a class="icon bold" style="cursor: pointer;" title="{{$edbold|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="desc">
97 <i class="fa fa-bold"></i>
101 <a class="icon quote" style="cursor: pointer;" title="{{$edquote|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="desc">
102 <i class="fa fa-quote-left"></i>
106 <div class="clear"></div>
109 {{* The textarea for the event location *}}
110 <div class="form-group">
111 <div id="event-location-text"><b>{{$l_text}}</b></div>
112 <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location">{{$l_orig}}</textarea>
113 <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
114 {{* commented out because it isn't implemented yet
116 <a class="icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="loc">
117 <i class="fa fa-picture-o"></i>
122 <a class="icon bb-url" style="cursor: pointer;" title="{{$edurl|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="loc">
123 <i class="fa fa-link"></i>
127 <a class="icon bb-video" style="cursor: pointer;" title="{{$edvideo|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="loc">
128 <i class="fa fa-video-camera"></i>
133 <a class="icon underline" style="cursor: pointer;" title="{{$eduline|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="loc">
134 <i class="fa fa-underline"></i>
138 <a class="icon italic" style="cursor: pointer;" title="{{$editalic|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="loc">
139 <i class="fa fa-italic"></i>
143 <a class="icon bold" style="cursor: pointer;" title="{{$edbold|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="loc">
144 <i class="fa fa-bold"></i>
148 <a class="icon quote" style="cursor: pointer;" title="{{$edquote|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="loc">
149 <i class="fa fa-quote-left"></i>
153 <div class="clear"></div>
157 {{* The tab for the permissions (if event sharing is enabled) *}}
158 <div id="event-acl-wrapper" style="display: none">
162 {{* The tab for the event preview (content is inserted by js) *}}
163 <div id="event-preview" style="display: none"></div>
165 <div class="clear"></div>
171 <script language="javascript" type="text/javascript">
172 $(document).ready( function() {
173 // disable finish date input if it isn't available
174 enableDisableFinishDate();
175 // load bbcode autocomplete for the description textarea
176 $('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
178 // initiale autosize for the textareas
179 autosize($("textarea.text-autosize"));