|
@@ -90,23 +90,25 @@ $preview_field_names = [
|
|
|
</div>
|
|
|
<?php } ?>
|
|
|
|
|
|
-<table class="table table-bordered">
|
|
|
- <tbody>
|
|
|
+<table class="table table-bordered table-striped table-edit">
|
|
|
+ <thead>
|
|
|
<tr>
|
|
|
- <th>Property</th>
|
|
|
+ <th></th>
|
|
|
<?php if(isset($data['original'])) { ?>
|
|
|
<th style="min-width: 50%" class="text-center">Old/Current</th>
|
|
|
<?php } ?>
|
|
|
<th style="min-width: 50%" class="text-center">New/Edit</th>
|
|
|
</tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
<?php foreach($field_names as $field => $name) { ?>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
+ <th scope="row">
|
|
|
<?php echo raw($name) ?>
|
|
|
- </td>
|
|
|
+ </th>
|
|
|
<?php if(isset($data['original']) && $data[$field] === null) { ?>
|
|
|
|
|
|
- <td colspan="2" class="text-center active">
|
|
|
+ <td colspan="2" class="text-center">
|
|
|
<?php output_field($data['original'][$field], $field, $categories) ?>
|
|
|
</td>
|
|
|
|
|
@@ -126,18 +128,25 @@ $preview_field_names = [
|
|
|
<?php } ?>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
|
- <?php foreach($data['previews'] as $i => $preview) if(isset($preview['edit_preview_id'])) { ?>
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+<?php foreach($data['previews'] as $i => $preview) if(isset($preview['edit_preview_id'])) { ?>
|
|
|
+ <table class="table table-bordered table-striped table-edit">
|
|
|
+ <thead>
|
|
|
<tr>
|
|
|
- <th colspan="3" class="text-center">
|
|
|
+ <th></th>
|
|
|
+ <th colspan="2" class="text-center">
|
|
|
Preview
|
|
|
<span class="label label-danger"><?php output_field(ucfirst($preview['operation']), 'preview_operation') ?></span>
|
|
|
</th>
|
|
|
</tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
<?php foreach($preview_field_names as $field => $name) { ?>
|
|
|
<tr>
|
|
|
- <td>
|
|
|
+ <th scope="row">
|
|
|
<?php echo raw($name) ?>
|
|
|
- </td>
|
|
|
+ </th>
|
|
|
<?php if(isset($preview['original']) && $preview['operation'] != "remove" && ($preview[$field] === null || $preview[$field] === $preview['original'][$field])) { ?>
|
|
|
|
|
|
<td colspan="2" class="text-center active">
|
|
@@ -169,9 +178,9 @@ $preview_field_names = [
|
|
|
<?php } ?>
|
|
|
</tr>
|
|
|
<?php } ?>
|
|
|
- <?php } ?>
|
|
|
- </tbody>
|
|
|
-</table>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+<?php } ?>
|
|
|
<?php if(isset($user)) { ?>
|
|
|
<?php if($user['type'] >= $constants['user_type']['moderator']) { ?>
|
|
|
<?php if($data['status'] == 'new') { ?>
|
|
@@ -191,7 +200,7 @@ $preview_field_names = [
|
|
|
|
|
|
<?php if($data['asset_id'] == -1) { ?>
|
|
|
<label class="control-label col-md-2" for="support_level">Support level:</label>
|
|
|
-
|
|
|
+
|
|
|
<div class="col-md-10">
|
|
|
<select id="support_level" name="support_level" class="form-control btn btn-default">
|
|
|
<?php foreach($constants['support_level'] as $id => $name) if(is_int($id)) { ?>
|
|
@@ -215,7 +224,7 @@ $preview_field_names = [
|
|
|
<div class="form-group col-md-11">
|
|
|
<div class="input-group col-md-12">
|
|
|
<label class="control-label col-md-2" for="reason" required>Reason:</label>
|
|
|
-
|
|
|
+
|
|
|
<div class="col-md-10">
|
|
|
<textarea class="form-control" id="reason" name="reason" rows="4"></textarea>
|
|
|
</div>
|