<td>
<select id="{$fid}_NewFieldType" name="field_type">
<option value=""></option>
- {foreach $field_types as $val => $label}
- <option value="{$val}">{$label}</option>
- {/foreach}
+ <option value="text">Single Line Text Field</option>
+ <option value="textarea">Multi-line Text Area</option>
+ <option value="checkbox">Checkbox</option>
+<!--
+ <option value="integer">Integer Field</option>
+ <option value="float">Floating Point Number Field</option>
+ -->
</select>
</td>
</tr>
<input type="submit" value="Update this Field">
</div>
-{* Update and error messages *}
-<table class="glm-admin-table glm-settings-table{if $option2!='settings'} glm-hidden{/if}">
- <tr>
- <td colspan="2">
- {if $settingsUpdated}<h2 class="glm-notice glm-flash-updated glm-right">Settings Updated</h2>{/if}
- {if $settingsUpdateError}<span class="glm-error glm-flash-updated glm-right">Settings Update Error</span>{/if}
- <h2>Custom Fields</h2>
- </td>
- </tr>
-</table>
-
{* Fields Table *}
-<table class="glm-admin-table glm-settings-table" style="width: 100%">
- <thead>
- <tr>
+<table class="" style="width: 100%; background-color: #fff; border: 1px solid black; l">
+ <tr style="background-color: #ddd;">
<th>Field Name</th>
<th>Type</th>
<th>Required</th>
- <th>
- <div id="{$fid}_newFieldButton" class="button button-primary glm-button-small">Add a Custom Field</div>
-
-
+ <th width="10%">
+ <div id="{$fid}_newFieldButton" class="button button-primary glm-button-small">Add a Custom Field</div>
+
</th>
</tr>
- </thead>
<tbody id="{$fid}_FieldsListBody">
{if $haveCustomFields}
{foreach $custom_fields as $t}
- <tr id="FieldRow_{$t.id}">
- <td>{$t.field_name}</td>
+ <tr class="FieldRow_{$t.id}">
+ <th style="font-weight: bold;">{$t.field_name}</th>
<td id="editFieldType_{$t.id}">
{$t.field_type.name}
</td>
<div class="{$fid}_DeleteFieldButton button button-secondary glm-button-small" data-fieldId="{$t.id}">Delete</div>
</td>
</tr>
- <tr><td colspan="4" style="padding-left: 2rem;">Prompt: {$t.field_prompt}</td></tr>
+ <tr class="FieldRow_{$t.id}"><td style="border-bottom: 1px solid black;" colspan="4" style="padding-left: 2rem;">Prompt: {$t.field_prompt}</td></tr>
{/foreach}
- {else}
- <tr id="{$fid}_noCustomFieldsNotice" class="alternate"><td colspan="2">(no custom fields listed)</td></tr>
{/if}
</tbody>
</table>
} else {
$('#{$fid}_FieldsListBody').append(fieldHtml);
- $('#{$fid}_noCustomFieldsNotice').hide();
$("#{$fid}_NewFieldDialog").dialog("close");
// Need to rebind edit field buttons
dataType: 'text'
})
.done( function(deleted) {
- $('#FieldRow_' + {$fid}_deleteId).remove();
+ $('.FieldRow_' + {$fid}_deleteId).remove();
$("#{$fid}_DeleteFieldDialog").dialog("close");
});