mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +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;
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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 -->
|
||||
|
||||
<form id="confirm" method="post" action="{S_CONFIRM_ACTION}">
|
||||
|
@ -14,7 +26,7 @@
|
|||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- INCLUDE overall_footer.html -->
|
||||
<!-- ENDIF -->
|
||||
|
|
|
@ -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}" />
|
||||
<input type="button" class="button2" value="{L_NO}" />
|
||||
<div class="alert_text"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue