-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/NetCommons3/UserManager.git
- Loading branch information
Showing
2 changed files
with
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* 会員削除テンプレート | ||
* | ||
* @author Noriko Arai <arai@nii.ac.jp> | ||
* @author Shohei Nakajima <nakajimashouhei@gmail.com> | ||
* @link http://www.netcommons.org NetCommons Project | ||
* @license http://www.netcommons.org/license.txt NetCommons License | ||
* @copyright Copyright 2014, NetCommons Project | ||
*/ | ||
?> | ||
|
||
<div class="nc-danger-zone" ng-init="dangerZone=false;"> | ||
<?php echo $this->NetCommonsForm->create('Users', array( | ||
'type' => 'delete', | ||
'url' => NetCommonsUrl::actionUrlAsArray(array('action' => 'delete')) | ||
)); ?> | ||
|
||
<uib-accordion close-others="false"> | ||
<div uib-accordion-group is-open="dangerZone" class="panel-danger"> | ||
<uib-accordion-heading class="clearfix"> | ||
<span style="cursor: pointer"> | ||
<?php echo __d('net_commons', 'Danger Zone'); ?> | ||
</span> | ||
<span class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': dangerZone, 'glyphicon-chevron-right': ! dangerZone}"></span> | ||
</uib-accordion-heading> | ||
|
||
<div class="pull-left"> | ||
<?php echo sprintf(__d('net_commons', 'Delete all data associated with the %s.'), __d('users', 'User')); ?> | ||
</div> | ||
<?php echo $this->NetCommonsForm->hidden('User.id'); ?> | ||
|
||
<?php echo $this->Button->delete( | ||
__d('net_commons', 'Delete'), | ||
sprintf(__d('net_commons', 'Deleting the %s. Are you sure to proceed?'), __d('users', 'User')), | ||
array('addClass' => 'pull-right') | ||
); ?> | ||
</div> | ||
</uib-accordion> | ||
<?php echo $this->NetCommonsForm->end(); ?> | ||
</div> |
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