Alpha V2.5.9b
This commit is contained in:
parent
dbe9be88d0
commit
4e7d2f9aa7
@ -967,7 +967,7 @@ elseif ($tab === "units") {
|
||||
<div class="form-group" style="flex: 1; min-width: 200px;">
|
||||
<label>Faction</label>
|
||||
<select name="faction_id" id="unit_faction_id">
|
||||
<option value="">Aucune (Neutre)</option>
|
||||
|
||||
<?php foreach ($factions_list as $f): ?>
|
||||
<option value="<?php echo $f['id']; ?>"><?php echo htmlspecialchars($f['name']); ?></option>
|
||||
<?php endforeach; ?>
|
||||
@ -1066,7 +1066,7 @@ elseif ($tab === "units") {
|
||||
</td>
|
||||
<td>
|
||||
<span style="color: #88c0d0; font-weight: bold; font-size: 12px;">
|
||||
<?php echo $unit['faction_name'] ? htmlspecialchars($unit['faction_name']) : 'Neutre'; ?>
|
||||
<?php echo htmlspecialchars($unit['faction_name']); ?>
|
||||
</span>
|
||||
</td>
|
||||
<td style="font-size: 11px;">
|
||||
@ -2231,7 +2231,7 @@ elseif ($tab === "units") {
|
||||
document.getElementById('unit_id').value = data.id;
|
||||
document.getElementById('unit_name').value = data.name;
|
||||
document.getElementById('unit_slug').value = data.slug;
|
||||
document.getElementById('unit_faction_id').value = data.faction_id || "";
|
||||
document.getElementById('unit_faction_id').value = data.faction_id;
|
||||
document.getElementById('unit_points_per_hit').value = data.points_per_hit;
|
||||
document.getElementById('unit_can_be_destroyed').checked = data.can_be_destroyed == 1;
|
||||
document.getElementById('unit_can_be_captured').checked = data.can_be_captured == 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user