Commit 76d03a4b authored by colemanw's avatar colemanw
Browse files

Rename modelListCtrl => afform

parent 73945624
......@@ -37,7 +37,7 @@
title: ts('Untitled Form'),
layout: [{
'#tag': 'af-form',
ctrl: 'modelListCtrl',
ctrl: 'afform',
'#children': []
}]
};
......@@ -54,7 +54,7 @@
"#tag": "button",
"class": 'af-button btn btn-primary',
"crm-icon": 'fa-check',
"ng-click": "modelListCtrl.submit()",
"ng-click": "afform.submit()",
"#children": [
{
"#text": "Submit"
......@@ -743,7 +743,7 @@
// TODO: Add action selector to UI
// $scope.actions = {
// "modelListCtrl.submit()": ts('Submit Form')
// "afform.submit()": ts('Submit Form')
// };
$scope.styles = _.transform(CRM.afformAdminData.styles, function(styles, val, key) {
......
<li><a href ng-click="addElement('div.af-container')">{{ ts('Add container') }}</a></li>
<li><a href ng-click="addElement('p.af-text')">{{ ts('Add text box') }}</a></li>
<li><a href ng-click="addElement('div.af-markup', {'#markup': false})">{{ ts('Add rich content') }}</a></li>
<li><a href ng-click="addElement('button.af-button.btn-primary', {'crm-icon': 'fa-check', 'ng-click': 'modelListCtrl.submit()'})">{{ ts('Add button') }}</a></li>
<li><a href ng-click="addElement('button.af-button.btn-primary', {'crm-icon': 'fa-check', 'ng-click': 'afform.submit()'})">{{ ts('Add button') }}</a></li>
<li role="separator" class="divider"></li>
<li ng-repeat="entity in editor.scope.entities">
<a href ng-click="addElement('fieldset.af-container', {'af-fieldset': entity.name})">{{ ts('Fieldset for %1', {1: entity.label}) }}</a>
......
<li><a href ng-click="addElement('div.af-container')">{{ ts('Add container') }}</a></li>
<li><a href ng-click="addElement('p.af-text')">{{ ts('Add text box') }}</a></li>
<li><a href ng-click="addElement('div.af-markup', {'#markup': false})">{{ ts('Add rich content') }}</a></li>
<li><a href ng-click="addElement('button.af-button.btn-primary', {'crm-icon': 'fa-check', 'ng-click': 'modelListCtrl.submit()'})">{{ ts('Add button') }}</a></li>
<li><a href ng-click="addElement('button.af-button.btn-primary', {'crm-icon': 'fa-check', 'ng-click': 'afform.submit()'})">{{ ts('Add button') }}</a></li>
<li role="separator" class="divider"></li>
<li af-gui-menu-item-border="node"></li>
<li af-gui-menu-item-background="node"></li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment