2019-12-17 18:06:56 +01:00
|
|
|
<button type="button" class="btn btn-warning m-t m-b" ng-click="addLicence()" translate>{{ 'app.admin.project_elements.add_a_new_licence' }}</button>
|
2016-08-04 12:08:33 +02:00
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-12-17 18:06:56 +01:00
|
|
|
<th style="width:30%" translate>{{ 'app.admin.project_elements.name' }}</th>
|
|
|
|
<th style="width:50%" class="hidden-xs" translate>{{ 'app.admin.project_elements.description' }}</th>
|
2016-08-04 12:08:33 +02:00
|
|
|
<th style="width:20%"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="licence in licences">
|
|
|
|
<td>
|
|
|
|
<span editable-textarea="licence.name" e-rows="5" e-cols="100" e-name="name" e-form="rowform" e-required>
|
|
|
|
{{ licence.name }}
|
|
|
|
</span>
|
|
|
|
</td>
|
2016-09-27 09:55:24 +02:00
|
|
|
<td class="hidden-xs">
|
2016-08-04 12:08:33 +02:00
|
|
|
<span editable-textarea="licence.description" e-rows="5" e-cols="100" e-name="description" e-form="rowform" e-required>
|
|
|
|
<div class="text-sm">{{ licence.description }}</div>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!-- form -->
|
|
|
|
<form editable-form name="rowform" onbeforesave="saveLicence($data, licence.id)" ng-show="rowform.$visible" class="form-buttons form-inline" shown="inserted == licence">
|
|
|
|
<button type="submit" ng-disabled="rowform.$waiting" class="btn btn-warning">
|
|
|
|
<i class="fa fa-check"></i>
|
|
|
|
</button>
|
|
|
|
<button type="button" ng-disabled="rowform.$waiting" ng-click="cancelLicence(rowform, $index)" class="btn btn-default">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<div class="buttons" ng-show="!rowform.$visible">
|
|
|
|
<button class="btn btn-default" 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>
|
2016-08-04 12:08:33 +02:00
|
|
|
</button>
|
|
|
|
<button class="btn btn-danger" ng-click="removeLicence($index)">
|
|
|
|
<i class="fa fa-trash-o"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2019-12-17 18:06:56 +01:00
|
|
|
</table>
|