Update the alert to a warning icon

Fixes #7661

Feedback in review as follows:
For such a large section, I think just displaying a warning icon near the top
of the section would be fine instead of wrapping the entire block in an alert
class.
This commit is contained in:
Martin Hickey 2016-09-19 10:37:14 +01:00
parent ee698c4f0b
commit 8be70d4c61

View file

@ -24,6 +24,25 @@
</p>
</div>
<div ng-if="editor.conflictDescriptionsLength > 0">
<p>
<i class="fa fa-warning text-warning"></i>
<strong>Field Type Conflict:</strong>
The type of this field changes across indices. It is unavailable for many analysis functions. The indices per type are as follows:
<table class="table">
<thead>
<th> Field Type </th>
<th> Index Names </th>
</thead>
<tbody>
<tr ng-repeat="(type, indices) in editor.field.conflictDescriptions">
<td>{{type}}</td> <td>{{indices}}</td>
</tr>
</tbody>
</table>
</p>
</div>
<div ng-if="editor.field.scripted" class="form-group">
<label>Language</label>
<select
@ -177,21 +196,6 @@
</div>
<div ng-if="editor.conflictDescriptionsLength > 0" class="alert alert-warning">
The type of this field changes across indices. It is unavailable for many analysis functions. The indices per type are as follows:
<table class="table">
<thead>
<th> Field Type </th>
<th> Index Names </th>
</thead>
<tbody>
<tr ng-repeat="(type, indices) in editor.field.conflictDescriptions">
<td>{{type}}</td> <td>{{indices}}</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group">
<button
type="button"