using FORM.dialog

This commit is contained in:
mdipierro
2012-07-28 00:56:06 -05:00
parent 4350ddaec0
commit 7650e6de95
7 changed files with 26 additions and 41 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
{{block sectionclass}}delete{{end}}
<div class="center">
<h2>{{=T('Are you sure you want to delete file "%s"?', filename)}}</h2>
<p>{{=dialog}}</p>
<div class="center">
{{=dialog}}
</div>
@@ -2,9 +2,8 @@
{{block sectionclass}}delete_plugin{{end}}
<div class="center">
<h2>{{=T('Are you sure you want to delete plugin "%s"?', plugin)}}</h2>
<p>{{=FORM(INPUT(_type='submit',_name='nodelete',_value=T('NO')))}}</p>
<p>{{=FORM(INPUT(_type='submit',_name='delete',_value=T('YES')))}}</p>
<div class="center">
{{=dialog}}
</div>
@@ -1,14 +0,0 @@
{{extend 'layout.html'}}
{{block sectionclass}}upgrade{{end}}
<h2>{{=T('web2py downgrade')}}</h2>
<p class="center"><strong class="att">{{=T('ATTENTION:')}}</strong> {{=T('This is an experimental feature and it needs more testing. If you decide to downgrade you do it at your own risk')}}<br />
{{=T('If start the downgrade, be patient, it may take a while to rollback')}}</p>
<div class="center">
{{=FORM(INPUT(_type='submit',_name='nodowngrade',_value=T('Cancel')), _class='inline')}}
{{=FORM(INPUT(_type='submit',_name='downgrade',_value=T('Downgrade')), _class='inline')}}
</div>
@@ -1,10 +1,7 @@
{{extend 'layout.html'}}
<center>
<h2>{{=T('Are you sure you want to uninstall application "%s"?', app)}}</h2>
<table><tr>
<td>{{=FORM(INPUT(_type='submit',_name='nodelete',_value=T('Abort')))}}</td>
<td>{{=FORM(INPUT(_type='submit',_name='delete',_value=T('Uninstall')))}}</td>
</tr></table>
</center>
<div class="center">
{{=dialog}}
</div>
@@ -8,7 +8,6 @@
{{=T('If start the upgrade, be patient, it may take a while to download')}}</p>
<div class="center">
{{=FORM(INPUT(_type='submit',_name='noupgrade',_value=T('Cancel')), _class='inline')}}
{{=FORM(INPUT(_type='submit',_name='upgrade',_value=T('Upgrade')), _class='inline')}}
{{=dialog}}
</div>