Portal : Added a new mode "apply_stimulus" for forms. This allows to add flags to attributes that are prompt during transitions.

SVN:trunk[4378]
This commit is contained in:
Guillaume Lajarige
2016-09-05 14:29:05 +00:00
parent 8feef7fd8a
commit b2fa9c468f
3 changed files with 119 additions and 3 deletions

View File

@@ -1321,6 +1321,21 @@
<mode id="view"/>
</modes>
</form>
<form id="ticket-apply-stimulus">
<class>Ticket</class>
<fields />
<twig>
<div>
<div class="form_field" data-field-id="team_id" data-field-flags="read_only">
</div>
<div class="form_field" data-field-id="agent_id" data-field-flags="read_only">
</div>
</div>
</twig>
<modes>
<mode id="apply_stimulus"/>
</modes>
</form>
<form id="service-view">
<class>Service</class>
<fields></fields>