aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-18 18:30:50 -0700
committerzotlabs <mike@macgirvin.com>2016-10-18 18:30:50 -0700
commit2a59f45a3b2da30d00656729b6b008df410178ec (patch)
treeaef127b2caac77e1a733d6789a49193535748415 /view/tpl
parent2db7b2d9487d9393d511998ae0258979fde379c4 (diff)
downloadvolse-hubzilla-2a59f45a3b2da30d00656729b6b008df410178ec.tar.gz
volse-hubzilla-2a59f45a3b2da30d00656729b6b008df410178ec.tar.bz2
volse-hubzilla-2a59f45a3b2da30d00656729b6b008df410178ec.zip
Change the behaviour of 'use existing photo for profile'. For a channel with one profile, works just as it did previously. For multiple profiles, go back to the "upload form" but with a pre-existing file selected so that the correct profile can be selected. The text on this page and the resulting form are changed to remove the 'upload' text and file selection; but falls through to cropping in either case.
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/profile_photo.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/view/tpl/profile_photo.tpl b/view/tpl/profile_photo.tpl
index 88e17407b..ca107bfcc 100755
--- a/view/tpl/profile_photo.tpl
+++ b/view/tpl/profile_photo.tpl
@@ -9,10 +9,15 @@
<div id="profile-photo-upload-wrapper">
+ {{if $importfile}}
+ <input type="hidden" name="importfile" value="{{$importfile}}">
+ {{else}}
<label id="profile-photo-upload-label" class="form-label" for="profile-photo-upload">{{$lbl_upfile}}</label>
<input name="userfile" class="form-input" type="file" id="profile-photo-upload" size="48" />
+ {{/if}}
<div class="clear"></div>
+
{{if $single}}
<input type="hidden" name="profile" value="{{$profile0.id}}" />
{{else}}