UI refactoring comment/document additional config

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11967 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-30 07:27:27 +00:00
parent 201489c9a4
commit 29b0796928
2 changed files with 69 additions and 65 deletions

View file

@ -1,49 +1,51 @@
<form ruleset="insertCommentModuleConfig" action="./" method="post"> <section class="section">
<input type="hidden" name="module" value="comment" /> <h1>{$lang->comment}</h1>
<input type="hidden" name="act" value="procCommentInsertModuleConfig" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" /> <form ruleset="insertCommentModuleConfig" action="./" method="post" class="x_form-horizontal">
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" /> <input type="hidden" name="module" value="comment" />
<h3 class="h3">{$lang->comment}</h3> <input type="hidden" name="act" value="procCommentInsertModuleConfig" />
<table class="x_table x_table-striped x_table-hover"> <input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<tr> <input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
<th scope="row"><label for="comment_count">{$lang->comment_count}</label></th>
<td class="text"> <div class="x_control-group">
<input type="text" name="comment_count" id="comment_count" value="{$comment_config->comment_count}" style="width:30px" /> <label for="comment_count" class="x_control-label">{$lang->comment_count}</label>
<span class="desc">{$lang->about_comment_count}</span> <div class="x_controls">
</td> <input type="number" min="1" name="comment_count" id="comment_count" value="{$comment_config->comment_count}" style="width:40px" />
</tr> <span class="x_help-block">{$lang->about_comment_count}</span>
<tr> </div>
<th scope="row"><label for="use_vote_up">{$lang->cmd_vote}</label></th> </div>
<td class="text"> <div class="x_control-group">
<label for="use_vote_up" class="x_control-label">{$lang->cmd_vote}</label>
<div class="x_controls">
<select name="use_vote_up" id="use_vote_up"> <select name="use_vote_up" id="use_vote_up">
<option value="Y" selected="selected"|cond="$comment_config->use_vote_up=='Y'">{$lang->use}</option> <option value="Y" selected="selected"|cond="$comment_config->use_vote_up=='Y'">{$lang->use}</option>
<option value="S" selected="selected"|cond="$comment_config->use_vote_up=='S'">{$lang->use_and_display}</option> <option value="S" selected="selected"|cond="$comment_config->use_vote_up=='S'">{$lang->use_and_display}</option>
<option value="N" selected="selected"|cond="$comment_config->use_vote_up=='N'">{$lang->notuse}</option> <option value="N" selected="selected"|cond="$comment_config->use_vote_up=='N'">{$lang->notuse}</option>
</select> </select>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="use_vote_down">{$lang->cmd_vote_down}</label></th> <label for="use_vote_down" class="x_control-label">{$lang->cmd_vote_down}</label>
<td class="text"> <div class="x_controls">
<select name="use_vote_down" id="use_vote_down"> <select name="use_vote_down" id="use_vote_down">
<option value="Y" selected="selected"|cond="$comment_config->use_vote_down=='Y'">{$lang->use}</option> <option value="Y" selected="selected"|cond="$comment_config->use_vote_down=='Y'">{$lang->use}</option>
<option value="S" selected="selected"|cond="$comment_config->use_vote_down=='S'">{$lang->use_and_display}</option> <option value="S" selected="selected"|cond="$comment_config->use_vote_down=='S'">{$lang->use_and_display}</option>
<option value="N" selected="selected"|cond="$comment_config->use_vote_down=='N'">{$lang->notuse}</option> <option value="N" selected="selected"|cond="$comment_config->use_vote_down=='N'">{$lang->notuse}</option>
</select> </select>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="use_comment_validation">{$lang->cmd_comment_validation}</label></th> <label for="use_comment_validation" class="x_control-label">{$lang->cmd_comment_validation}</label>
<td> <div class="x_controls">
<select name="use_comment_validation"> <select name="use_comment_validation" id="use_comment_validation">
<option value="N" selected="selected"|cond="$comment_config->use_comment_validation=='N'">{$lang->notuse}</option> <option value="N" selected="selected"|cond="$comment_config->use_comment_validation=='N'">{$lang->notuse}</option>
<option value="Y" selected="selected"|cond="$comment_config->use_comment_validation=='Y'">{$lang->use}</option> <option value="Y" selected="selected"|cond="$comment_config->use_comment_validation=='Y'">{$lang->use}</option>
</select> </select>
<p>{$lang->about_comment_validation}</p> <span class="x_help-block">{$lang->about_comment_validation}</span>
</td> </div>
</tr> </div>
</table> <div class="x_clearfix btnArea">
<div class="x_clearfix"> <button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
<input type="submit" value="{$lang->cmd_save}" class="x_btn x_btn-primary" /> </div>
</div> </form>
</form> </section>

