79 lines
1.8 KiB
XML
79 lines
1.8 KiB
XML
<vn>
|
|
<vn-group>
|
|
<vn-param id="new-id"/>
|
|
<vn-hash-param key="new" param="new-id"/>
|
|
<db-form id="iter" on-status-changed="this.onStatusChange()">
|
|
<db-model
|
|
id="model"
|
|
property="model"
|
|
updatable="true"
|
|
on-operations-done="this.onOperationsDone()">
|
|
<custom>
|
|
SELECT id, title, text, tag, priority, image
|
|
FROM news WHERE id = #new
|
|
</custom>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="new" param="new-id"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
</db-form>
|
|
<db-param form="iter" column="text" on-changed="this.onBodyChange()"/>
|
|
</vn-group>
|
|
<div id="title">
|
|
<h1><t>AddEditNew</t></h1>
|
|
</div>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="close"
|
|
tip="_Return"
|
|
on-click="this.onReturnClick()"/>
|
|
<htk-bar-button
|
|
icon="check"
|
|
tip="_Accept"
|
|
on-click="this.onAcceptClick()"/>
|
|
</div>
|
|
<div id="form" class="new">
|
|
<div class="box form vn-w-sm">
|
|
<h4 class="image-label"><t>Image</t></h4>
|
|
<htk-image
|
|
form="iter"
|
|
column="image"
|
|
class="photo"
|
|
directory="news"
|
|
subdir="full"
|
|
full-dir="full"
|
|
editable="true"
|
|
conn="conn"/>
|
|
<div class="vn-pa-lg">
|
|
<div class="form-group">
|
|
<label><t>Title</t></label>
|
|
<htk-entry form="iter" column="title"/>
|
|
</div>
|
|
<div class="form-group tag-priority">
|
|
<div>
|
|
<label><t>Tag</t></label>
|
|
<htk-combo form="iter" column="tag">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT name, description FROM newsTag
|
|
ORDER BY description
|
|
</custom>
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div>
|
|
<label><t>Priority</t></label>
|
|
<htk-entry form="iter" column="priority"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label><t>NewBody</t></label>
|
|
<textarea id="html-editor"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|