Commit | Line | Data |
---|---|---|
894cb44d | 1 | <div af-api4-ctrl="apiData" af-api4="['Afform', 'get', {layoutFormat: 'html', where: [['name', '=', options.name]]}]"> |
1aac4625 TO |
2 | |
3 | <div ng-if="apiData.result.length == 0"> | |
4 | {{ts('Failed to find requested form.')}} | |
5 | </div> | |
6 | ||
7 | <div ng-repeat="resultForm in apiData.result" ng-if="apiData.result.length > 0"> | |
9313f9f5 TO |
8 | <div crm-ui-debug="resultForm"></div> |
9 | ||
784141a8 TO |
10 | <div> |
11 | <a ng-href="#/">{{ts('Back')}}</a> | |
12 | | | |
894cb44d | 13 | <a af-api4-action="['Afform', 'update', {layoutFormat: 'html', where: [['name', '=', resultForm.name]], values:resultForm}]">{{ts('Save')}}</a> |
9313f9f5 TO |
14 | <span ng-if="resultForm.server_route"> |
15 | | <a target="_blank" ng-href="{{crmUrl(resultForm.server_route)}}">Open</a> | |
16 | </span> | |
784141a8 TO |
17 | </div> |
18 | ||
9313f9f5 TO |
19 | <fieldset> |
20 | <legend>{{ts('Properties')}}</legend> | |
21 | <div><label>{{ts('Name')}}:</label> {{resultForm.name}}</div> | |
e7565282 | 22 | <div><label>{{ts('Title')}}:</label> <input ng-model="resultForm.title" type="text" /></div> |
9313f9f5 TO |
23 | <div><label>{{ts('Server Router')}}:</label> <input ng-model="resultForm.server_route" type="text" /></div> |
24 | <div><label>{{ts('Description')}}:</label> <textarea ng-model="resultForm.description"></textarea></div> | |
25 | </fieldset> | |
26 | ||
27 | <fieldset> | |
28 | <legend>{{ts('Layout')}}</legend> | |
29 | <div af-monaco ng-model="resultForm.layout"></div> | |
30 | </fieldset> | |
31 | ||
1aac4625 | 32 | </div> |
fc2cb864 | 33 | |
1aac4625 | 34 | </div> |