root/yapcasia2008-test/actdocs/templates/user/photo

Revision 2476 (checked in by kaminogoya, 12 years ago)

added user templates

Line 
1 [% WRAPPER ui title = loc("Your photo") %]
2 [% IF error;
3      WRAPPER error_ui;
4        loc("Image couldn't be read. Please upload your picture in one of the following formats:");
5        formats.join(', ');
6      END;
7    END
8 %]
9 <form method="post" enctype="multipart/form-data">
10     <fieldset>
11         <legend>{{Your photo}}</legend>
12         <dl>
13             <dt>
14                 [%- IF global.request.user.photo_name %]
15                     <img src="[% photo_uri %]" border="0">
16                 [%- ELSE %]
17                     {{No photo}}
18                 [% END %]
19             </dt>
20             <dd>
21                 <p>{{This photo will probably end up on the conference who's who,}}<tt>;-)</tt></p>
22                 <input type="file" name="photo" size="40" />
23             </dd>
24         </dl>
25         <div>
26         [%- IF global.request.user.photo_name %]
27             <input type="submit" name="delete" value="{{Delete Photo}}" />
28         [% END %]
29             <input type="submit" name="update" value="{{Update Photo}}" />
30         </div>
31     </fieldset>
32 </form>
33 [% END %]
Note: See TracBrowser for help on using the browser.