2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2015-12-10 13:48:43 +00:00
|
|
|
<vn-param id="new-id"/>
|
|
|
|
<vn-hash-param key="new" param="new-id"/>
|
2015-03-27 19:10:49 +00:00
|
|
|
<db-form id="iter" on-status-changed="onStatusChange">
|
2015-11-26 12:30:04 +00:00
|
|
|
<db-model
|
|
|
|
id="model"
|
|
|
|
property="model"
|
|
|
|
updatable="true"
|
|
|
|
on-operations-done="onOperationsDone">
|
|
|
|
<custom>
|
2017-04-27 08:27:39 +00:00
|
|
|
SELECT id, title, text, tag, priority
|
2015-11-26 12:30:04 +00:00
|
|
|
FROM news WHERE id = #new
|
|
|
|
</custom>
|
2015-03-06 23:33:54 +00:00
|
|
|
<sql-batch property="batch">
|
2015-11-26 12:30:04 +00:00
|
|
|
<custom>
|
|
|
|
<item name="new" param="new-id"/>
|
|
|
|
</custom>
|
2015-03-06 23:33:54 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
2015-11-26 12:30:04 +00:00
|
|
|
<db-param form="iter" column="text" on-changed="onBodyChange"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
</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">
|
2016-09-19 06:40:18 +00:00
|
|
|
<htk-bar-button
|
|
|
|
icon="close"
|
2016-01-07 12:58:29 +00:00
|
|
|
tip="_Return"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onReturnClick"/>
|
2022-05-21 21:31:56 +00:00
|
|
|
<htk-bar-button
|
|
|
|
icon="check"
|
|
|
|
tip="_Accept"
|
|
|
|
on-click="onAcceptClick"/>
|
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-11-26 12:30:04 +00:00
|
|
|
<htk-entry form="iter" column="title"/>
|
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-11-26 12:30:04 +00:00
|
|
|
<htk-combo form="iter" column="tag">
|
2015-03-06 23:33:54 +00:00
|
|
|
<db-model property="model">
|
2015-11-26 12:30:04 +00:00
|
|
|
<custom>
|
2017-12-20 11:34:04 +00:00
|
|
|
SELECT name, description FROM newsTag
|
2015-11-26 12:30:04 +00:00
|
|
|
ORDER BY description
|
|
|
|
</custom>
|
2015-03-06 23:33:54 +00:00
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
2017-04-27 08:27:39 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Priority</t></label>
|
|
|
|
<htk-entry form="iter" column="priority"/>
|
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<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>
|