forked from verdnatura/hedera-web
51 lines
1.0 KiB
XML
Executable File
51 lines
1.0 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<db-form id="iter" on-status-changed="onStatusChange">
|
|
<db-model
|
|
id="model"
|
|
property="model"
|
|
updatable="true"
|
|
lot="hash"
|
|
on-operations-done="onOperationsDone">
|
|
SELECT id, title, text, tag
|
|
FROM news WHERE id = #new
|
|
</db-model>
|
|
</db-form>
|
|
<vn-param lot="iter" name="text" on-changed="onBodyChange"/>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>AddEditNew</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="ok"
|
|
tip="_Accept"
|
|
on-click="onAcceptClick"/>
|
|
<htk-bar-button
|
|
icon="close"
|
|
tip="_Return"
|
|
on-click="onReturnClick"/>
|
|
</div>
|
|
<div id="main" class="new">
|
|
<div class="card form">
|
|
<div>
|
|
<label><t>Title</t></label>
|
|
<htk-entry lot="iter" name="title"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Tag</t></label>
|
|
<htk-combo lot="iter" name="tag">
|
|
<db-model property="model">
|
|
SELECT name, description FROM news_tag
|
|
ORDER BY description
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div>
|
|
<label><t>NewBody</t></label>
|
|
<textarea id="html-editor"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|