hedera-web/forms/news/new/ui.xml

51 lines
1.0 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<vn-group>
<db-form id="iter" on-status-changed="onStatusChange">
<db-model
id="model"
property="model"
updatable="true"
2017-04-07 11:00:33 +00:00
lot="hash"
on-operations-done="onOperationsDone">
2017-04-07 11:00:33 +00:00
SELECT id, title, text, tag
FROM news WHERE id = #new
2015-03-06 23:33:54 +00:00
</db-model>
</db-form>
2017-04-07 11:00:33 +00:00
<vn-param lot="iter" name="text" on-changed="onBodyChange"/>
2015-03-06 23:33:54 +00:00
</vn-group>
2017-03-17 12:42:10 +00:00
<h1 id="title">
<t>AddEditNew</t>
</h1>
2015-09-16 16:11:15 +00:00
<div id="actions">
2016-09-19 06:40:18 +00:00
<htk-bar-button
icon="ok"
2015-09-16 16:11:15 +00:00
tip="_Accept"
2016-09-19 06:40:18 +00:00
on-click="onAcceptClick"/>
<htk-bar-button
icon="close"
tip="_Return"
2016-09-19 06:40:18 +00:00
on-click="onReturnClick"/>
</div>
2017-03-23 16:20:51 +00:00
<div id="main" class="new">
2016-12-23 08:57:49 +00:00
<div class="card form">
<div>
<label><t>Title</t></label>
2017-04-07 11:00:33 +00:00
<htk-entry lot="iter" name="title"/>
2016-12-23 08:57:49 +00:00
</div>
<div>
<label><t>Tag</t></label>
2017-04-07 11:00:33 +00:00
<htk-combo lot="iter" name="tag">
2016-12-23 08:57:49 +00:00
<db-model property="model">
2017-04-07 11:00:33 +00:00
SELECT name, description FROM news_tag
ORDER BY description
2016-12-23 08:57:49 +00:00
</db-model>
</htk-combo>
</div>
<div>
<label><t>NewBody</t></label>
<textarea id="html-editor"/>
2015-03-06 23:33:54 +00:00
</div>
</div>
</div>
</vn>