From d27a627c4f65ca67bcc0f46fb830368c713043cd Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 29 Feb 2016 22:01:13 +0100 Subject: simplify profile edit button(s) and make it useful for multiple profiles --- view/tpl/profile_advanced.tpl | 15 +++++++++++++-- view/tpl/profile_vcard.tpl | 18 ++++++++---------- 2 files changed, 21 insertions(+), 12 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 780626cf9..3d09b762d 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -12,8 +12,19 @@ {{/if}} - {{if $edit}} -  {{$edit.label}} + {{if $editmenu.multi}} +  {{$editmenu.edit.3}} + + {{else}} +  {{$editmenu.edit.3}} {{/if}}

{{$title}}

diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 56c262564..3c3bfda5a 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -6,19 +6,21 @@
{{$connect}}
{{/if}} {{if ! $zcard}} - {{if $profile.edit}} + {{if $editmenu.multi}} + {{else}} + {{/if}} {{/if}} @@ -27,9 +29,6 @@ {{if $reddress}}
{{$profile.reddress}}
{{/if}} {{/if}} {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} - - - {{if $location}}
{{$location}}
@@ -45,7 +44,6 @@ {{/if}} {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} - {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} -- cgit v1.2.3 From 0ebce75c7d53d209e47f4549105d27bbf1b5052a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 1 Mar 2016 13:09:04 +0100 Subject: css fixes to make jot look better with background colors or images --- view/tpl/jot.tpl | 15 ++++++++------- view/tpl/photos_upload.tpl | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 32a08a9b3..4f1ecfef2 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -1,3 +1,10 @@ +{{$mimeselect}} +{{$layoutselect}} +{{if $id_select}} +
+ {{$id_seltext}} {{$id_select}} +
+{{/if}}
{{if $parent}} @@ -17,13 +24,7 @@ {{if $showacl}}{{$acl}}{{/if}} - {{$mimeselect}} - {{$layoutselect}} - {{if $id_select}} -
- {{$id_seltext}} {{$id_select}} -
- {{/if}} + {{if $webpage}}
diff --git a/view/tpl/photos_upload.tpl b/view/tpl/photos_upload.tpl index 11a08204d..5bcef5dc1 100755 --- a/view/tpl/photos_upload.tpl +++ b/view/tpl/photos_upload.tpl @@ -26,7 +26,7 @@
{{include file="field_textarea.tpl" field=$body}}
-
+
{{if $lockstate}}
-
+ + - {{else}} + {{elseif $editmenu}} {{/if}} {{/if}} -- cgit v1.2.3 From 966d1586c084a1c03c0c22c45efa26c1e7704d5b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 1 Mar 2016 20:40:11 +0100 Subject: fix js error and add id to field input block --- view/tpl/events-js.tpl | 2 +- view/tpl/field_input.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/events-js.tpl b/view/tpl/events-js.tpl index 08c8aa64a..c29d80347 100755 --- a/view/tpl/events-js.tpl +++ b/view/tpl/events-js.tpl @@ -1,7 +1,7 @@
- +
diff --git a/view/tpl/field_input.tpl b/view/tpl/field_input.tpl index 128bbfbe1..d6a7f56b2 100755 --- a/view/tpl/field_input.tpl +++ b/view/tpl/field_input.tpl @@ -1,4 +1,4 @@ -
+
{{$field.3}} -- cgit v1.2.3 From 765dd5569b9ce2f18ac9974123d96452d0d19926 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 1 Mar 2016 14:55:04 -0800 Subject: Allow configuration of the display order of profile fields. This is an important piece of a more general profile configuration framework which will eventually be accessible via the admin page. --- view/tpl/profile_advanced.tpl | 73 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 64 insertions(+), 9 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 3d09b762d..b7c527c31 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -31,186 +31,241 @@
-
-
{{$profile.fullname.0}}
-
{{$profile.fullname.1}}
-
+ {{foreach $fields as $f}} + {{if $f == 'name'}} +
+
{{$profile.fullname.0}}
+
{{$profile.fullname.1}}
+
+ {{/if}} + + {{if $f == 'gender'}} {{if $profile.gender}}
{{$profile.gender.0}}
{{$profile.gender.1}}
{{/if}} + {{/if}} + {{if $f == 'birthday'}} {{if $profile.birthday}}
{{$profile.birthday.0}}
{{$profile.birthday.1}}
{{/if}} + {{/if}} + {{if $f == 'age'}} {{if $profile.age}}
{{$profile.age.0}}
{{$profile.age.1}}
{{/if}} + {{/if}} + + {{if $f == 'marital'}} {{if $profile.marital}}
{{$profile.marital.0}}
{{$profile.marital.1}}{{if $profile.marital.with}} ({{$profile.marital.with}}){{/if}}{{if $profile.howlong}} {{$profile.howlong}}{{/if}}
{{/if}} + {{/if}} + {{if $f == 'sexual'}} {{if $profile.sexual}}
{{$profile.sexual.0}}
{{$profile.sexual.1}}
{{/if}} + {{/if}} + {{if $f == 'keywords'}} {{if $profile.keywords}}
{{$profile.keywords.0}}
{{$profile.keywords.1}}
{{/if}} + {{/if}} + {{if $f == 'homepage'}} {{if $profile.homepage}}
{{$profile.homepage.0}}
{{$profile.homepage.1}}
{{/if}} + {{/if}} + {{if $f == 'hometown'}} {{if $profile.hometown}}
{{$profile.hometown.0}}
{{$profile.hometown.1}}
{{/if}} + {{/if}} + + {{if $f == 'politic'}} {{if $profile.politic}}
{{$profile.politic.0}}
{{$profile.politic.1}}
{{/if}} + {{/if}} + {{if $f == 'religion'}} {{if $profile.religion}}
{{$profile.religion.0}}
{{$profile.religion.1}}
{{/if}} + {{/if}} + {{if $f == 'about'}} {{if $profile.about}}
{{$profile.about.0}}
{{$profile.about.1}}
{{/if}} + {{/if}} + {{if $f == 'interest'}} {{if $profile.interest}}
{{$profile.interest.0}}
{{$profile.interest.1}}
{{/if}} + {{/if}} + {{if $f == 'likes'}} {{if $profile.likes}}
{{$profile.likes.0}}
{{$profile.likes.1}}
{{/if}} + {{/if}} + {{if $f == 'dislikes'}} {{if $profile.dislikes}}
{{$profile.dislikes.0}}
{{$profile.dislikes.1}}
{{/if}} + {{/if}} + {{if $f == 'contact'}} {{if $profile.contact}}
{{$profile.contact.0}}
{{$profile.contact.1}}
{{/if}} + {{/if}} + {{if $f == 'channels'}} {{if $profile.channels}}
{{$profile.channels.0}}
{{$profile.channels.1}}
{{/if}} + {{/if}} + {{if $f == 'music'}} {{if $profile.music}}
{{$profile.music.0}}
{{$profile.music.1}}
{{/if}} + {{/if}} + {{if $f == 'book'}} {{if $profile.book}}
{{$profile.book.0}}
{{$profile.book.1}}
{{/if}} + {{/if}} + {{if $f == 'tv'}} {{if $profile.tv}}
{{$profile.tv.0}}
{{$profile.tv.1}}
{{/if}} + {{/if}} + {{if $f == 'film'}} {{if $profile.film}}
{{$profile.film.0}}
{{$profile.film.1}}
{{/if}} + {{/if}} + {{if $f == 'romance'}} {{if $profile.romance}}
{{$profile.romance.0}}
{{$profile.romance.1}}
{{/if}} + {{/if}} + {{if $f == 'work'}} {{if $profile.work}}
{{$profile.work.0}}
{{$profile.work.1}}
{{/if}} + {{/if}} + {{if $f == 'education'}} {{if $profile.education}}
{{$profile.education.0}}
{{$profile.education.1}}
{{/if}} + {{/if}} - {{foreach $profile.extra_fields as $f}} - {{if $profile.$f}} -
-
{{$profile.$f.0}}
-
{{$profile.$f.1}}
+ {{foreach $profile.extra_fields as $fld}} + {{if $f == $fld}} + {{if $profile.$fld}} +
+
{{$profile.$fld.0}}
+
{{$profile.$fld.1}}
{{/if}} + {{/if}} {{/foreach}} + {{/foreach}} {{if $things}} -- cgit v1.2.3