Reorganize create category form.

This commit is contained in:
Matthias Mees 2014-01-19 16:52:41 +01:00
parent 06019c095b
commit 3135239602
2 changed files with 34 additions and 25 deletions

View File

@ -48,7 +48,7 @@
<form id="serendipity_category" method="POST" name="serendipityCategory">
{$formToken}
<div class="clearfix odd">
<div id="category_basics" class="clearfix">
<div class="form_field">
<label for="category_name">{$CONST.NAME}</label>
<input id="category_name" name="serendipity[cat][name]" type="text" value="{$this_cat.category_name|default:""|escape:"html"}">
@ -58,7 +58,9 @@
<label for="category_description">{$CONST.DESCRIPTION}</label>
<input id="category_description" name="serendipity[cat][description]" type="text" value="{$this_cat.category_description|default:""|escape:"html"}">
</div>
</div>
<div id="category_subcats" class="clearfix">
<div class="form_select">
<label for="parent_cat">{$CONST.PARENT_CATEGORY}</label>
<select id="parent_cat" name="serendipity[cat][parent_cat]">
@ -70,6 +72,26 @@
</select>
</div>
<fieldset class="clearfix inputs">
<legend><span>{$CONST.CATEGORY_HIDE_SUB} <a class="toggle_info button_link" href="#hide_subcats_info"><span class="icon-info-circled"></span><span class="visuallyhidden"> More</span></a></span></legend>
<div class="clearfix grouped">
<div class="form_radio">
<input id="hide_sub_yes" name="serendipity[cat][hide_sub]" type="radio" value="1"{if $this_cat.hide_sub== 1} checked="checked"{/if}>
<label for="hide_sub_yes">{$CONST.YES}</label>
</div>
<div class="form_radio">
<input id="hide_sub_no" name="serendipity[cat][hide_sub]" type="radio" value="0"{if $this_cat.hide_sub == 0} checked="checked"{/if}>
<label for="hide_sub_no">{$CONST.NO}</label>
</div>
</div>
<span id="hide_subcats_info" class="field_info additional_info">{$CONST.CATEGORY_HIDE_SUB_DESC}</span>
</fieldset>
</div>
<div id="category_permissions" class="clearfix">
<div class="form_multiselect">
<label for="read_authors">{$CONST.PERM_READ}</label>
<select id="read_authors" size="6" multiple name="serendipity[cat][read_authors][]">
@ -91,7 +113,7 @@
</div>
</div>
<div class="clearfix even">
<div id="category_preview" class="clearfix">
<div class="form_field">
<label for="category_icon">{$CONST.CATEGORY} {$CONST.IMAGE}</label>
<input id="category_icon" name="serendipity[cat][icon]" type="text" value="{$this_cat.category_icon|default:""|escape:"html"}">
@ -103,24 +125,6 @@
</figure>
</div>
<fieldset class="clearfix inputs">
<legend><span>{$CONST.CATEGORY_HIDE_SUB} <a class="toggle_info button_link" href="#hide_subcats_info"><span class="icon-info-circled"></span><span class="visuallyhidden"> More</span></a></span></legend>
<div class="clearfix grouped">
<div class="form_radio">
<input id="hide_sub_yes" name="serendipity[cat][hide_sub]" type="radio" value="1"{if $this_cat.hide_sub== 1} checked="checked"{/if}>
<label for="hide_sub_yes">{$CONST.YES}</label>
</div>
<div class="form_radio">
<input id="hide_sub_no" name="serendipity[cat][hide_sub]" type="radio" value="0"{if $this_cat.hide_sub == 0} checked="checked"{/if}>
<label for="hide_sub_no">{$CONST.NO}</label>
</div>
</div>
<span id="hide_subcats_info" class="field_info additional_info">{$CONST.CATEGORY_HIDE_SUB_DESC}</span>
</fieldset>
<a class="button_link" href="?serendipity[adminModule]=category&serendipity[adminAction]=view">{$CONST.BACK}</a>
<input class="standalone" name="SAVE" type="submit" value="{$save}">
</form>

View File

@ -2596,7 +2596,9 @@ img.mfp-img {
#dashboard > .quick_list,
#maintenance > .quick_list,
.serendipity_statistics > section,
#serendipity_category > div {
#serendipity_category > div > div,
#serendipity_category #preview,
#serendipity_category > div > fieldset {
float: left;
margin: 0 2% 1em 0;
width: 48%;
@ -2637,14 +2639,18 @@ img.mfp-img {
#uploadform .form_field label,
#uploadform .form_select select,
#uploadform .form_field input,
#serendipity_category fieldset legend,
#serendipity_category fieldset > .grouped,
.field_info {
float: left;
margin-right: 2%;
width: 48%;
}
#hide_subcats_info {
float: none;
margin: .85715em 0 0;
width: 100%;
}
#edit_entry_status_comments {
float: left;
width: 70%;
@ -2707,7 +2713,6 @@ img.mfp-img {
.plugins_installable > li:nth-child(odd),
.media_pane .odd,
#dashboard > section:last-child,
#serendipity_category > fieldset,
.serendipity_statistics > section:nth-child(odd) {
clear: left;
}