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

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

modified profile image page layout.

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="avater-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         <div>
31         [%- IF global.request.user.photo_name %]
32             <input type="submit" name="delete" value="{{Delete Photo}}" />
33         [% END %]
34             <input type="submit" name="update" value="{{Update Photo}}" />
35         </div>
36     </fieldset>
37 </form>
38 [% END %]
Note: See TracBrowser for help on using the browser.