diff options
author | friendica <info@friendica.com> | 2015-03-10 15:43:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-10 15:43:15 -0700 |
commit | 5b35f1e6c4fbf0fd941c6d292b9c9b5847b64d0b (patch) | |
tree | 2f4b06a34f7e80a24ec6ac3375cf1918d5d991a0 /view/tpl | |
parent | 57384b9f9fa16d5a03d2e9618ee551a3d1f8c2b5 (diff) | |
download | volse-hubzilla-5b35f1e6c4fbf0fd941c6d292b9c9b5847b64d0b.tar.gz volse-hubzilla-5b35f1e6c4fbf0fd941c6d292b9c9b5847b64d0b.tar.bz2 volse-hubzilla-5b35f1e6c4fbf0fd941c6d292b9c9b5847b64d0b.zip |
Change logic of "don't create a status post for this photo upload" and turn it into a bona-fide on/off toggle. This takes up one more vertical line, but we have it to spare, and the single button (while concise visually) provided no feedback of the current state, or indicate whether a second click toggled it. Some addons use this setting so addons will need to be pulled when this is pulled in order to remain in sync.
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/photos_upload.tpl | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/view/tpl/photos_upload.tpl b/view/tpl/photos_upload.tpl index 6cd7e3eb9..06e3ef612 100755 --- a/view/tpl/photos_upload.tpl +++ b/view/tpl/photos_upload.tpl @@ -21,12 +21,8 @@ <div class="form-group"> <input id="photos-upload-choose" type="file" name="userfile" /> </div> + {{include file="field_checkbox.tpl" field=$visible}} <div class="pull-right btn-group form-group"> - <div class="btn-group" data-toggle="buttons"> - <label class="btn btn-default btn-sm" title="{{$nosharetext}}"> - <input class="checkbox-inline" id="photos-upload-noshare" type="checkbox" name="not_visible" value="1" /><i class="icon-ban-circle"></i> - </label> - </div> <div class="btn-group"> {{if $lockstate}} <button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;"> @@ -41,12 +37,9 @@ <div class="clear"></div> {{if $uploader}} + + {{include file="field_checkbox.tpl" field=$visible}} <div id="photos-upload-perms" class="btn-group pull-right"> - <div class="btn-group" data-toggle="buttons"> - <label class="btn btn-default btn-sm" title="{{$nosharetext}}"> - <input class="checkbox-inline" id="photos-upload-noshare" type="checkbox" name="not_visible" value="1" /><i class="icon-ban-circle"></i> - </label> - </div> {{if $lockstate}} <button class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;"> <i id="jot-perms-icon" class="icon-{{$lockstate}}"></i> |