Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added confirmation pages for delete actions (dust box) (refs #2105)
- Loading branch information
1 parent
a0c8841
commit 433f564
Showing
9 changed files
with
192 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
apps/mobile_frontend/modules/message/templates/deleteConfirmSuccess.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
op_mobile_page_title(__('Delete this message')); | ||
?> | ||
<?php echo __('Do you delete this message?') ?><br /><br /> | ||
<?php echo $form->renderFormTag(url_for($deleteButton)); ?> | ||
<?php echo $form ?> | ||
<center> | ||
<input type="submit" value="<?php echo __('Delete') ?>" /> | ||
</center> | ||
</form> | ||
|
38 changes: 38 additions & 0 deletions
38
apps/mobile_frontend/modules/message/templates/deleteListConfirmSuccess.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
op_mobile_page_title(__('Delete messages')); | ||
?> | ||
<?php echo __('Do you delete messages?') ?><br /><br /> | ||
|
||
<form action="<?php echo url_for('@'.$messageType.'List') ?>" method="post"> | ||
|
||
<?php slot('form') ?> | ||
<?php echo $form->renderHiddenFields() ?> | ||
<?php | ||
foreach($form->getValue('message_ids') as $s_key => $s_value) | ||
{ | ||
$tw = new sfWidgetFormInputHidden(array(), array()); | ||
$tw->addOption('name_format',$form->getWidgetSchema()->getNameFormat()); | ||
$tn = strtr($form->getWidgetSchema()->getNameFormat(),array('%s' =>"message_ids")); | ||
echo $tw->render($tn.'['.$s_key.']', $s_value); | ||
} | ||
?> | ||
<?php end_slot(); ?> | ||
|
||
|
||
<?php slot('form_global_error') ?> | ||
<?php if ($form->hasGlobalErrors()): ?> | ||
<?php echo $form->renderGlobalErrors() ?> | ||
<?php endif; ?> | ||
<?php end_slot(); ?> | ||
<?php if (get_slot('form_global_error')): ?> | ||
<?php echo get_slot('form_global_error') ?><br><br> | ||
<?php endif; ?> | ||
|
||
<?php include_slot('form') ?> | ||
|
||
<div align="center"> | ||
<input type="submit" value="<?php echo __('Delete') ?>"> | ||
<input type="hidden" name="only_hidden" value="true"> | ||
<input type="hidden" name="page" value="<?php echo $pager->getPage() ?>"> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
apps/pc_frontend/modules/message/templates/deleteConfirmSuccess.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php decorate_with('layoutC') ?> | ||
<div id="formMessageDelete" class="dparts box"> | ||
<div class="parts"> | ||
<div class="partsHeading"> | ||
<h3><?php echo __('Delete this message') ?></h3> | ||
</div> | ||
<div class="block"> | ||
<p><?php echo __('Do you delete this message?') ?></p> | ||
<?php echo $form->renderFormTag(url_for($deleteButton)); ?> | ||
<?php echo $form ?> | ||
<div class="operation"> | ||
<ul class="moreInfo button"> | ||
<li> | ||
<input class="input_submit" type="submit" value="<?php echo __('Delete') ?>" /> | ||
</li> | ||
</ul> | ||
</div> | ||
</form> | ||
</div> | ||
</div></div> | ||
|
||
<?php use_helper('Javascript') ?> | ||
<?php op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()')) ?> |
48 changes: 48 additions & 0 deletions
48
apps/pc_frontend/modules/message/templates/deleteListConfirmSuccess.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php decorate_with('layoutC') ?> | ||
<div id="formMessageDeleteList" class="dparts box"> | ||
<div class="parts"> | ||
<div class="partsHeading"> | ||
<h3><?php echo __('Delete messages') ?></h3> | ||
</div> | ||
<div class="block"> | ||
<p><?php echo __('Do you delete messages?') ?></p> | ||
<form action="<?php echo url_for('@'.$messageType.'List') ?>" method="post"> | ||
<?php slot('form') ?> | ||
<?php echo $form->renderHiddenFields() ?> | ||
<?php | ||
foreach($form->getValue('message_ids') as $s_key => $s_value) | ||
{ | ||
$tw = new sfWidgetFormInputHidden(array(), array()); | ||
$tw->addOption('name_format',$form->getWidgetSchema()->getNameFormat()); | ||
$tn = strtr($form->getWidgetSchema()->getNameFormat(),array('%s' =>"message_ids")); | ||
echo $tw->render($tn.'['.$s_key.']', $s_value); | ||
} | ||
?> | ||
<?php end_slot(); ?> | ||
|
||
|
||
<?php slot('form_global_error') ?> | ||
<?php if ($form->hasGlobalErrors()): ?> | ||
<?php echo $form->renderGlobalErrors() ?> | ||
<?php endif; ?> | ||
<?php end_slot(); ?> | ||
<?php if (get_slot('form_global_error')): ?> | ||
<?php echo get_slot('form_global_error') ?><br><br> | ||
<?php endif; ?> | ||
|
||
<?php include_slot('form') ?> | ||
<div class="operation"> | ||
<ul class="moreInfo button"> | ||
<li> | ||
<input class="input_submit" type="submit" value="<?php echo __('Delete') ?>" /> | ||
<input type="hidden" name="only_hidden" value="true"> | ||
<input type="hidden" name="page" value="<?php echo $pager->getPage() ?>"> | ||
</li> | ||
</ul> | ||
</div> | ||
</form> | ||
</div> | ||
</div></div> | ||
|
||
<?php use_helper('Javascript') ?> | ||
<?php op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()')) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" ?> | ||
<xliff version="1.0"> | ||
<file orginal="global" source-language="en" datatype="plaintext"> | ||
<body> | ||
<trans-unit id=""> | ||
<source>Do you delete this message?</source> | ||
<target>削除してよろしいですか?</target> | ||
</trans-unit> | ||
<trans-unit id=""> | ||
<source>Do you delete messages?</source> | ||
<target>削除してよろしいですか?</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters