[%- sections.title='.title3' | ml -%] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- dw.need_res( { group => "foundation" }, "stc/css/pages/manage/circle-edit.css" "stc/css/components/foundation-icons.css" "stc/coloris.css" "js/vendor/coloris.js" "js/pages/manage/circle-edit.js" ) -%]
[% dw.form_auth() %]

[% dw.ml( '.circle.intro2', { aopts1 => "href='#editpeople'", aopts2 => "href='#editcomms'", aopts3 => "href='#editfeeds'", aopts4 => "href='${site.root}/manage/settings/?cat=notifications'", aopts5 => "href='${site.root}/manage/banusers'" }) %]

[% dw.ml( '.circle.intro.feeds', { sitename => site.nameshort, aopts => "href='${site.root}/feeds'" }) %]

[% IF view_banned %]

[% dw.ml( '.circle.hide_banned', { aopts => "href='/manage/circle/edit'"} ) %]

[% ELSIF banned_userids %]

[% dw.ml( '.circle.show_banned', { aopts => "href='/manage/circle/edit?view=banned'" } ) %]

[% END %]

[% dw.ml('.circle.header') %]

[% BLOCK standoutbox %]

[% dw.ml( '.circle.standout', { aopts1 => "href='#editpeople'", aopts2 => "href='#editcomms'", aopts3 => "href='#editfeeds'" }) %]

[% form.submit(value=dw.ml('.btn.save')) %]
[% END %] [% IF all_circle_userids %] [%# print tables %]
[% PROCESS standoutbox %] [%- INCLUDE manage/circle/edit/list.tt type => 'people' uids => person_userids -%] [% PROCESS standoutbox %] [%- INCLUDE manage/circle/edit/list.tt type => 'comms' uids => comm_userids -%] [% PROCESS standoutbox %] [%- INCLUDE manage/circle/edit/list.tt type => 'feeds' uids => feed_userids -%] [% PROCESS standoutbox %]
[% ELSE %]

[% dw.ml('.circle.nocircle') %]



[% END %] [%# Add friends %]

[% dw.ml('.addrelationships.head') %]

[% dw.ml( '.addrelationships.text', { sitename => site.nameshort, aopts => "href='${site.root}/manage/circle/invite'" } ) %]

[% dw.ml( '.customcolors.enable', { aopts => "href='${site.root}/customize/options'", sitename => site.nameshort } ) %]

[% IF u.circle_userids.size > u.count_maxfriends %] [% # different message if account upgrade is possible %] [% warn_str = ( acttype == "seed" || acttype == "premium" ) ? '.addrelationships.warning.noupgrade' : '.addrelationships.warning.canupgrade' %]

[% dw.ml(warn_str, { maxnum => u.count_maxfriends, aopts => "href='${site.shoproot}/account?for=self'" } ) %]

[% END %] [% "" IF show_colors %] [% "" IF show_trust_col %] [% "" IF show_watch_col %] [% "" IF show_colors %] [% FOREACH i IN [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] %] [% IF show_colors %] [% END %] [% IF show_trust_col %] [% END %] [% IF show_watch_col %] [% END %] [% IF show_colors %] [% END %] [% END %]
[% dw.ml('.circle.username') %] ${dw.ml('.circle.trust')}${dw.ml('.circle.watch')}${dw.ml('.foreground')}${dw.ml('.background')}
[% form.textbox( 'name' => "editfriend_add_${i}_user", 'size' => '20', 'maxlength' => site.maxlength_user, 'onchange' => "updatePreview(); return true;", 'onfocus' => "setFriend($i);" ) %] [% form.checkbox( name => "editfriend_add_${i}_trust", value => 1, onfocus => "setFriend($i);", label => dw.ml('.circle.access'), autocomplete => 'off' ) %] [% form.checkbox( name => "editfriend_add_${i}_watch", value => 1, onfocus => "setFriend($i);", label => dw.ml('.circle.subscribe'), class=> "sub-box", autocomplete => 'off') %] [% form.textbox( 'name' => "editfriend_add_${i}_fg", 'id' => "editfriend_add_${i}_fg", 'value' => '#000000', class => 'fg-color coloris', label => dw.ml('.foreground'), autocomplete => 'off' ) %] [% form.textbox( 'name' => "editfriend_add_${i}_bg", 'id' => "editfriend_add_${i}_bg", 'value' => '#ffffff', class=> 'bg-color coloris', label => dw.ml('.background'), raw => " data-coloris" autocomplete => 'off' ) %]
[% form.submit(value = dw.ml( '.btn.save2')) %]