Commit | Line | Data |
---|---|---|
9313f9f5 | 1 | <div aff-api4-ctrl="apiData" aff-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 | | | |
6a064c79 | 13 | <a aff-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> | |
22 | <div><label>{{ts('Server Router')}}:</label> <input ng-model="resultForm.server_route" type="text" /></div> | |
23 | <div><label>{{ts('Description')}}:</label> <textarea ng-model="resultForm.description"></textarea></div> | |
24 | </fieldset> | |
25 | ||
26 | <fieldset> | |
27 | <legend>{{ts('Layout')}}</legend> | |
28 | <div af-monaco ng-model="resultForm.layout"></div> | |
29 | </fieldset> | |
30 | ||
1aac4625 | 31 | </div> |
fc2cb864 | 32 | |
1aac4625 | 33 | </div> |