Project

General

Profile

Actions

Enhancement(機能追加・改善) #2464

open

管理画面のプロフィール編集画面でプリセット設定を編集する際にどの項目を編集しているかを表示する

Added by Yuya Watanabe over 13 years ago. Updated almost 13 years ago.

Status:
Pending Review(レビュー待ち)
Priority:
Normal(通常)
Assignee:
Target version:
Start date:
2011-10-04
Due date:
% Done:

50%

Estimated time:

Description

概要

管理画面のプロフィール編集画面( pc_backend.php/profile/edit )でプリセット設定を編集する際にどの項目を編集しているかを表示する.
ユーザ設定の場合は識別名や日本語名,英語名などを入力する欄が表示されるため現在何を編集しているかがわかるが,プリセットの場合はそれが無い.
そのため,何を編集しているかがわかりにくい部分について表示する実装を行う.

確認バージョン

OpenPNE 3.7.0-dev

変更方針

プロフィール一覧画面( pc_backend.php/profile/list )の「項目名」となっている列の名前を表示するようにする.

変更内容

diff --git a/apps/pc_backend/modules/profile/templates/editSuccess.php b/apps/pc_backend/modules/profile/templates/editSuccess.php
index 8660a5d..83f4ca4 100644
--- a/apps/pc_backend/modules/profile/templates/editSuccess.php
+++ b/apps/pc_backend/modules/profile/templates/editSuccess.php
@@ -30,6 +30,17 @@
 <?php echo __('There is no preset profile.') ?>
 <?php endif; ?>
 <?php else: ?>
+<h3><?
+$presetList = opToolkit::getPresetProfileList();
+foreach ($presetList as $k => $v)
+{
+  if ('op_preset_'.$v['Name'] === $profile['name'])
+  {
+    echo __($v['Caption']);
+    break;
+  }
+}
+?></h3>
 <form action="<?php echo url_for('profile/edit?type=preset&id='.$profile->getId()) ?>" method="post">
 <table style="width: 50%;">
 <?php echo $presetForm ?>
Actions #1

Updated by Yuya Watanabe over 13 years ago

  • Description updated (diff)
Actions #2

Updated by wa ta over 13 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 76fc78c70186b32f1f199cb2faa3fe71eb191154 で適用されました。

Actions #3

Updated by Shouta Kashiwagi almost 13 years ago

  • Target version changed from OpenPNE 3.7.0 to 252
Actions #4

Updated by Shouta Kashiwagi almost 13 years ago

  • Target version changed from 252 to OpenPNE 3.8.x
Actions

Also available in: Atom PDF