1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/assets/templates/admin/authentications/_data_mapping.html.erb

46 lines
1.6 KiB
Plaintext

<div class="modal-header">
<h3 class="modal-title"><span translate>{{ 'data_mapping' }}</span> : {{field.local_field}}</h3>
</div>
<div class="modal-body m-lg">
<div>
<span translate>{{ 'expected_data_type' }}</span> : {{datatype}}
</div>
<form name="mappingForm">
<ng-switch on="datatype">
<!-- BOOLEAN -->
<div ng-switch-when="boolean">
<h4 translate>{{ 'transformation_rules' }}</h4>
<label for="true_value">true</label>
<input type="text"
class="form-control"
name="true_value"
id="true_value"
ng-model="transformation.rules.true_value">
<label for="false_value">false</label>
<input type="text"
class="form-control"
name="false_value"
id="false_value"
ng-model="transformation.rules.false_value">
</div>
<!-- DATE -->
<div ng-switch-when="date">
<h4 translate>{{ 'transformation_rules' }}</h4>
<label for="date_format" translate>{{ 'input_format' }}</label>
<select name="date_format"
id="date_format"
class="form-control"
ng-model="transformation.rules.format"
ng-options="format.value as format.label for format in formats.date">
</select>
</div>
</ng-switch>
</form>
</div>
<div class="modal-footer">
<!--<button class="btn btn-primary" ng-click="ok()" ng-disabled="!mappingForm.$valid" translate>{{ 'confirm' }}</button>-->
<button class="btn btn-warning" ng-click="cancel()" translate>{{ 'cancel' }}</button>
</div>