Add option to save changelog for files

This commit is contained in:
Kijin Sung 2019-09-13 23:57:21 +09:00
parent ee7f11b0f1
commit 2cd2d0528b
8 changed files with 76 additions and 0 deletions

View file

@ -13,4 +13,7 @@
<li class="x_active"|cond="$act == 'dispFileAdminDownloadConfig'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminDownloadConfig')}">{$lang->file_download_config}</a>
</li>
<li class="x_active"|cond="$act == 'dispFileAdminOtherConfig'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminOtherConfig')}">{$lang->file_other_config}</a>
</li>
</ul>

View file

@ -0,0 +1,25 @@
<include target="header.html" />
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/file/tpl/other_config/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal section">
<input type="hidden" name="module" value="file" />
<input type="hidden" name="act" value="procFileAdminInsertOtherConfig" />
<input type="hidden" name="xe_validator_id" value="modules/file/tpl/other_config/1" />
<div class="x_control-group">
<label class="x_control-label">{$lang->file_save_changelog}</label>
<div class="x_controls">
<label class="x_inline"><input type="radio" name="save_changelog" value="Y" checked="checked"|cond="$config->save_changelog === 'Y'" /> {$lang->cmd_yes}</label>
<label class="x_inline"><input type="radio" name="save_changelog" value="N" checked="checked"|cond="$config->save_changelog !== 'Y'" /> {$lang->cmd_no}</label>
<p class="x_help-block">{$lang->about_save_changelog}</p>
</div>
</div>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div>
</div>
{@ var_dump($config)}
</form>