Home | History | Annotate | Download | only in templates
      1 <!DOCTYPE html>
      2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
      3 <!--
      4  * Copyright (C) 2010 The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
      7  * use this file except in compliance with the License. You may obtain a copy of
      8  * the License at
      9  *
     10  * http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
     15  * License for the specific language governing permissions and limitations under
     16  * the License.
     17 -->
     18     <head>
     19         <title>SampleSync: Edit Picture</title>
     20         <link type="text/css" rel="stylesheet" href="/static/css/main.css" media="screen" />
     21     </head>
     22     <body>
     23         <h1>SampleSync: Edit Picture</h1>
     24         <form method="POST" action="/edit_avatar" enctype="multipart/form-data">
     25             <h3>Current Avatar:</h3>
     26             <blockquote>
     27                 {% if avatar %}
     28                 <img src="/avatar?id={{ contactId }}" />
     29                 {% else %}
     30                 <i>You haven't added a picture for this friend...</i>
     31                 {% endif %}
     32             </blockquote>
     33             <h3>New Avatar:</h3>
     34             <p>Please select a file containing the image you'd like to use for this friend</p>
     35             <input type="file" name="avatar" />
     36             <p>&nbsp;</p>
     37             <input type="submit" name="Save" value="Save Changes" />
     38             <input type="button" name="Cancel" value="Cancel" onclick="document.location='/';return false;" />
     39             <input type="hidden" name="id" value="{{ contactId }}" />
     40         </form>
     41     </body>
     42 </html>