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 | 10 | <div> |
7585cf5b | 11 | <a ng-href="#!/">{{ts('Back')}}</a> |
784141a8 | 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> |
d69ba1b4 TO |
23 | <div><label>{{ts('Server Route')}}:</label> <input ng-model="resultForm.server_route" type="text" /></div> |
24 | <div><label>{{ts('Permission')}}:</label> <input ng-model="resultForm.permission" type="text" /></div> | |
9313f9f5 TO |
25 | <div><label>{{ts('Description')}}:</label> <textarea ng-model="resultForm.description"></textarea></div> |
26 | </fieldset> | |
27 | ||
28 | <fieldset> | |
29 | <legend>{{ts('Layout')}}</legend> | |
30 | <div af-monaco ng-model="resultForm.layout"></div> | |
31 | </fieldset> | |
32 | ||
1aac4625 | 33 | </div> |
fc2cb864 | 34 | |
1aac4625 | 35 | </div> |