1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-15 00:24:09 +01:00
fab-manager/app/frontend/templates/admin/projects/materials.html

39 lines
1.5 KiB
HTML
Raw Normal View History

2023-11-27 16:21:07 +01:00
<button type="button" class="fab-button is-secondary m-b m-t" ng-click="addComponent()" translate>{{ 'app.admin.projects.add_a_material' }}</button>
<table class="table">
<thead>
<tr>
<th style="width:80%" translate>{{ 'app.admin.projects.name' }}</th>
<th style="width:20%"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="component in components">
<td>
<span editable-text="component.name" e-cols="100" e-name="name" e-form="rowform" e-required>
{{ component.name }}
</span>
</td>
<td>
<!-- form -->
<form editable-form name="rowform" onbeforesave="saveComponent($data, component.id)" ng-show="rowform.$visible" class="form-buttons form-inline" shown="inserted == component">
2023-11-27 16:21:07 +01:00
<button type="submit" ng-disabled="rowform.$waiting" class="fab-button is-secondary">
<i class="fa fa-check"></i>
</button>
2023-11-27 16:21:07 +01:00
<button type="button" ng-disabled="rowform.$waiting" ng-click="cancelComponent(rowform, $index)" class="fab-button">
<i class="fa fa-times"></i>
</button>
</form>
<div class="buttons" ng-show="!rowform.$visible">
2023-11-27 16:21:07 +01:00
<button class="fab-button" ng-click="rowform.$show()">
2019-12-17 18:06:56 +01:00
<i class="fa fa-edit"></i> <span class="hidden-xs hidden-sm" translate>{{ 'app.shared.buttons.edit' }}</span>
</button>
2023-11-27 16:21:07 +01:00
<button class="fab-button is-alert" ng-click="removeComponent($index)">
<i class="fa fa-trash-o"></i>
</button>
</div>
</td>
</tr>
</tbody>
2019-12-17 18:06:56 +01:00
</table>