View file

@ -1,44 +1,46 @@
<!--%import("filter/insert_document_module_config.xml")--> <section class="section">
<form action="./" method="post"> <h1>{$lang->document}</h1>
<input type="hidden" name="module" value="document" />
<input type="hidden" name="act" value="procDocumentInsertModuleConfig" /> <form action="./" method="post" class="x_form-horizontal">
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" /> <input type="hidden" name="module" value="document" />
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" /> <input type="hidden" name="act" value="procDocumentInsertModuleConfig" />
<h3 class="h3">{$lang->document}</h3> <input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<table class="x_table x_table-striped x_table-hover"> <input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
<tr>
<th scope="row"><label for="use_history">{$lang->history}</label></th> <div class="x_control-group">
<td class="text"> <label for="use_history" class="x_control-label">{$lang->history}</label>
<div class="x_controls">
<select name="use_history" id="use_history"> <select name="use_history" id="use_history">
<option value="N" selected="selected"|cond="$document_config->use_history=='N'">{$lang->notuse}</option> <option value="N" selected="selected"|cond="$document_config->use_history=='N'">{$lang->notuse}</option>
<option value="Y" selected="selected"|cond="$document_config->use_history=='Y'">{$lang->use}</option> <option value="Y" selected="selected"|cond="$document_config->use_history=='Y'">{$lang->use}</option>
<option value="Trace" selected="selected"|cond="$document_config->use_history=='Trace'">{$lang->trace_only}</option> <option value="Trace" selected="selected"|cond="$document_config->use_history=='Trace'">{$lang->trace_only}</option>
</select> </select>
<span class="desc">{$lang->about_use_history}</span> <span class="x_help-block">{$lang->about_use_history}</span>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="use_vote_up">{$lang->cmd_vote}</label></th> <label for="use_vote_up" class="x_control-label">{$lang->cmd_vote}</label>
<td class="text"> <div class="x_controls">
<select name="use_vote_up" id="use_vote_up"> <select name="use_vote_up" id="use_vote_up">
<option value="Y" selected="selected"|cond="$document_config->use_vote_up=='Y'">{$lang->use}</option> <option value="Y" selected="selected"|cond="$document_config->use_vote_up=='Y'">{$lang->use}</option>
<option value="S" selected="selected"|cond="$document_config->use_vote_up=='S'">{$lang->use_and_display}</option> <option value="S" selected="selected"|cond="$document_config->use_vote_up=='S'">{$lang->use_and_display}</option>
<option value="N" selected="selected"|cond="$document_config->use_vote_up=='N'">{$lang->notuse}</option> <option value="N" selected="selected"|cond="$document_config->use_vote_up=='N'">{$lang->notuse}</option>
</select> </select>
</td> </div>
</tr> </div>
<tr> <div class="x_control-group">
<th scope="row"><label for="use_vote_down">{$lang->cmd_vote_down}</label></th> <label for="use_vote_down" class="x_control-label">{$lang->cmd_vote_down}</label>
<td class="text"> <div class="x_controls">
<select name="use_vote_down" id="use_vote_down"> <select name="use_vote_down" id="use_vote_down">
<option value="Y" selected="selected"|cond="$document_config->use_vote_down=='Y'">{$lang->use}</option> <option value="Y" selected="selected"|cond="$document_config->use_vote_down=='Y'">{$lang->use}</option>
<option value="S" selected="selected"|cond="$document_config->use_vote_down=='S'">{$lang->use_and_display}</option> <option value="S" selected="selected"|cond="$document_config->use_vote_down=='S'">{$lang->use_and_display}</option>
<option value="N" selected="selected"|cond="$document_config->use_vote_down=='N'">{$lang->notuse}</option> <option value="N" selected="selected"|cond="$document_config->use_vote_down=='N'">{$lang->notuse}</option>
</select> </select>
</td> </div>
</tr> </div>
</table>
<div class="btnArea"> <div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}"/></span> <button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div> </div>
</form> </form>
</section>