rhymix/modules/editor/tpl/editor_module_config.html
2012-11-06 10:01:01 +00:00

122 lines
7.2 KiB
HTML

<!--%import("filter/insert_editor_module_config.xml")-->
<load target="js/editor_module_config.js" usecdn="true" />
<form action="./" method="post" class="section">
<input type="hidden" name="act" value="procEditorInsertModuleConfig" />
<input type="hidden" name="module" value="editor" />
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<h1>{$lang->editor}</h1>
<table class="x_table x_table-striped x_table-hover">
<thead>
<tr>
<th scope="col" style="width:160px">&nbsp;</th>
<th scope="col">{$lang->document}</th>
<th scope="col">{$lang->comment}</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" style="text-align:right">{$lang->editor_skin}</th>
<td>
<select name="editor_skin" onchange="getEditorSkinColorList(this.value, null, 'document')" style="width:220px">
<option loop="$editor_skin_list => $editor" value="{$editor}" selected="selected"|cond="$editor==$editor_config->editor_skin">{$editor}</option>
</select>
<br/>
<select name="sel_editor_colorset" id="sel_editor_colorset" data-display="none"|cond="!count($editor_colorset_list)" style="width:220px">
<option loop="$editor_colorset_list => $key, $val" value="{$val->name}" selected="selected"|cond="$editor_config->sel_editor_colorset == $val->name">{$val->title}</option>
</select>
</td>
<td>
<select name="comment_editor_skin" onchange="getEditorSkinColorList(this.value, null, 'comment')" style="width:220px">
<option loop="$editor_skin_list => $editor" value="{$editor}" selected="selected"|cond="$editor==$editor_config->comment_editor_skin">{$editor}</option>
</select>
<br/>
<select name="sel_comment_editor_colorset" id="sel_comment_editor_colorset" data-display="none"|cond="!count($editor_comment_colorset_list)" style="width:220px">
<option loop="$editor_comment_colorset_list => $key, $val" value="{$val->name}" selected="selected"|cond="$editor_config->sel_comment_editor_colorset == $val->name">{$val->title}</option>
</select>
</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->content_style}</th>
<td>
<select name="content_style" style="width:220px">
<option loop="$content_style_list => $key, $val" value="{$key}" selected="selected"|cond="$key==$editor_config->content_style||!$editor_config->content_style&&$key=='default'">{$val->title}</option>
</select>
</td>
<td>
<select name="comment_content_style" style="width:220px">
<option loop="$content_style_list => $key, $val" value="{$key}" selected="selected"|cond="$key==$editor_config->comment_content_style||!$editor_config->comment_content_style&&$key=='default'">{$val->title}</option>
</select>
</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->editor_height}</th>
<td>
<input type="number" min="0" name="editor_height" value="{$editor_config->editor_height}" style="width:50px" /> px
</td>
<td>
<input type="number" min="0" name="comment_editor_height" value="{$editor_config->comment_editor_height}" style="width:50px" /> px
</td>
</tr>
<tr>
<th scope="row" style="text-align:right"><label for="content_font">{$lang->content_font}</label></th>
<td colspan="2">
<input type="text" name="content_font" id="content_font" value="{str_replace(array('"','\''),'',$editor_config->content_font)}" placeholder="Ex) Tahoma, Geneva, sans-serif" />
{$lang->about_content_font}
</td>
</tr>
<tr>
<th scope="row" style="text-align:right"><label for="content_font_size">{$lang->content_font_size}</label></th>
<td colspan="2"><input type="text" name="content_font_size" id="content_font_size" value="{$editor_config->content_font_size}" style="width:50px" /> {$lang->about_content_font_size}</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->enable_autosave}</th>
<td colspan="2">
<label for="enable_autosave">
<input type="checkbox" value="Y" id="enable_autosave" name="enable_autosave" checked="checked"|cond="$editor_config->enable_autosave=='Y'" />
{$lang->about_enable_autosave}
</label>
</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->enable_html_grant}</th>
<td>
<label loop="$group_list => $k, $v" for="enable_html_{$k}" class="x_inline"><input type="checkbox" name="enable_html_grant[]" value="{$k}" id="enable_html_{$k}" checked="checked"|cond="in_array($k, $editor_config->enable_html_grant)" /> {$v->title}</label>
</td>
<td>
<label loop="$group_list => $k, $v" for="enable_comment_html_{$k}" class="x_inline"><input type="checkbox" name="enable_comment_html_grant[]" value="{$k}" id="enable_comment_html_{$k}" checked="checked"|cond="in_array($k, $editor_config->enable_comment_html_grant)" /> {$v->title}</label>
</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->upload_file_grant}</th>
<td>
<label loop="$group_list => $k, $v" for="fileupload_{$k}" class="x_inline"><input type="checkbox" name="upload_file_grant[]" value="{$k}" id="fileupload_{$k}" checked="checked"|cond="in_array($k, $editor_config->upload_file_grant)" /> {$v->title}</label>
</td>
<td>
<label loop="$group_list => $k, $v" for="comment_fileupload_{$k}" class="x_inline"><input type="checkbox" name="comment_upload_file_grant[]" value="{$k}" id="comment_fileupload_{$k}" checked="checked"|cond="in_array($k, $editor_config->comment_upload_file_grant)" /> {$v->title}</label>
</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->enable_default_component_grant}</th>
<td>
<label loop="$group_list => $k, $v" for="default_componen_{$k}" class="x_inline"><input type="checkbox" name="enable_default_component_grant[]" value="{$k}" id="default_componen_{$k}" checked="checked"|cond="in_array($k, $editor_config->enable_default_component_grant)" /> {$v->title}</label>
</td>
<td>
<label loop="$group_list => $k, $v" for="comment_default_component_{$k}" class="x_inline"><input type="checkbox" name="enable_comment_default_component_grant[]" value="{$k}" id="comment_default_component_{$k}" checked="checked"|cond="in_array($k, $editor_config->enable_comment_default_component_grant)" /> {$v->title}</label>
</td>
</tr>
<tr>
<th scope="row" style="text-align:right">{$lang->enable_extra_component_grant}</th>
<td>
<label loop="$group_list => $k, $v" for="componen_{$k}" class="x_inline"><input type="checkbox" name="enable_component_grant[]" value="{$k}" id="componen_{$k}" checked="checked"|cond="in_array($k, $editor_config->enable_component_grant)" /> {$v->title}</label>
</td>
<td>
<label loop="$group_list => $k, $v" for="comment_component_{$k}" class="x_inline"><input type="checkbox" name="enable_comment_component_grant[]" value="{$k}" id="comment_component_{$k}" checked="checked"|cond="in_array($k, $editor_config->enable_comment_component_grant)" /> {$v->title}</label>
</td>
</tr>
</tbody>
</table>
<div class="x_clearfix">
<button class="x_btn x_btn-primary x_pull-right" type="submit">{$lang->cmd_save}</button>
</div>
</form>