<input type="text" name="name" class="glm-form-text-input">
</td>
</tr>
+ <!--
<tr>
<th>Description:</th>
<td>
<input type="text" name="short_descr" class="glm-form-text-input">
</td>
</tr>
+ -->
<tr>
<td colspan="2">
<table style="width: 100%;">
<input id="editAmenityName" type="text" name="name" class="glm-form-text-input">
</td>
</tr>
+ <!--
<tr>
<th>Description:</th>
<td>
<input id="editAmenityShortDescr" type="text" name="short_descr" class="glm-form-text-input">
</td>
</tr>
+ -->
<tr>
<td colspan="2">
<table style="width: 100%;">
<tr>
<th>Amenity</th>
<th>Used With</th>
+ <th>Groups</th>
+ <!--
<th>Description</th>
<th>Short Description</th>
+ -->
<th> </th>
</tr>
</thead>
<td id="editAmenityRefType_{$t.id}">
{$t.ref_type.name}
</td>
+ <td id="editAmenityGroups">
+ {foreach $t.groups as $group}
+ {$groups[$group.group_id].name}
+ {/foreach}
+ </td>
+ <!--
<td id="editAmenityDescr_{$t.id}">
{$t.descr}
</td>
<td id="editAmenityShortDescr_{$t.id}">
{$t.short_descr}
</td>
+ -->
<td>
<div class="deleteAmenityButton button button-secondary glm-button-small glm-right" data-amenityID="{$t.id}">Delete</div>
</td>
$('#editAmenityName').val(amenityName.trim());
$('#editAmenityRef').val(amenityRefTypeID);
$('#editAmenityUsesValue').prop('checked', amenityUsesValue);
- $('#editAmenityDescr').val(amenityDescr.trim());
- $('#editAmenityShortDescr').val(amenityShortDescr.trim());
+ //$('#editAmenityDescr').val(amenityDescr.trim());
+ //$('#editAmenityShortDescr').val(amenityShortDescr.trim());
$('.amenityGroup').each(function(){
$(this).prop('checked', false);
});