|
@@ -36,36 +36,32 @@ class CustomizeBehaviorSetting extends React.Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- const { t } = this.props;
|
|
|
|
|
|
|
+ const { t, adminCustomizeContainer } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
|
- <CustomizeBehaviorOption />
|
|
|
|
|
<h2>{t('customize_page.Behavior')}</h2>
|
|
<h2>{t('customize_page.Behavior')}</h2>
|
|
|
- <div className="col-xs-6">
|
|
|
|
|
- <h4>
|
|
|
|
|
- <div className="radio radio-primary">
|
|
|
|
|
- <input type="radio" id="radioBehaviorGrowi" name="settingForm[customize:behavior]" value="growi" />
|
|
|
|
|
- <label htmlFor="radioBehaviorGrowi">
|
|
|
|
|
- GROWI Simplified Behavior <small className="text-success">(Recommended)</small>
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </h4>
|
|
|
|
|
|
|
+ <CustomizeBehaviorOption
|
|
|
|
|
+ behaviorType="growi"
|
|
|
|
|
+ isSelected={adminCustomizeContainer.state.currentBehavior === 'growi'}
|
|
|
|
|
+ onSelected={() => adminCustomizeContainer.switchBehaviorType('growi')}
|
|
|
|
|
+ labelHtml='GROWI Simplified Behavior <small className="text-success">(Recommended)</small>'
|
|
|
|
|
+ >
|
|
|
|
|
+ {/* TODO i18n */}
|
|
|
<ul>
|
|
<ul>
|
|
|
<li>Both of <code>/page</code> and <code>/page/</code> shows the same page</li>
|
|
<li>Both of <code>/page</code> and <code>/page/</code> shows the same page</li>
|
|
|
<li><code>/nonexistent_page</code> shows editing form</li>
|
|
<li><code>/nonexistent_page</code> shows editing form</li>
|
|
|
<li>All pages shows the list of sub pages <b>if using GROWI Enhanced Layout</b></li>
|
|
<li>All pages shows the list of sub pages <b>if using GROWI Enhanced Layout</b></li>
|
|
|
</ul>
|
|
</ul>
|
|
|
- </div>
|
|
|
|
|
- <div className="col-xs-6">
|
|
|
|
|
- <h4>
|
|
|
|
|
- <div className="radio radio-primary">
|
|
|
|
|
- <input type="radio" id="radioBehaviorCrowi" name="settingForm[customize:behavior]" value="crowi" />
|
|
|
|
|
- <label htmlFor="radioBehaviorCrowi">
|
|
|
|
|
- Crowi Classic Behavior
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </h4>
|
|
|
|
|
|
|
+ </CustomizeBehaviorOption>
|
|
|
|
|
+
|
|
|
|
|
+ <CustomizeBehaviorOption
|
|
|
|
|
+ behaviorType="crowi-plus"
|
|
|
|
|
+ isSelected={adminCustomizeContainer.state.currentBehavior === 'crowi-plus'}
|
|
|
|
|
+ onSelected={() => adminCustomizeContainer.switchBehaviorType('crowi-plus')}
|
|
|
|
|
+ labelHtml="Crowi Classic Behavior"
|
|
|
|
|
+ >
|
|
|
|
|
+ {/* TODO i18n */}
|
|
|
<ul>
|
|
<ul>
|
|
|
<li><code>/page</code> shows the page</li>
|
|
<li><code>/page</code> shows the page</li>
|
|
|
<li><code>/page/</code> shows the list of sub pages</li>
|
|
<li><code>/page/</code> shows the list of sub pages</li>
|
|
@@ -75,7 +71,7 @@ class CustomizeBehaviorSetting extends React.Component {
|
|
|
<li><code>/nonexistent_page</code> shows editing form</li>
|
|
<li><code>/nonexistent_page</code> shows editing form</li>
|
|
|
<li><code>/nonexistent_page/</code> the list of sub pages</li>
|
|
<li><code>/nonexistent_page/</code> the list of sub pages</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </CustomizeBehaviorOption>
|
|
|
|
|
|
|
|
<div className="form-group my-3">
|
|
<div className="form-group my-3">
|
|
|
<div className="col-xs-offset-4 col-xs-5">
|
|
<div className="col-xs-offset-4 col-xs-5">
|