2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2015-10-14 11:51:43 +00:00
|
|
|
<vn-hash-param key="new">
|
|
|
|
<vn-param id="new-id"/>
|
|
|
|
</vn-hash-param>
|
2015-03-27 19:10:49 +00:00
|
|
|
<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">
|
2015-03-19 19:36:11 +00:00
|
|
|
SELECT id, title, text, tag
|
2015-03-06 23:33:54 +00:00
|
|
|
FROM news WHERE id = #new
|
|
|
|
<sql-batch property="batch">
|
2015-03-19 19:36:11 +00:00
|
|
|
<item name="new" param="new-id"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
|
|
|
</vn-group>
|
2015-09-11 09:37:16 +00:00
|
|
|
<div id="title">
|
|
|
|
<h1><t>AddEditNew</t></h1>
|
|
|
|
</div>
|
2015-09-16 16:11:15 +00:00
|
|
|
<div id="actions">
|
2015-09-28 09:46:24 +00:00
|
|
|
<htk-button
|
|
|
|
image="image/dark/close.svg"
|
|
|
|
tip="_Return"
|
|
|
|
on-click="onReturnClick"
|
|
|
|
showText="true"/>
|
2015-09-16 16:11:15 +00:00
|
|
|
<htk-button
|
|
|
|
image="image/dark/ok.svg"
|
|
|
|
tip="_Accept"
|
|
|
|
on-click="onAcceptClick"
|
|
|
|
showText="true"/>
|
2015-09-11 09:37:16 +00:00
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div id="form" class="new">
|
|
|
|
<div class="box">
|
|
|
|
<div class="form">
|
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>Title</t></label>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-entry column="title" form="iter"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>Tag</t></label>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-combo column="tag" form="iter">
|
2015-03-06 23:33:54 +00:00
|
|
|
<db-model property="model">
|
|
|
|
SELECT name, description FROM news_tag
|
|
|
|
ORDER BY description
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-06-30 12:06:19 +00:00
|
|
|
<label><t>NewBody</t></label>
|
2015-03-06 23:33:54 +00:00
|
|
|
<textarea id="html-editor"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|