mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-07-17 01:27:17 +02:00
39 lines
1 KiB
HTML
39 lines
1 KiB
HTML
<div ng-if="$ctrl.categoryDefinitions === null">
|
|
Loading...
|
|
</div>
|
|
<form ng-if="$ctrl.categoryDefinitions" crm-ui-id-scope>
|
|
|
|
<button ng-click="$ctrl.catmap.unshift({groupID: '', name:''})">
|
|
<i class="crm-i fa-plus"></i> Add category
|
|
</button>
|
|
|
|
<!-- I can see use of
|
|
presentation order/grouping
|
|
short title, "amazing"
|
|
longer title/description. "regular givers who..."
|
|
-->
|
|
|
|
<ol class="crm-catmap">
|
|
<li ng-repeat="(idx, row) in $ctrl.categoryDefinitions">
|
|
|
|
<span style="color: {{row.color ? '#' + row.color : 'inherit'}};" >
|
|
<i ng-if="row.icon" class="crm-i {{row.icon}}" ></i>
|
|
{{row.label}}
|
|
</span>
|
|
|
|
<span>
|
|
<button ng-click="$ctrl.deleteRow(idx)">
|
|
<i class="fa-trash crm-i"></i> Delete
|
|
</button>
|
|
</span>
|
|
</li>
|
|
</ol>
|
|
|
|
<p>
|
|
<button ng-click="$ctrl.save()"><i class="crm-i fa-save"></i> Save</button>
|
|
</p>
|
|
<div ng-if="$ctrl.saved" class="help">
|
|
Categories saved. Contacts will be updated shortly (when the next Scheduled
|
|
Job run happens).
|
|
</div>
|
|
</form>
|