<label for="invoices_form" class="left_header"><?php _e("Gravity Form", "invoices"); ?> <?php gform_tooltip("invoices_gravity_form"); ?> </label> <select id="invoices_form" name="invoices_form" onchange="SelectForm(jQuery(this).val());" required> <option value=""><?php _e("Select a form", "invoices"); ?> </option> <?php $active_form = rgar($config, 'form_id'); $available_forms = TemplateData::get_available_forms($active_form); foreach ($available_forms as $current_form) { if (in_array(absint($current_form->id), $showform_ids)) { $d = rgar($config, 'form_id'); if (!empty($d)) { $selected = absint($current_form->id) == rgar($config, 'form_id') ? 'selected="selected" ' : 'disabled'; } else { $selected = ""; } ?> <option value="<?php echo absint($current_form->id); ?> " <?php echo $selected;
<div class="margin_vertical_10 "> <?php if ($validation_error) { ?> <span><?php _e('There was an issue saving your feed. Please address the errors below and try again.'); ?> </span> <?php } ?> </div> <div class="table_block"> <?php $forms = TemplateData::get_available_forms(); ?> <table class="widefat " cellspacing="0"> <thead> <tr> <th scope="col" class="manage-column" style="width:25%"><?php _e("Form", "templatemerge"); ?> </th> <th scope="col" class="manage-column" style="width:25%"><?php _e("Name Field", "templatemerge"); ?> </th> <th scope="col" class="manage-column" style="width:25%"><?php _e("Email Field", "templatemerge");