2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2022-05-24 21:11:12 +00:00
|
|
|
<db-form id="iter" on-status-changed="this.onStatusChange()">
|
2015-11-26 12:30:04 +00:00
|
|
|
<db-model
|
|
|
|
id="model"
|
|
|
|
property="model"
|
|
|
|
updatable="true"
|
2022-05-30 01:30:33 +00:00
|
|
|
lot="hash"
|
2022-05-24 21:11:12 +00:00
|
|
|
on-operations-done="this.onOperationsDone()">
|
2022-05-30 01:30:33 +00:00
|
|
|
SELECT id, title, text, tag, priority, image
|
|
|
|
FROM news WHERE id = #new
|
2015-03-06 23:33:54 +00:00
|
|
|
</db-model>
|
|
|
|
</db-form>
|
2022-05-24 21:11:12 +00:00
|
|
|
<db-param form="iter" column="text" on-changed="this.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"
|
2022-07-15 05:55:18 +00:00
|
|
|
on-click="this.onReturnClick()"/>
|
2022-05-21 21:31:56 +00:00
|
|
|
<htk-bar-button
|
|
|
|
icon="check"
|
|
|
|
tip="_Accept"
|
2022-05-24 21:11:12 +00:00
|
|
|
on-click="this.onAcceptClick()"/>
|
2015-09-11 09:37:16 +00:00
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div id="form" class="new">
|
2022-05-28 00:37:24 +00:00
|
|
|
<div class="box form vn-w-sm">
|
|
|
|
<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">
|
2022-05-30 01:30:33 +00:00
|
|
|
SELECT name, description FROM newsTag
|
|
|
|
ORDER BY description
|
2022-05-28 00:37:24 +00:00
|
|
|
</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>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|