]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/acl/message_recipient.tpl
Add conditional help text for disabled fields
[friendica.git] / view / templates / acl / message_recipient.tpl
index 07c22f449e4fee59fbf6472d18eab333a991f36f..0e6d8c939513aa1ffd1dfbafd122ec98d2d6eac4 100644 (file)
@@ -1,4 +1,5 @@
-<select name="recipient" class="form-control input-lg" id="recipient">
+<select name="recipient" class="form-control input-lg" id="recipient" required>
+       <option></option>
        {{foreach $contacts as $contact}}
                <option value="{{$contact.id}}"{{if $contact.id == $selected}} selected{{/if}}>{{$contact.name}}</option>
        {{/foreach}}
@@ -48,7 +49,9 @@
                        }
                });
 
+               {{if $selected}}
                // Import existing ACL into the tags input fields.
                $recipient_input.tagsinput('add', acl.get({{$selected}})[0]);
+               {{/if}}
        });
 </script>