root/yapcasia2008/actdocs/templates/user/photo

Revision 2610 (checked in by miyagawa, 12 years ago)

merged test to prod

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