]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/templates/jot.tpl
quattro: hide acl button in edit post
[friendica.git] / view / theme / quattro / templates / jot.tpl
index 21df47dfa87b1d2de008a7810cd59714e204f543..41d633b25c3191f01ee65fd43123862091180602 100644 (file)
@@ -6,7 +6,7 @@
                <input name="category" id="jot-category" type="text" placeholder="{{$placeholdercategory}}" title="{{$placeholdercategory}}" value="{{$category}}" class="jothidden" style="display:none" />
                {{/if}}
                <div id="character-counter" class="grey jothidden"></div>
-               
+
 
 
                <input type="hidden" name="type" value="{{$ptyp}}" />
@@ -17,6 +17,9 @@
                <input type="hidden" name="post_id" value="{{$post_id}}" />
                <input type="hidden" name="preview" id="jot-preview" value="0" />
                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
+               {{if $notes_cid}}
+               <input type="hidden" name="contact_allow[]" value="<{{$notes_cid}}>" />
+               {{/if}}
 
                <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{if $content}}{{$content}}{{else}}{{$share}}{{/if}}</textarea>
 
                        <li><a id="profile-link"  ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;" title="{{$weblink}}">{{$shortweblink}}</a></li>
                        <li><a id="profile-video" onclick="jotVideoURL();return false;" title="{{$video}}">{{$shortvideo}}</a></li>
                        <li><a id="profile-audio" onclick="jotAudioURL();return false;" title="{{$audio}}">{{$shortaudio}}</a></li>
-                       <!-- TODO: waiting for a better placement 
+                       <!-- TODO: waiting for a better placement
                        <li><a id="profile-location" onclick="jotGetLocation();return false;" title="{{$setloc}}">{{$shortsetloc}}</a></li>
                        <li><a id="profile-nolocation" onclick="jotClearLocation();return false;" title="{{$noloc}}">{{$shortnoloc}}</a></li>
                        -->
                        <li><a id="jot-preview-link" onclick="preview_post(); return false;" title="{{$preview}}">{{$preview}}</a></li>
                        {{$jotplugins}}
 
+                       {{if !$is_edit}}
                        <li class="perms"><a id="jot-perms-icon" href="#profile-jot-acl-wrapper" class="icon s22 {{$lockstate}} {{$bang}}"  title="{{$permset}}" ></a></li>
+                       {{/if}}
                        <li class="submit"><input type="submit" id="profile-jot-submit" name="submit" value="{{$share}}" /></li>
                        <li id="profile-rotator" class="loading" style="display: none"><img src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}"  /></li>
                </ul>
        </div>
-       
+
        <div id="jot-preview-content" style="display:none;"></div>
 
        <div style="display: none;">
                <div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
                        {{$acl}}
-                       <hr style="clear:both"/>
-                       <div id="profile-jot-email-label">{{$emailcc}}</div><input type="text" name="emailcc" id="profile-jot-email" title="{{$emtitle}}" />
-                       <div id="profile-jot-email-end"></div>
-                       {{$jotnets}}
                </div>
        </div>