Commit b855fb64 authored by 神楽坂玲奈's avatar 神楽坂玲奈

install modal

parent 1d9e9193
...@@ -54,17 +54,22 @@ ...@@ -54,17 +54,22 @@
<th scope="row">{{i + 1}}</th> <th scope="row">{{i + 1}}</th>
<td>{{searchApp(mod.id).name[searchApp(mod.id).locales[0]]}}</td> <td>{{searchApp(mod.id).name[searchApp(mod.id).locales[0]]}}</td>
<td>{{mod.type}}</td> <td>{{mod.type}}</td>
<td *ngIf="checkInstall(mod.id)"><button type="button" class="btn btn-danger btn-sm">卸载</button></td> <td *ngIf="checkInstall(mod.id)">
<td *ngIf="!checkInstall(mod.id)"><button (click)="install()" type="button" class="btn btn-primary btn-sm">安装</button></td> <button type="button" class="btn btn-danger btn-sm">卸载</button>
</td>
<td *ngIf="!checkInstall(mod.id)">
<button (click)="install()" type="button" class="btn btn-primary btn-sm">安装</button>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="install-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="install-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <form class="modal-content" (ngSubmit)="install()">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
...@@ -72,12 +77,36 @@ ...@@ -72,12 +77,36 @@
<h4 class="modal-title" id="myModalLabel">安装 {{name}}</h4> <h4 class="modal-title" id="myModalLabel">安装 {{name}}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
... <p>即将开始安装 {{name}}</p>
<!-- 安装位置只在 windows 下可选 -->
<h4>安装位置</h4>
<h4>快捷方式</h4>
<div class="checkbox">
<label>
<input type="checkbox" (ngModel)="shortcut.application">
创建应用程序快捷方式
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" (ngModel)="shortcut.desktop">
创建桌面快捷方式
</label>
</div>
<h4>附加内容</h4>
<!--<div ng-repeat="(id, ref) in references" class="checkbox">
<label>
<input type="checkbox" (ngModel)="ref.install" (ngModel)="ref.disabled">
{{apps[id].name}}
</label>
</div>-->
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary">安装</button> <button type="button" class="btn btn-primary">安装</button>
</div> </div>
</div> </form>
</div> </div>
</div> </div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment