]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/event_form.tpl
Merge remote-tracking branch 'upstream/develop' into rewrites/dbm_is_result
[friendica.git] / view / theme / frio / templates / event_form.tpl
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>
5
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>
16                 *}}
17         </ul>
18
19         <div id="event-edit-form-wrapper">
20         <form id="event-edit-form" action="{{$post}}" method="post" >
21
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" />
26
27                 {{* The tab conten with the necessary basic settings *}}
28                 <div id="event-edit-wrapper">
29
30                         {{* The event title *}}
31                         {{include file="field_input.tpl" field=$summary}}
32
33                         <div id="event-edit-time">
34                                 {{* The field for event starting time *}}
35                                 {{$s_dsel}}
36
37                                 {{* The field for event finish time *}}
38                                 {{$f_dsel}}
39
40                                 {{* checkbox if the the event doesn't have a finish time *}}
41                                 {{include file="field_checkbox.tpl" field=$nofinish}}
42
43                                 {{* checkbox for adjusting the event time to the timezone of the user *}}
44                                 {{include file="field_checkbox.tpl" field=$adjust}}
45                         </div>
46
47                         {{* checkbox to enable event sharing and the permissions tab *}}
48                         {{if ! $eid}}
49                         {{include file="field_checkbox.tpl" field=$share}}
50                         {{/if}}
51
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>
55                         </div>
56                         <div class="clear"></div>
57                 </div>
58
59                 {{* The advanced tab *}}
60                 <div id="event-desc-wrapper" style="display: none">
61
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
68                                         <li>
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>
71                                                 </a>
72                                         </li>
73                                         *}}
74                                         <li>
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>
77                                                 </a>
78                                         </li>
79                                         <li>
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>
82                                                 </a>
83                                         </li>
84
85                                         <li>
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>
88                                                 </a>
89                                         </li>
90                                         <li>
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>
93                                                 </a>
94                                         </li>
95                                         <li>
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>
98                                                 </a>
99                                         </li>
100                                         <li>
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>
103                                                 </a>
104                                         </li>
105                                 </ul>
106                                 <div class="clear"></div>
107                         </div>
108
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
115                                         <li>
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>
118                                                 </a>
119                                         </li>
120                                         *}}
121                                         <li>
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>
124                                                 </a>
125                                         </li>
126                                         <li>
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>
129                                                 </a>
130                                         </li>
131
132                                         <li>
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>
135                                                 </a>
136                                         </li>
137                                         <li>
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>
140                                                 </a>
141                                         </li>
142                                         <li>
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>
145                                                 </a>
146                                         </li>
147                                         <li>
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>
150                                                 </a>
151                                         </li>
152                                 </ul>
153                                 <div class="clear"></div>
154                         </div>
155                 </div>
156
157                 {{* The tab for the permissions (if event sharing is enabled) *}}
158                 <div id="event-acl-wrapper" style="display: none">
159                         {{$acl}}
160                 </div>
161
162                 {{* The tab for the event preview (content is inserted by js) *}}
163                 <div id="event-preview" style="display: none"></div>
164
165                 <div class="clear"></div>
166
167         </form>
168         </div>
169 </div>
170
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');
177
178                 // initiale autosize for the textareas
179                 autosize($("textarea.text-autosize"));
180         });
181 </script>