]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/event_form.tpl
Update translation fie after adding a string
[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                         </div>
53
54                         {{* checkbox to enable event sharing and the permissions tab *}}
55                         {{if ! $eid}}
56                         {{include file="field_checkbox.tpl" field=$share}}
57                         {{/if}}
58
59                         {{* The submit button - saves the event *}}
60                         <div class="pull-right">
61                                 <button id="event-submit" type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
62                         </div>
63                         <div class="clear"></div>
64                 </div>
65
66                 {{* The advanced tab *}}
67                 <div id="event-desc-wrapper" style="display: none">
68
69                         {{* The textarea for the event description *}}
70                         <div class="form-group">
71                                 <div id="event-desc-text"><b>{{$d_text}}</b></div>
72                                 <textarea id="comment-edit-text-desc" class="form-control text-autosize" name="desc" dir="auto">{{$d_orig}}</textarea>
73                                 <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
74                                         {{* commented out because it isn't implemented yet
75                                         <li>
76                                                 <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">
77                                                         <i class="fa fa-picture-o"></i>
78                                                 </button>
79                                         </li>
80                                         *}}
81                                         <li>
82                                                 <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">
83                                                         <i class="fa fa-link"></i>
84                                                 </button>
85                                         </li>
86                                         <li>
87                                                 <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">
88                                                         <i class="fa fa-video-camera"></i>
89                                                 </button>
90                                         </li>
91
92                                         <li>
93                                                 <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">
94                                                         <i class="fa fa-underline"></i>
95                                                 </button>
96                                         </li>
97                                         <li>
98                                                 <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">
99                                                         <i class="fa fa-italic"></i>
100                                                 </button>
101                                         </li>
102                                         <li>
103                                                 <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">
104                                                         <i class="fa fa-bold"></i>
105                                                 </button>
106                                         </li>
107                                         <li>
108                                                 <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">
109                                                         <i class="fa fa-quote-left"></i>
110                                                 </button>
111                                         </li>
112                                 </ul>
113                                 <div class="clear"></div>
114                         </div>
115
116                         {{* The textarea for the event location *}}
117                         <div class="form-group">
118                                 <div id="event-location-text"><b>{{$l_text}}</b></div>
119                                 <textarea id="comment-edit-text-loc" class="form-control text-autosize" name="location" dir="auto">{{$l_orig}}</textarea>
120                                 <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
121                                         {{* commented out because it isn't implemented yet
122                                         <li>
123                                                 <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">
124                                                         <i class="fa fa-picture-o"></i>
125                                                 </button>
126                                         </li>
127                                         *}}
128                                         <li>
129                                                 <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">
130                                                         <i class="fa fa-link"></i>
131                                                 </button>
132                                         </li>
133                                         <li>
134                                                 <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">
135                                                         <i class="fa fa-video-camera"></i>
136                                                 </button>
137                                         </li>
138
139                                         <li>
140                                                 <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">
141                                                         <i class="fa fa-underline"></i>
142                                                 </button>
143                                         </li>
144                                         <li>
145                                                 <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">
146                                                         <i class="fa fa-italic"></i>
147                                                 </button>
148                                         </li>
149                                         <li>
150                                                 <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">
151                                                         <i class="fa fa-bold"></i>
152                                                 </button>
153                                         </li>
154                                         <li>
155                                                 <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">
156                                                         <i class="fa fa-quote-left"></i>
157                                                 </button>
158                                         </li>
159                                 </ul>
160                                 <div class="clear"></div>
161                         </div>
162                 </div>
163
164                 {{* The tab for the permissions (if event sharing is enabled) *}}
165                 <div id="event-acl-wrapper" style="display: none">
166                         {{$acl nofilter}}
167                 </div>
168
169                 {{* The tab for the event preview (content is inserted by js) *}}
170                 <div id="event-preview" style="display: none"></div>
171
172                 <div class="clear"></div>
173
174         </form>
175         </div>
176 </div>
177
178 <script type="text/javascript">
179         $(document).ready( function() {
180                 // disable finish date input if it isn't available
181                 enableDisableFinishDate();
182                 // load bbcode autocomplete for the description textarea
183                 $('#comment-edit-text-desc, #comment-edit-text-loc').bbco_autocomplete('bbcode');
184
185                 // initiale autosize for the textareas
186                 autosize($("textarea.text-autosize"));
187         });
188 </script>