|
11 | 11 | </tr> |
12 | 12 | </table> |
13 | 13 |
|
14 | | - <table cellpadding="0" cellspacing="0" width="100%" class="add_form_nav"> |
15 | | - <tr> |
16 | | - <td class="selected"><a href="step1.php">{$LANG.word_start}</a></td> |
17 | | - <td class="selected"><a href="step2.php">{$LANG.phrase_form_info}</a></td> |
18 | | - <td class="selected"><a href="step3.php">{$LANG.phrase_test_submission}</a></td> |
19 | | - <td class="selected"><a href="step4.php">{$LANG.phrase_database_setup}</a></td> |
20 | | - <td class="selected">{$LANG.phrase_field_types}</td> |
21 | | - <td class="unselected">{$LANG.phrase_finalize_form}</td> |
22 | | - </tr> |
23 | | - </table> |
24 | | - |
25 | | - <br /> |
26 | | - |
27 | | - <div class="subtitle underline margin_bottom_large"> |
28 | | - 5. {$LANG.phrase_field_types|upper} |
| 14 | + <table cellpadding="0" cellspacing="0" width="100%" class="add_form_nav"> |
| 15 | + <tr> |
| 16 | + <td class="selected"><a href="step1.php">{$LANG.word_start}</a></td> |
| 17 | + <td class="selected"><a href="step2.php">{$LANG.phrase_form_info}</a></td> |
| 18 | + <td class="selected"><a href="step3.php">{$LANG.phrase_test_submission}</a></td> |
| 19 | + <td class="selected"><a href="step4.php">{$LANG.phrase_database_setup}</a></td> |
| 20 | + <td class="selected">{$LANG.phrase_field_types}</td> |
| 21 | + <td class="unselected">{$LANG.phrase_finalize_form}</td> |
| 22 | + </tr> |
| 23 | + </table> |
| 24 | + |
| 25 | + <br /> |
| 26 | + |
| 27 | + <div class="subtitle underline margin_bottom_large"> |
| 28 | + 5. {$LANG.phrase_field_types|upper} |
29 | 29 | </div> |
30 | 30 |
|
31 | 31 | <div> |
32 | | - <span style="float: right"> |
33 | | - <table cellspacing="0" cellpadding="0" style="height:40px"> |
34 | | - <tr> |
35 | | - <td class="pad_left" align="center"> |
36 | | - <input type="button" id="smart_fill_button" value="{$LANG.phrase_smart_fill}" class="light_grey bold" |
37 | | - onclick="sf_ns.smart_fill()" disabled /><br /> |
38 | | - </td> |
39 | | - <td width="40" align="right"> |
40 | | - <div id="ajax_activity"><img src="{$images_url}/ajax_activity.gif" /></div> |
41 | | - <div id="ajax_no_activity" style="display:none"><img src="{$images_url}/ajax_no_activity.gif" /></div> |
42 | | - </td> |
43 | | - </tr> |
| 32 | + <span style="float: right"> |
| 33 | + <table cellspacing="0" cellpadding="0" style="height:40px"> |
| 34 | + <tr> |
| 35 | + <td class="pad_left" align="center"> |
| 36 | + <input type="button" id="smart_fill_button" value="{$LANG.phrase_smart_fill}" class="light_grey bold" |
| 37 | + onclick="sf_ns.smart_fill()" disabled /><br /> |
| 38 | + </td> |
| 39 | + <td width="40" align="right"> |
| 40 | + <div id="ajax_activity"><img src="{$images_url}/ajax_activity.gif" /></div> |
| 41 | + <div id="ajax_no_activity" style="display:none"><img src="{$images_url}/ajax_no_activity.gif" /></div> |
| 42 | + </td> |
| 43 | + </tr> |
44 | 44 | </table> |
45 | 45 | </span> |
46 | 46 | <p> |
|
53 | 53 |
|
54 | 54 | {ft_include file="messages.tpl"} |
55 | 55 |
|
56 | | - <form action="{$same_page}" method="post"> |
57 | | - <input type="hidden" name="form_id" value="{$form_id}" /> |
| 56 | + <form action="{$same_page}" method="post"> |
| 57 | + <input type="hidden" name="form_id" value="{$form_id}" /> |
58 | 58 |
|
59 | 59 | <div id="main_field_table"> |
60 | | - |
61 | | - <table class="list_table" width="100%" cellpadding="0" cellspacing="1"> |
62 | | - <tr> |
63 | | - <th>{$LANG.phrase_display_name}</th> |
| 60 | + |
| 61 | + <table class="list_table" width="100%" cellpadding="0" cellspacing="1"> |
| 62 | + <tr> |
| 63 | + <th>{$LANG.phrase_display_name}</th> |
64 | 64 | <th>{$LANG.phrase_field_type}</th> |
65 | | - <th>{$LANG.phrase_field_size}</th> |
| 65 | + <th>{$LANG.phrase_field_size}</th> |
66 | 66 | <th class="nowrap">{$LANG.phrase_action_needed}</th> |
67 | | - <th width="100" class="nowrap">{$LANG.word_options|upper}</th> |
68 | | - </tr> |
69 | | - |
70 | | - {foreach from=$form_fields item=field name=row} |
71 | | - {assign var=row_count value=$smarty.foreach.row.iteration} |
72 | | - {assign var=field_id value=$field.field_id} |
73 | | - |
74 | | - {if $field.is_system_field == "no"} |
75 | | - <tr style="{$style}"> |
76 | | - <td class="blue pad_left_small" width="180" id="field_{$field_id}_title">{$field.field_title}</td> |
| 67 | + <th width="100" class="nowrap">{$LANG.word_options|upper}</th> |
| 68 | + </tr> |
| 69 | + |
| 70 | + {foreach from=$form_fields item=field name=row} |
| 71 | + {assign var=row_count value=$smarty.foreach.row.iteration} |
| 72 | + {assign var=field_id value=$field.field_id} |
| 73 | + |
| 74 | + {if $field.is_system_field == "no"} |
| 75 | + <tr> |
| 76 | + <td class="blue pad_left_small" width="180" id="field_{$field_id}_title">{$field.field_title}</td> |
77 | 77 | <td class="pad_left_small"> |
78 | | - {* why are we passing this as a hidden field? Is it really necessary? Kind of bloats the POST request... *} |
| 78 | + {* why are we passing this as a hidden field? Is it really necessary? Kind of bloats the POST request... *} |
79 | 79 | <input type="hidden" id="field_{$field_id}_name" value="{$field.field_name}" /> |
80 | | - <div id="field_{$field_id}_type_div" class="light_grey">{$LANG.word_unknown}</div> |
| 80 | + <div id="field_{$field_id}_type_div" class="light_grey">{$LANG.word_unknown}</div> |
81 | 81 | </td> |
82 | 82 | <td> |
83 | 83 | <div id="field_{$field_id}_size_div" class="light_grey">{$LANG.word_unknown}</div> |
84 | | - </td> |
| 84 | + </td> |
85 | 85 | <td align="center" class="pad_left_small"><span id="field_{$field_id}_action" class="light_grey">—</span></td> |
86 | | - <td align="center"><span id="field_{$field_id}_options" class="light_grey">—</span></td> |
87 | | - </tr> |
88 | | - {/if} |
89 | | - {/foreach} |
90 | | - </table> |
91 | | - |
| 86 | + <td align="center"><span id="field_{$field_id}_options" class="light_grey">—</span></td> |
| 87 | + </tr> |
| 88 | + {/if} |
| 89 | + {/foreach} |
| 90 | + </table> |
| 91 | + |
92 | 92 | <table cellspacing="0" cellpadding="0" width="100%" class="margin_top_large"> |
93 | 93 | <tr> |
94 | 94 | <td width="150" valign="top"><input type="button" id="refresh_page_button" value="{$LANG.phrase_refresh_page}" onclick="sf_ns.refresh_page()" /></td> |
|
161 | 161 | </div> |
162 | 162 | <div class="clear"></div> |
163 | 163 |
|
164 | | - <p> |
| 164 | + <p> |
165 | 165 | <span style="float:right"><input type="button" value="{$LANG.phrase_update_field}" |
166 | 166 | onclick="sf_ns.update_field('review_field_options_action_needed')" /></span> |
167 | 167 | <input type="button" value="{$LANG.phrase_add_row}" onclick="sf_ns.add_field_option()" /> |
|
172 | 172 | </td> |
173 | 173 | </tr> |
174 | 174 | </table> |
175 | | - |
176 | | - <div class="margin_bottom_large pad_left_small pad_right_small" style="background-color: #efefef; border-top: 2px solid #cccccc; border-bottom: 2px solid #cccccc;"> |
177 | | - <span style="float:right"> |
178 | | - <span class="previous_field_link" id="review_field_options_previous_field_link2"></span> | |
179 | | - <span class="next_field_link" id="review_field_options_next_field_link2"></span> |
180 | | - </span> |
181 | | - <a href="#" onclick="return sf_ns.show_page('main_field_table', null)">{$LANG.phrase_back_to_field_list}</a> |
182 | | - </div> |
183 | | - |
| 175 | + |
| 176 | + <div class="margin_bottom_large pad_left_small pad_right_small" style="background-color: #efefef; border-top: 2px solid #cccccc; border-bottom: 2px solid #cccccc;"> |
| 177 | + <span style="float:right"> |
| 178 | + <span class="previous_field_link" id="review_field_options_previous_field_link2"></span> | |
| 179 | + <span class="next_field_link" id="review_field_options_next_field_link2"></span> |
| 180 | + </span> |
| 181 | + <a href="#" onclick="return sf_ns.show_page('main_field_table', null)">{$LANG.phrase_back_to_field_list}</a> |
| 182 | + </div> |
| 183 | + |
184 | 184 | </div> |
185 | 185 |
|
186 | 186 |
|
|
278 | 278 | </div> |
279 | 279 | </div> |
280 | 280 |
|
281 | | - </form> |
| 281 | + </form> |
282 | 282 |
|
283 | 283 | {foreach from=$form_urls item=url name="row"} |
284 | 284 | {assign var=row_count value=$smarty.foreach.row.iteration} |
|
311 | 311 | </ol> |
312 | 312 | {$text_add_form_field_types_multiple_fields_found8} |
313 | 313 | </div> |
314 | | - |
315 | | - <div id="upload_files_text" style="display:none"> |
316 | | - {$LANG.text_add_form_field_types_manual_upload} |
317 | | - |
318 | | - <form action="{$g_root_url}/global/code/actions.php?action=upload_scraped_pages_for_smart_fill" |
319 | | - target="upload_files_iframe" method="post" enctype="multipart/form-data" |
320 | | - onsubmit="return sf_ns.validate_upload_files(this)"> |
321 | | - <input type="hidden" name="num_pages" value="{$form_urls|@count}" /> |
322 | | - |
323 | | - <table cellspacing="0" cellpadding="0" class="margin_top margin_bottom"> |
324 | | - {foreach from=$form_urls item=url name="row"} |
325 | | - {assign var=row_count value=$smarty.foreach.row.iteration} |
326 | | - <tr> |
327 | | - <td width="90">{$LANG.phrase_form_page} {$row_count}</td> |
328 | | - <td><input type="file" name="form_page_{$row_count}" /></td> |
329 | | - </tr> |
330 | | - {/foreach} |
331 | | - <tr> |
332 | | - <td> </td> |
333 | | - <td><input type="submit" value="{$LANG.phrase_upload_files}" class="margin_top_small" /></td> |
334 | | - </tr> |
335 | | - </table> |
336 | | - </form> |
337 | | - {$LANG.text_add_form_field_types_manual_upload2} |
338 | | - </div> |
339 | | - |
340 | | - <iframe name="upload_files_iframe" id="upload_files_iframe" src="" style="width: 0px; height: 0px" frameborder="0" |
341 | | - onload="sf_ns.log_files_as_uploaded()"></iframe> |
342 | | - |
343 | | -{ft_include file='footer.tpl'} |
| 314 | + |
| 315 | + <div id="upload_files_text" style="display:none"> |
| 316 | + {$LANG.text_add_form_field_types_manual_upload} |
| 317 | + |
| 318 | + <form action="{$g_root_url}/global/code/actions.php?action=upload_scraped_pages_for_smart_fill" |
| 319 | + target="upload_files_iframe" method="post" enctype="multipart/form-data" |
| 320 | + onsubmit="return sf_ns.validate_upload_files(this)"> |
| 321 | + <input type="hidden" name="num_pages" value="{$form_urls|@count}" /> |
| 322 | + |
| 323 | + <table cellspacing="0" cellpadding="0" class="margin_top margin_bottom"> |
| 324 | + {foreach from=$form_urls item=url name="row"} |
| 325 | + {assign var=row_count value=$smarty.foreach.row.iteration} |
| 326 | + <tr> |
| 327 | + <td width="90">{$LANG.phrase_form_page} {$row_count}</td> |
| 328 | + <td><input type="file" name="form_page_{$row_count}" /></td> |
| 329 | + </tr> |
| 330 | + {/foreach} |
| 331 | + <tr> |
| 332 | + <td> </td> |
| 333 | + <td><input type="submit" value="{$LANG.phrase_upload_files}" class="margin_top_small" /></td> |
| 334 | + </tr> |
| 335 | + </table> |
| 336 | + </form> |
| 337 | + {$LANG.text_add_form_field_types_manual_upload2} |
| 338 | + </div> |
| 339 | + |
| 340 | + <iframe name="upload_files_iframe" id="upload_files_iframe" src="" style="width: 0px; height: 0px" frameborder="0" |
| 341 | + onload="sf_ns.log_files_as_uploaded()"></iframe> |
| 342 | + |
| 343 | +{ft_include file='footer.tpl'} |
0 commit comments