aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-03 17:34:01 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-03 17:34:01 +0100
commit001572f76425a1fdb6621d26dae875438152cc97 (patch)
treea5411e8f4fce3ce75e694bce5f42d2393dafc1e0 /phpBB
parent3c5eb8bcadb9af8e87525ea6dbf8b5ffc3e7bb26 (diff)
downloadforums-001572f76425a1fdb6621d26dae875438152cc97.tar
forums-001572f76425a1fdb6621d26dae875438152cc97.tar.gz
forums-001572f76425a1fdb6621d26dae875438152cc97.tar.bz2
forums-001572f76425a1fdb6621d26dae875438152cc97.tar.xz
forums-001572f76425a1fdb6621d26dae875438152cc97.zip
[ticket/11166] Add ajaxify support to normal ACP confirm_box()
Currently no custom template from the ACP uses AJAX support. PHPBB3-11166
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/adm/style/admin.css21
-rw-r--r--phpBB/adm/style/confirm_body.html14
-rw-r--r--phpBB/adm/style/overall_footer.html4
3 files changed, 32 insertions, 7 deletions
diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css
index 8551c952c7..f7a7f9f9bf 100644
--- a/phpBB/adm/style/admin.css
+++ b/phpBB/adm/style/admin.css
@@ -1098,12 +1098,13 @@ input.disabled {
border: 1px solid #999999;
position: fixed;
display: none;
- top: 100px;
- left: 35%;
- width: 30%;
+ top: 150px;
+ left: 25%;
+ width: 50%;
z-index: 50;
padding: 25px;
padding: 0 25px 20px 25px;
+ text-align: left;
}
.phpbb_alert .alert_close {
@@ -1127,6 +1128,20 @@ input.disabled {
padding-bottom: 8px;
}
+.phpbb_alert label {
+ display: block;
+ margin: 8px 0;
+ padding-bottom: 8px;
+}
+
+.phpbb_alert div.alert_text > p,
+.phpbb_alert div.alert_text > label,
+.phpbb_alert div.alert_text > select,
+.phpbb_alert div.alert_text > textarea,
+.phpbb_alert div.alert_text > input {
+ font-size: 0.9em;
+}
+
#darkenwrapper {
display: none;
}
diff --git a/phpBB/adm/style/confirm_body.html b/phpBB/adm/style/confirm_body.html
index 2fbb1a60d7..d0360d1b3a 100644
--- a/phpBB/adm/style/confirm_body.html
+++ b/phpBB/adm/style/confirm_body.html
@@ -1,3 +1,15 @@
+<!-- IF S_AJAX_REQUEST -->
+
+ <h3>{MESSAGE_TITLE}</h3>
+ <p>{MESSAGE_TEXT}</p>
+
+ <fieldset class="submit-buttons">
+ <input type="button" name="confirm" value="{L_YES}" class="button2" />&nbsp;
+ <input type="button" name="cancel" value="{L_NO}" class="button2" />
+ </fieldset>
+
+<!-- ELSE -->
+
<!-- INCLUDE overall_header.html -->
<form id="confirm" method="post" action="{S_CONFIRM_ACTION}">
@@ -14,7 +26,7 @@
</div>
</fieldset>
-
</form>
<!-- INCLUDE overall_footer.html -->
+<!-- ENDIF -->
diff --git a/phpBB/adm/style/overall_footer.html b/phpBB/adm/style/overall_footer.html
index 2bc9ee52d7..bac0cd6625 100644
--- a/phpBB/adm/style/overall_footer.html
+++ b/phpBB/adm/style/overall_footer.html
@@ -29,9 +29,7 @@
</div>
<div id="phpbb_confirm" class="phpbb_alert">
<a href="#" class="alert_close"></a>
- <p class="alert_text"></p>
- <input type="button" class="button1" value="{L_YES}" />&nbsp;
- <input type="button" class="button2" value="{L_NO}" />
+ <div class="alert_text"></div>
</div>
</div>
</div>