forked from verdnatura/hedera-web
48 lines
1.1 KiB
XML
Executable File
48 lines
1.1 KiB
XML
Executable File
<vn>
|
|
<div id="title">
|
|
<h1><t>Photos</t></h1>
|
|
</div>
|
|
<div id="form" class="photos">
|
|
<div class="box">
|
|
<div class="body">
|
|
<form
|
|
id="html-form"
|
|
method="post"
|
|
enctype="multipart/form-data"
|
|
target="photos-iframe"
|
|
on-submit="onFormSubmit">
|
|
<div class="form-group">
|
|
<label><t>Id</t></label>
|
|
<input type="number" name="id" id="photo-id"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label><t>ImageName</t></label>
|
|
<input type="text" name="name"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label><t>Schema</t></label>
|
|
<input type="hidden" name="schema" id="schema-field"/>
|
|
<htk-combo id="schema">
|
|
<db-model property="model">
|
|
SELECT name, `desc` FROM image_schema ORDER BY `desc`
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div class="form-group">
|
|
<label><t>ImageFile</t></label>
|
|
<input type="file" name="image"/>
|
|
<input type="hidden" name="MAX_FILE_SIZE" id="photo-size"/>
|
|
</div>
|
|
<button class="flat" id="submit">
|
|
<t>Upload</t>
|
|
</button>
|
|
</form>
|
|
<iframe
|
|
id="iframe"
|
|
name="photos-iframe"
|
|
on-load="onImageUpload"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|