Disable editing layouts unless they have already been edited #2121

This commit is contained in:
Kijin Sung 2023-06-19 00:20:57 +09:00
parent a266d39c2e
commit 3524c60435
7 changed files with 68 additions and 7 deletions

View file

@ -32,7 +32,13 @@
<td>{$item->title} ({$layout_name})</td>
<td>{zdate($item->regdate, "Y-m-d")}</td>
<td><a href="{getUrl('act', 'dispLayoutAdminModify', 'layout_srl', $item->layout_srl)}">{$lang->cmd_setup}</a></td>
<td><a href="{getUrl('act', 'dispLayoutAdminEdit', 'layout_srl', $item->layout_srl)}">{$lang->cmd_edit}</a></td>
<td>
<!--@if($item->is_edited)-->
<a href="{getUrl('act', 'dispLayoutAdminEdit', 'layout_srl', $item->layout_srl)}">{$lang->cmd_edit}</a>
<!--@else-->
<span style="color:#999">편집</span>
<!--@endif-->
</td>
<td><a href="{getUrl('', 'module', 'layout', 'act', 'dispLayoutAdminCopyLayout', 'layout_srl', $item->layout_srl)}" onclick="popopen(this.href);return false;" title="{$lang->cmd_copy}">{$lang->cmd_copy}</a></td>
<td class="rx_detail_marks">
<form cond="count($layout) > 1" class="layout_delete_form" ruleset="deleteLayout" action="./" method="post">

View file

@ -1,6 +1,20 @@
<include target="header.html" />
<load target="js/adminEdit.js" />
<p>{nl2br($lang->about_layout_code)}</p>
<div class="message error">
<p>{$lang->layout_editing_deprecated_p2}</p>
<p>{$lang->layout_editing_deprecated_p3}</p>
<ul>
<li>files/faceOff/{getNumberingPath($layout_srl)}/layout.html</li>
<li>files/faceOff/{getNumberingPath($layout_srl)}/layout.css</li>
</ul>
<p>{$lang->layout_editing_deprecated_p4}</p>
<ul>
<li>layouts/{$selected_layout->layout}/layout.html</li>
</ul>
<p>{$lang->layout_editing_deprecated_p5}</p>
</div>
<section class="section">
<h1>{$lang->layout_image_repository}</h1>
<p>{nl2br($lang->about_layout_image_repository)}</p>

View file

@ -27,7 +27,13 @@ xe.lang.confirm_delete = '{$lang->confirm_delete}';
<td class="title">{$layout->title}</td>
<td class="nowr">{zdate($layout->regdate, "Y-m-d")}</td>
<td class="nowr"><a href="{getUrl('act', 'dispLayoutAdminModify', 'layout_srl', $layout->layout_srl)}">{$lang->cmd_setup}</a></td>
<td class="nowr"><a href="{getUrl('act', 'dispLayoutAdminEdit', 'layout_srl', $layout->layout_srl)}">{$lang->cmd_edit}</a></td>
<td class="nowr">
<!--@if($layout->is_edited)-->
<a href="{getUrl('act', 'dispLayoutAdminEdit', 'layout_srl', $layout->layout_srl)}">{$lang->cmd_edit}</a>
<!--@else-->
<span style="color:#999">편집</span>
<!--@endif-->
</td>
<td class="nowr"><a href="{getUrl('', 'module', 'layout', 'act', 'dispLayoutAdminCopyLayout', 'layout_srl', $layout->layout_srl)}" onclick="popopen(this.href);return false;" title="{$lang->cmd_copy}">{$lang->cmd_copy}</a></td>
<td class="nowr">
<form cond="$isDeletable" class="layout_delete_form" ruleset="deleteLayout" action="./" method="post">