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

65 lines
1.4 KiB
XML
Raw Normal View History

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"/>
<db-form id="iter" on-status-changed="onStatusChange">
<db-model
id="model"
property="model"
updatable="true"
on-operations-done="onOperationsDone">
<custom>
SELECT id, title, text, tag
FROM news WHERE id = #new
</custom>
2015-03-06 23:33:54 +00:00
<sql-batch property="batch">
<custom>
<item name="new" param="new-id"/>
</custom>
2015-03-06 23:33:54 +00:00
</sql-batch>
</db-model>
</db-form>
<db-param form="iter" column="text" on-changed="onBodyChange"/>
2015-03-06 23:33:54 +00:00
</vn-group>
<div id="title">
<h1><t>AddEditNew</t></h1>
</div>
2015-09-16 16:11:15 +00:00
<div id="actions">
<htk-button
image="image/dark/ok.svg"
tip="_Accept"
on-click="onAcceptClick"
showText="true"/>
<htk-button
image="image/dark/close.svg"
tip="_Return"
on-click="onReturnClick"
showText="true"/>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="new">
<div class="box">
<div class="form">
<div class="form-group">
<label><t>Title</t></label>
<htk-entry form="iter" column="title"/>
2015-03-06 23:33:54 +00:00
</div>
<div class="form-group">
<label><t>Tag</t></label>
<htk-combo form="iter" column="tag">
2015-03-06 23:33:54 +00:00
<db-model property="model">
<custom>
SELECT name, description FROM news_tag
ORDER BY description
</custom>
2015-03-06 23:33:54 +00:00
</db-model>
</htk-combo>
</div>
<div class="form-group">
<label><t>NewBody</t></label>
2015-03-06 23:33:54 +00:00
<textarea id="html-editor"/>
</div>
</div>
</div>
</div>
</vn>