56 lines
1.3 KiB
XML
Executable File
56 lines
1.3 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<vn-hash-param key="new">
|
|
<vn-param id="new-id"/>
|
|
</vn-hash-param>
|
|
<db-form id="iter" on-status-changed="onStatusChange">
|
|
<db-param column="text" on-changed="onBodyChange"/>
|
|
<db-model id="model" updatable="true" on-operations-done="onOperationsDone">
|
|
SELECT id, title, text, tag
|
|
FROM news WHERE id = #new
|
|
<sql-batch property="batch">
|
|
<item name="new" param="new-id"/>
|
|
</sql-batch>
|
|
</db-model>
|
|
</db-form>
|
|
</vn-group>
|
|
<div id="title">
|
|
<h1><t>AddEditNew</t></h1>
|
|
</div>
|
|
<div id="actions">
|
|
<htk-button
|
|
image="image/dark/close.svg"
|
|
tip="_Return"
|
|
on-click="onReturnClick"
|
|
showText="true"/>
|
|
<htk-button
|
|
image="image/dark/ok.svg"
|
|
tip="_Accept"
|
|
on-click="onAcceptClick"
|
|
showText="true"/>
|
|
</div>
|
|
<div id="form" class="new">
|
|
<div class="box">
|
|
<div class="form">
|
|
<div class="form-group">
|
|
<label><t>Title</t></label>
|
|
<htk-entry column="title" form="iter"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label><t>Tag</t></label>
|
|
<htk-combo column="tag" form="iter">
|
|
<db-model property="model">
|
|
SELECT name, description FROM news_tag
|
|
ORDER BY description
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div class="form-group">
|
|
<label><t>NewBody</t></label>
|
|
<textarea id="html-editor"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|