//]]>
</script>
- <div id="poll" class="jsOnly tabMenuContent container containerPadding">
- <fieldset>
- <dl{if $errorField == 'pollOptions'} class="formError"{/if}>
- <dt>
- <label for="pollQuestion">{lang}wcf.poll.question{/lang}</label>
- </dt>
- <dd>
- <input type="text" name="pollQuestion" id="pollQuestion" value="{$pollQuestion}" class="long" maxlength="255" />
- {if $errorField == 'pollQuestion'}
- <small class="innerError">
- {lang}wcf.global.form.error.empty{/lang}
- </small>
- {/if}
- </dd>
- <dt>
- <label>{lang}wcf.poll.options{/lang}</label>
- </dt>
- <dd id="pollOptionContainer" class="sortableListContainer">
- <ol class="sortableList"></ol>
- {if $errorField == 'pollOptions'}
- <small class="innerError">
- {lang}wcf.global.form.error.empty{/lang}
- </small>
- {/if}
- <small>{lang}wcf.poll.options.description{/lang}</small>
- </dd>
- </dl>
- <dl{if $errorField == 'pollEndTime'} class="formError"{/if}>
- <dt>
- <label for="pollEndTime">{lang}wcf.poll.endTime{/lang}</label>
- </dt>
- <dd>
- <input type="datetime" name="pollEndTime" id="pollEndTime" value="{if $pollEndTime}{@$pollEndTime|date:'c'}{/if}" class="medium" data-ignore-timezone="true" />
- {if $errorField == 'pollEndTime'}
- <small class="innerError">
- {lang}wcf.poll.endTime.error.{@$errorType}{/lang}
- </small>
- {/if}
- </dd>
- </dl>
- <dl{if $errorField == 'pollMaxVotes'} class="formError"{/if}>
- <dt>
- <label for="pollMaxVotes">{lang}wcf.poll.maxVotes{/lang}</label>
- </dt>
- <dd>
- <input type="number" name="pollMaxVotes" id="pollMaxVotes" value="{@$pollMaxVotes}" min="1" class="tiny" />
- {if $errorField == 'pollMaxVotes'}
- <small class="innerError">
- {lang}wcf.poll.maxVotes.error.{@$errorType}{/lang}
- </small>
- {/if}
- </dd>
- </dl>
- <dl>
- <dt></dt>
- <dd>
- <label><input type="checkbox" name="pollIsChangeable" value="1"{if $pollIsChangeable} checked="checked"{/if} /> {lang}wcf.poll.isChangeable{/lang}</label>
- </dd>
- {if !$pollID && $__wcf->getPollManager()->canStartPublicPoll()}
- <dd>
- <label><input type="checkbox" name="pollIsPublic" value="1"{if $pollIsPublic} checked="checked"{/if} /> {lang}wcf.poll.isPublic{/lang}</label>
- </dd>
+ <div id="poll" class="jsOnly messageTabMenuContent">
+ <dl{if $errorField == 'pollOptions'} class="formError"{/if}>
+ <dt>
+ <label for="pollQuestion">{lang}wcf.poll.question{/lang}</label>
+ </dt>
+ <dd>
+ <input type="text" name="pollQuestion" id="pollQuestion" value="{$pollQuestion}" class="long" maxlength="255" />
+ {if $errorField == 'pollQuestion'}
+ <small class="innerError">
+ {lang}wcf.global.form.error.empty{/lang}
+ </small>
{/if}
+ </dd>
+ <dt>
+ <label>{lang}wcf.poll.options{/lang}</label>
+ </dt>
+ <dd id="pollOptionContainer" class="sortableListContainer">
+ <ol class="sortableList"></ol>
+ {if $errorField == 'pollOptions'}
+ <small class="innerError">
+ {lang}wcf.global.form.error.empty{/lang}
+ </small>
+ {/if}
+ <small>{lang}wcf.poll.options.description{/lang}</small>
+ </dd>
+ </dl>
+ <dl{if $errorField == 'pollEndTime'} class="formError"{/if}>
+ <dt>
+ <label for="pollEndTime">{lang}wcf.poll.endTime{/lang}</label>
+ </dt>
+ <dd>
+ <input type="datetime" name="pollEndTime" id="pollEndTime" value="{if $pollEndTime}{@$pollEndTime|date:'c'}{/if}" class="medium" data-ignore-timezone="true" />
+ {if $errorField == 'pollEndTime'}
+ <small class="innerError">
+ {lang}wcf.poll.endTime.error.{@$errorType}{/lang}
+ </small>
+ {/if}
+ </dd>
+ </dl>
+ <dl{if $errorField == 'pollMaxVotes'} class="formError"{/if}>
+ <dt>
+ <label for="pollMaxVotes">{lang}wcf.poll.maxVotes{/lang}</label>
+ </dt>
+ <dd>
+ <input type="number" name="pollMaxVotes" id="pollMaxVotes" value="{@$pollMaxVotes}" min="1" class="tiny" />
+ {if $errorField == 'pollMaxVotes'}
+ <small class="innerError">
+ {lang}wcf.poll.maxVotes.error.{@$errorType}{/lang}
+ </small>
+ {/if}
+ </dd>
+ </dl>
+ <dl>
+ <dt></dt>
+ <dd>
+ <label><input type="checkbox" name="pollIsChangeable" value="1"{if $pollIsChangeable} checked="checked"{/if} /> {lang}wcf.poll.isChangeable{/lang}</label>
+ </dd>
+ {if !$pollID && $__wcf->getPollManager()->canStartPublicPoll()}
<dd>
- <label><input type="checkbox" name="pollResultsRequireVote" value="1"{if $pollResultsRequireVote} checked="checked"{/if} /> {lang}wcf.poll.resultsRequireVote{/lang}</label>
- <small>{lang}wcf.poll.resultsRequireVote.description{/lang}</small>
- </dd>
- <dd>
- <label><input type="checkbox" name="pollSortByVotes" value="1"{if $pollSortByVotes} checked="checked"{/if} /> {lang}wcf.poll.sortByVotes{/lang}</label>
+ <label><input type="checkbox" name="pollIsPublic" value="1"{if $pollIsPublic} checked="checked"{/if} /> {lang}wcf.poll.isPublic{/lang}</label>
</dd>
- </dl>
-
- {event name='fields'}
- </fieldset>
+ {/if}
+ <dd>
+ <label><input type="checkbox" name="pollResultsRequireVote" value="1"{if $pollResultsRequireVote} checked="checked"{/if} /> {lang}wcf.poll.resultsRequireVote{/lang}</label>
+ <small>{lang}wcf.poll.resultsRequireVote.description{/lang}</small>
+ </dd>
+ <dd>
+ <label><input type="checkbox" name="pollSortByVotes" value="1"{if $pollSortByVotes} checked="checked"{/if} /> {lang}wcf.poll.sortByVotes{/lang}</label>
+ </dd>
+ </dl>
+
+ {event name='fields'}
</div>
{/if}
\ No newline at end of file
.messageTabMenu {
- > div,
- > fieldset,
- > section {
+ > .messageTabMenuContent {
display: none;
&.active {
+ background-color: $wcfContentBackground;
display: block;
+ margin-top: 0;
}
}
- > div {
- > nav {
- ul {
- white-space: nowrap;
+ // prevent double formatting with nested tab menus
+ &:not(.messageTabMenuContent) > .messageTabMenuContent.active {
+ border: 1px solid $wcfContentBorderInner;
+ border-top-width: 0;
+ padding: 20px;
+ }
+
+ // sub tab menu
+ &.messageTabMenuContent > nav {
+ border-bottom: 1px solid $wcfContentBorderInner;
+ margin: -20px -20px 20px -20px;
+ padding: 5px 20px;
+
+ > ul {
+ @extend .inlineList;
+
+ > li {
+ outline: 0;
- li {
+ &:not(:last-child) {
+ margin-right: 20px;
+ }
+
+ &.active > a {
+ color: $wcfContentLinkActive;
+ }
+
+ > a {
+ display: block;
outline: 0;
- &.active a,
- &.active a:hover {
- color: $wcfContentLinkActive;
- }
-
- a {
- color: $wcfContentLinkActive;
- display: block;
- outline: 0;
-
- @extend .userSelectNone;
- @extend .wcfFontSmall;
-
- &:hover {
- color: $wcfContentLinkActive;
- }
- }
+ @extend .userSelectNone;
+ @extend .wcfFontSmall;
}
}
}
}
.messageTabMenuNavigation {
- position: relative;
-
> ul {
- border-bottom: 1px solid $wcfContentBorderInner;
- margin-bottom: 10px;
- padding: 10px 0;
+ background-color: $wcfContentBackground;
+ border: 1px solid $wcfContentBorderInner;
+ border-top-width: 0;
@extend .inlineList;
> li {
+ border-right: 1px solid $wcfContentBorderInner;
+
&:not(:last-child) {
- margin-right: 20px;
+ margin-right: 0;
+ }
+
+ &.active > a {
+ color: $wcfContentLinkActive;
+ position: relative;
+
+ &::after {
+ border-bottom: 1px solid $wcfContentBackground;
+ bottom: -1px;
+ content: "";
+ display: block;
+ left: 0;
+ position: absolute;
+ right: 0;
+ }
}
> a {
display: block;
+ padding: 10px 20px;
@extend .userSelectNone;
}
> span {
- border-top: 1px solid $wcfContentLink;
- bottom: 0;
- content: "";
- position: absolute;
- transition: transform .2s linear, width .2s linear;
+ display: none;
}
}