Update to LoginClient Plugin
[src/app-framework-demo.git] / afb-client / app / Frontend / pages / SamplePost / SamplePost.html
1 <!-- Foundation Annotations generate tmp/route.js -->
2 ---
3 name: PostSample
4 url:  /sample-post
5 controller:   SamplePostController as ctrl
6 animationIn: slideInRight
7 ---
8
9 <h1><img class="logo" src="images/logo/triskel_iot_bzhx250.png" alt="IoT.bzh Logo" style="height:150px;">
10     Post File Upload
11 </h1>
12
13 <div class="sample-box box-content">
14     
15     <!-- Usage: upload-xxxxx
16          name     = [xxxxxx] is use a field label for xform input field. Should match with server side
17          category = [avatar] should match to a valid directory of thumbnail within AppConfig.path
18          thumbnail= [tux-bzh.png] a valid image within AppConfig.paths.[category]
19          istoobig = [istoobig.png] used image from AppConfig.paths.[category] when file is oversized
20          maxsize  = [xxx] maximum size in KB [default max depend on upload-type]
21          accept = [image] acceptable accept for upload
22     -->
23     <upload-image category="avatar" thumbnail="tux-visitor.png" maxsize="100" 
24         posturl="/api/post/upload-image" callback="ctrl.FileUploaded" accept="image" title="Change your Avatar">
25     </upload-image>
26
27 </div>
28
29 <link-button href="home" icon="fi-home" label="home"></link-button>