diff options
Diffstat (limited to 'site/app/views/developers/uploader.thtml')
-rw-r--r-- | site/app/views/developers/uploader.thtml | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/site/app/views/developers/uploader.thtml b/site/app/views/developers/uploader.thtml index ff38933..d294816 100644 --- a/site/app/views/developers/uploader.thtml +++ b/site/app/views/developers/uploader.thtml @@ -113,10 +113,31 @@ <?php endif; ?> <div id="file-upload"<?=($showAgreement ? ' style="display: none;"' : '')?>> + <form id="upload-form" method="post" enctype="multipart/form-data" action="<?=$html->url('/developers/json/fileupload/'.$type)?>" target="upload-frame" onsubmit="return upload.uploadFile();"> + <h3><?=___('devcp_versions_edit_header_compat')?></h3> + <p><?=sprintf(___('devcp_versions_edit_adjust'), '/pages/appversions')?></p> + <table id="edit-versions-targetapps-table" class="pretty-table"><tbody> + <?php + echo '<td class="appname">'.$app_name.'</td>'; + echo '<td><select name="data[appversion_min]">'; + $max = 0; + foreach ($app_versions as $i) { + echo '<option value="'.$i['Appversion']['id'].'"'.($max == 0 ? ' selected="selected"' : '').'>'.$i['Appversion']['version'].'</option>'; + $max = $i['Appversion']['id']; + } + echo '</select>'; + echo ' — '; + echo '<select name="data[appversion_max]">'; + foreach ($app_versions as $i) { + echo '<option value="'.$i['Appversion']['id'].'"'.($max == $i['Appversion']['id'] ? ' selected="selected"' : '').'>'.$i['Appversion']['version'].'</option>'; + } + echo '</select></td>'; + ?> + </tbody></table> + <h3><?=___('devcp_uploader_header_upload')?></h3> <p><?=___('devcp_uploader_p_upload')?> <br /> - <form id="upload-form" method="post" enctype="multipart/form-data" action="<?=$html->url('/developers/json/fileupload/'.$type)?>" target="upload-frame" onsubmit="return upload.uploadFile();"> <?=$html->hiddenSession();?> <?=(!empty($addon_id) ? '<input type="hidden" name="data[Addon][id]" value="'.$addon_id.'" />' : '')?> <?=(!empty($version_id) ? '<input type="hidden" name="data[Version][id]" value="'.$version_id.'" />' : '')?> |