1<!-- editsubscriber.tt2 --> 2<h2>[%|loc%]Subscriber information[%END%]</h2> 3 4<form action="[% path_cgi %]" method="post"> 5 <fieldset> 6 <input type="hidden" name="previous_action" value="[% previous_action %]" /> 7 <input type="hidden" name="list" value="[% list %]" /> 8 <input type="hidden" name="email" value="[% current_subscriber.email %]" /> 9 10 <label for="new_email">[%|loc%]Email:[%END%] </label> 11 <input type="text" name="new_email" id="new_email" 12 value="[% current_subscriber.email %]" size="25" /> 13 14 <label for="gecos">[%|loc%]Name:[%END%] </label> 15 <input type="text" name="gecos" id="gecos" value="[% current_subscriber.gecos %]" size="25" /> 16 17 [% IF current_subscriber.custom_attribute %] 18 [% SET subscriber = current_subscriber ; 19 PROCESS edit_attributes.tt2 %] 20 [% END %] 21 22 <label>[%|loc%]Subscribed since:[%END%] </label> 23 [% current_subscriber.date %] 24 25 <label>[%|loc%]Last update:[%END%] </label> 26 [% current_subscriber.update_date %] 27 28 <label for="reception">[%|loc%]Receiving:[%END%] </label> 29 <select name="reception" id="reception"> 30 [% FOREACH r = reception ~%] 31 <option value="[% r.key %]" 32 [%~ IF r.value.selected %] selected="selected"[% END %]> 33 [%~ r.key | optdesc('reception') ~%] 34 </option> 35 [% END %] 36 </select> 37 38 <label for="visibility">[%|loc%]Visibility:[%END%] </label> 39 <select id="visibility" name="visibility"> 40 [% FOREACH r = visibility ~%] 41 <option value="[% r.key %]" 42 [%~ IF r.value.selected %] selected="selected"[% END %]> 43 [%~ r.key | optdesc('visibility') ~%] 44 </option> 45 [% END %] 46 </select> 47 48 <label>[%|loc%]Language:[%END%] </label> 49 [% current_subscriber.lang | optdesc('lang') %] 50 51 [% IF pictures_display ~%] 52 [% IF current_subscriber.pictures_url || current_subscriber.email == user.email ~%] 53 <label for="picture">[%|loc%]Picture:[%END%] </label> 54 [%~ END %] 55 [% IF current_subscriber.pictures_url ~%] 56 <a id="picture" href="[% current_subscriber.pictures_url %]" 57 title="[%|loc%]Open in a new window[%END%]" target="pictures"> 58 <img id="large_picture" src="[% current_subscriber.pictures_url %]" 59 alt="[%|loc(current_subscriber.email)%]%1's picture[%END%]" /> 60 </a> 61 [%~ END %] 62 [% IF current_subscriber.email == user.email ~%] 63 <p> 64 <a href="[% 'suboptions' | url_rel([list],{previous_action=>action}) %]" title=""> 65 [%|loc%]Changing your picture for this list[%END%] 66 </a> 67 </p> 68 [%~ END %] 69 [%~ END %] 70 71 [% IF additional_fields %] 72 [% FOREACH field = additional_fields %] 73 [% IF field.value.type == 'enum' %] 74 <label for="additional_field_[% field.key %]">[% field.key %][%|loc%]:[%END%] </label> 75 <select name="additional_field_[% field.key %]" id="additional_field_[% field.key %]"> 76 <option value=""> </option> 77 [% FOREACH e = field.value.enum %] 78 <option value="[% e.key %]" [% e.value %]>[% e.key %]</option> 79 [% END %] 80 </select> 81 [% ELSE %] 82 <label for="additional_field_[% field.key %]">[% field.key %][%|loc%]:[%END%]</label> 83 <input type="text" name="additional_field_[% field.key %]" id="additional_field_[% field.key %]" value="[% field.value.value %]" size="25" /> 84 [% END %] 85 [% END %] 86 [% END %] 87 88 <div class="form_row"> 89 <input class="MainMenuLinks" type="submit" name="action_set" value="[%|loc%]Apply modifications[%END%]" /> 90 </div> 91 92 <input class="MainMenuLinks" type="submit" name="action_del" value="[%|loc%]Unsubscribe the User[%END%]" /> 93 <p> 94 <input id="quiet" type="checkbox" name="quiet" /> 95 <label for="quiet">[%|loc%]Quiet (don't send deletion email)[%END%]</label> 96 </p> 97 98 [% IF current_subscriber.bounce %] 99 <h3 class="warning label">[%|loc%]Bouncing address[%END%]</h3> 100 101 [% IF current_subscriber.bounce_address %] 102 <label>[%|loc%]Address detected via VERP technology[%END%] </label> 103 [% current_subscriber.bounce_address %] 104 [% END %] 105 106 <label>[%|loc%]Status:[%END%] </label> 107 [% IF current_subscriber.bounce_status ~%] 108 [% current_subscriber.bounce_status %] 109 [%~ ELSE ~%] 110 [%|loc%]Unknown[%END%] 111 [%~ END %] 112 [% IF current_subscriber.bounce_code ~%] 113 ([% current_subscriber.bounce_code %]) 114 [%~ END %] 115 116 <label>[%|loc%]Bounce count:[%END%] </label> 117 [% current_subscriber.bounce_count %] 118 119 <label>[%|loc%]Period:[%END%] </label> 120 [%|loc(current_subscriber.first_bounce,current_subscriber.last_bounce)%]from %1 to %2[%END%] 121 122 <div> 123 [%# Button to load AJAX content to reveal modal. See Foundation docs. ~%] 124 <a href="[% 'ajax/viewbounce' | url_rel([list],{email=>current_subscriber.email,previous_action=>action}) %]" 125 data-reveal-id="mainviewbounce" data-reveal-ajax="true" 126 class="MainMenuLinks"> 127 [%|loc%]View last bounce[%END%] 128 </a> 129 <input class="MainMenuLinks" type="submit" name="action_resetbounce" value="[%|loc%]Reset errors[%END%]" /> 130 </div> 131 [% END %] 132 </fieldset> 133</form> 134 135<div id="mainviewbounce" 136 class="reveal medium" data-reveal 137 aria-labelledby="[%|loc%]View last bounce[%END%]" aria-hidden="true" 138 role="dialog"> 139 [%# empty div that will display a content by AJAX. ~%] 140</div> 141<!-- end editsubscriber.tt2 --> 142