]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/event_form.tpl
Fix review points
[friendica.git] / view / theme / frio / templates / event_form.tpl
1 <div id="event-form-wrapper">
2         <h3 class="heading">{{$title}}</h3>
3
4         {{* The event edit navigation menu (text input, permissions, preview, filebrowser) *}}
5         <ul id="event-nav" class="nav nav-tabs event-nav" role="menubar" data-tabs="tabs">
6                 {{* Mark the first list entry as active because it is the first which is active after opening
7                         the modal. Changing of the activity status is done by js in event_head.tpl *}}
8                 <li class="active" role="menuitem">
9                         <a id="event-edit-lnk" onclick="eventEditActive(); return false;">{{$basic}}</a>
10                 </li>
11                 <li role="menuitem">
12                         <a id="event-desc-lnk" onclick="eventDescActive(); return false;">{{$advanced}}</a>
13                 </li>
14                 {{if $acl}}
15                 <li role="menuitem" {{if !$sh_checked}} style="display: none"{{/if}}>
16                         <a id="event-perms-lnk" onclick="eventAclActive(); return false;">{{$permissions}}</a>
17                 </li>
18                 {{/if}}
19                 {{if $preview}}
20                 <li role="menuitem">
21                         <a id="event-preview-lnk" onclick="eventPreviewActive(); return false;">{{$preview}}</a>
22                 </li>
23                 {{/if}}
24                 {{* commented out because it isn't implemented yet
25                 <li role="menuitem"><a id="event-preview-link" onclick="fbrowserActive(); return false;"> Browser </a></li>
26                 *}}
27         </ul>
28
29         <div id="event-edit-form-wrapper">
30         <form id="event-edit-form" action="{{$post}}" method="post">
31
32                 <input type="hidden" name="event_id" value="{{$eid}}" />
33                 <input type="hidden" name="cid" value="{{$cid}}" />
34                 <input type="hidden" name="uri" value="{{$uri}}" />
35                 <input type="hidden" name="preview" id="event-edit-preview" value="0" />
36
37                 {{* The tab conten with the necessary basic settings *}}
38                 <div id="event-edit-wrapper">
39
40                         {{* The event title *}}
41                         {{include file="field_input.tpl" field=$summary}}
42
43                         <div id="event-edit-time">
44                                 {{* The field for event starting time *}}
45                                 {{$s_dsel nofilter}}
46
47                                 {{* The field for event finish time *}}
48                                 {{$f_dsel nofilter}}
49
50                                 {{* checkbox if the the event doesn't have a finish time *}}
51                                 {{include file="field_checkbox.tpl" field=$nofinish}}
52
53                                 {{* checkbox for adjusting the event time to the timezone of the user *}}
54                                 {{include file="field_checkbox.tpl" field=$adjust}}
55                         </div>
56
57                         {{* checkbox to enable event sharing and the permissions tab *}}
58                         {{if ! $eid}}
59                         {{include file="field_checkbox.tpl" field=$share}}
60                         {{/if}}
61
62                         {{* The submit button - saves the event *}}
63                         <div class="pull-right">
64                                 <button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
65                         </div>
66                         <div class="clear"></div>
67                 </div>
68
69                 {{* The advanced tab *}}
70                 <div id="event-desc-wrapper" style="display: none">
71
72                         {{* The textarea for the event description *}}
73                         <div class="form-group">
74                                 <div id="event-desc-text"><b>{{$d_text}}</b></div>
75                                 <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" dir="auto">{{$d_orig}}</textarea>
76                                 <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
77                                         {{* commented out because it isn't implemented yet
78                                         <li>
79                                                 <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="desc">
80                                                         <i class="fa fa-picture-o"></i>
81                                                 </button>
82                                         </li>
83                                         *}}
84                                         <li>
85                                                 <button type="button" class="btn-link icon bb-url" style="cursor: pointer;" title="{{$edurl}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="desc">
86                                                         <i class="fa fa-link"></i>
87                                                 </button>
88                                         </li>
89                                         <li>
90                                                 <button type="button" class="btn-link icon bb-video" style="cursor: pointer;" title="{{$edvideo}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="desc">
91                                                         <i class="fa fa-video-camera"></i>
92                                                 </button>
93                                         </li>
94
95                                         <li>
96                                                 <button type="button" class="btn-link icon underline" style="cursor: pointer;" title="{{$eduline}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="desc">
97                                                         <i class="fa fa-underline"></i>
98                                                 </button>
99                                         </li>
100                                         <li>
101                                                 <button type="button" class="btn-link icon italic" style="cursor: pointer;" title="{{$editalic}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="desc">
102                                                         <i class="fa fa-italic"></i>
103                                                 </button>
104                                         </li>
105                                         <li>
106                                                 <button type="button" class="btn-link icon bold" style="cursor: pointer;"  title="{{$edbold}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="desc">
107                                                         <i class="fa fa-bold"></i>
108                                                 </button>
109                                         </li>
110                                         <li>
111                                                 <button type="button" class="btn-link icon quote" style="cursor: pointer;" title="{{$edquote}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="desc">
112                                                         <i class="fa fa-quote-left"></i>
113                                                 </button>
114                                         </li>
115                                 </ul>
116                                 <div class="clear"></div>
117                         </div>
118
119                         {{* The textarea for the event location *}}
120                         <div class="form-group">
121                                 <div id="event-location-text"><b>{{$l_text}}</b></div>
122                                 <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location" dir="auto">{{$l_orig}}</textarea>
123                                 <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
124                                         {{* commented out because it isn't implemented yet
125                                         <li>
126                                                 <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="loc">
127                                                         <i class="fa fa-picture-o"></i>
128                                                 </button>
129                                         </li>
130                                         *}}
131                                         <li>
132                                                 <button type="button" class="btn-link icon bb-url" style="cursor: pointer;" title="{{$edurl}}" data-role="insert-formatting" data-comment=" " data-bbcode="url" data-id="loc">
133                                                         <i class="fa fa-link"></i>
134                                                 </button>
135                                         </li>
136                                         <li>
137                                                 <button type="button" class="btn-link icon bb-video" style="cursor: pointer;" title="{{$edvideo}}" data-role="insert-formatting" data-comment=" " data-bbcode="video" data-id="loc">
138                                                         <i class="fa fa-video-camera"></i>
139                                                 </button>
140                                         </li>
141
142                                         <li>
143                                                 <button type="button" class="btn-link icon underline" style="cursor: pointer;" title="{{$eduline}}" data-role="insert-formatting" data-comment=" " data-bbcode="u" data-id="loc">
144                                                         <i class="fa fa-underline"></i>
145                                                 </button>
146                                         </li>
147                                         <li>
148                                                 <button type="button" class="btn-link icon italic" style="cursor: pointer;" title="{{$editalic}}" data-role="insert-formatting" data-comment=" " data-bbcode="i" data-id="loc">
149                                                         <i class="fa fa-italic"></i>
150                                                 </button>
151                                         </li>
152                                         <li>
153                                                 <button type="button" class="btn-link icon bold" style="cursor: pointer;"  title="{{$edbold}}" data-role="insert-formatting" data-comment=" " data-bbcode="b" data-id="loc">
154                                                         <i class="fa fa-bold"></i>
155                                                 </button>
156                                         </li>
157                                         <li>
158                                                 <button type="button" class="btn-link icon quote" style="cursor: pointer;" title="{{$edquote}}" data-role="insert-formatting" data-comment=" " data-bbcode="quote" data-id="loc">
159                                                         <i class="fa fa-quote-left"></i>
160                                                 </button>
161                                         </li>
162                                 </ul>
163                                 <div class="clear"></div>
164                         </div>
165                 </div>
166
167                 {{* The tab for the permissions (if event sharing is enabled) *}}
168                 <div id="event-acl-wrapper" style="display: none">
169                         {{$acl nofilter}}
170                 </div>
171
172                 {{* The tab for the event preview (content is inserted by js) *}}
173                 <div id="event-preview" style="display: none"></div>
174
175                 <div class="clear"></div>
176
177         </form>
178         </div>
179 </div>
180
181 <script type="text/javascript">
182         $(document).ready( function() {
183                 // disable finish date input if it isn't available
184                 enableDisableFinishDate();
185                 // load bbcode autocomplete for the description textarea
186                 $('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
187
188                 // initiale autosize for the textareas
189                 autosize($("textarea.text-autosize"));
190         });
191 </script>