mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11166] Add ajaxify support to normal ACP confirm_box()
Currently no custom template from the ACP uses AJAX support. PHPBB3-11166
This commit is contained in:
parent
3c5eb8bcad
commit
001572f764
3 changed files with 32 additions and 7 deletions
|
@ -1098,12 +1098,13 @@ input.disabled {
|
||||||
border: 1px solid #999999;
|
border: 1px solid #999999;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: none;
|
display: none;
|
||||||
top: 100px;
|
top: 150px;
|
||||||
left: 35%;
|
left: 25%;
|
||||||
width: 30%;
|
width: 50%;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
padding: 25px;
|
padding: 25px;
|
||||||
padding: 0 25px 20px 25px;
|
padding: 0 25px 20px 25px;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phpbb_alert .alert_close {
|
.phpbb_alert .alert_close {
|
||||||
|
@ -1127,6 +1128,20 @@ input.disabled {
|
||||||
padding-bottom: 8px;
|
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 {
|
#darkenwrapper {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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" />
|
||||||
|
<input type="button" name="cancel" value="{L_NO}" class="button2" />
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<!-- ELSE -->
|
||||||
|
|
||||||
<!-- INCLUDE overall_header.html -->
|
<!-- INCLUDE overall_header.html -->
|
||||||
|
|
||||||
<form id="confirm" method="post" action="{S_CONFIRM_ACTION}">
|
<form id="confirm" method="post" action="{S_CONFIRM_ACTION}">
|
||||||
|
@ -14,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- INCLUDE overall_footer.html -->
|
<!-- INCLUDE overall_footer.html -->
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
|
@ -29,9 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="phpbb_confirm" class="phpbb_alert">
|
<div id="phpbb_confirm" class="phpbb_alert">
|
||||||
<a href="#" class="alert_close"></a>
|
<a href="#" class="alert_close"></a>
|
||||||
<p class="alert_text"></p>
|
<div class="alert_text"></div>
|
||||||
<input type="button" class="button1" value="{L_YES}" />
|
|
||||||
<input type="button" class="button2" value="{L_NO}" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue