|
@@ -95,7 +95,7 @@ const PageCreateModal = (props) => {
|
|
|
<fieldset className="col-12 mb-4">
|
|
<fieldset className="col-12 mb-4">
|
|
|
<h3 className="grw-modal-head pb-2">{ t("Create today's") }</h3>
|
|
<h3 className="grw-modal-head pb-2">{ t("Create today's") }</h3>
|
|
|
|
|
|
|
|
- <div className="d-sm-flex flex align-items-center justify-items-between">
|
|
|
|
|
|
|
+ <div className="d-sm-flex align-items-center justify-items-between">
|
|
|
|
|
|
|
|
<div className="d-flex align-items-center flex-fill flex-wrap flex-lg-nowrap">
|
|
<div className="d-flex align-items-center flex-fill flex-wrap flex-lg-nowrap">
|
|
|
<div className="d-flex align-items-center">
|
|
<div className="d-flex align-items-center">
|
|
@@ -119,7 +119,7 @@ const PageCreateModal = (props) => {
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div className="d-flex justify-content-end mt-1 mt-sm-0">
|
|
<div className="d-flex justify-content-end mt-1 mt-sm-0">
|
|
|
- <button type="button" className="btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createTodayPage}>
|
|
|
|
|
|
|
+ <button type="button" className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createTodayPage}>
|
|
|
<i className="icon-fw icon-doc"></i>{ t('Create') }
|
|
<i className="icon-fw icon-doc"></i>{ t('Create') }
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -133,11 +133,13 @@ const PageCreateModal = (props) => {
|
|
|
|
|
|
|
|
function renderInputPageForm() {
|
|
function renderInputPageForm() {
|
|
|
return (
|
|
return (
|
|
|
- <div className="row form-group">
|
|
|
|
|
|
|
+ <div className="row">
|
|
|
<fieldset className="col-12 mb-4">
|
|
<fieldset className="col-12 mb-4">
|
|
|
<h3 className="grw-modal-head pb-2">{ t('Create under') }</h3>
|
|
<h3 className="grw-modal-head pb-2">{ t('Create under') }</h3>
|
|
|
- <div className="d-flex create-page-input-container">
|
|
|
|
|
- <div className="create-page-input-row d-flex align-items-center flex-fill">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div className="d-sm-flex align-items-center justify-items-between">
|
|
|
|
|
+
|
|
|
|
|
+ <div className="flex-fill">
|
|
|
{isReachable
|
|
{isReachable
|
|
|
// GW-2355 refactor typeahead
|
|
// GW-2355 refactor typeahead
|
|
|
? <PagePathAutoComplete crowi={appContainer} initializedPath={path} addTrailingSlash />
|
|
? <PagePathAutoComplete crowi={appContainer} initializedPath={path} addTrailingSlash />
|
|
@@ -152,12 +154,15 @@ const PageCreateModal = (props) => {
|
|
|
/>
|
|
/>
|
|
|
)}
|
|
)}
|
|
|
</div>
|
|
</div>
|
|
|
- <div className="create-page-button-container">
|
|
|
|
|
- <button type="submit" className="btn btn-outline-primary rounded-pill" onClick={createInputPage}>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div className="d-flex justify-content-end mt-1 mt-sm-0">
|
|
|
|
|
+ <button type="button" className="grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3" onClick={createInputPage}>
|
|
|
<i className="icon-fw icon-doc"></i>{ t('Create') }
|
|
<i className="icon-fw icon-doc"></i>{ t('Create') }
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
@@ -165,40 +170,41 @@ const PageCreateModal = (props) => {
|
|
|
|
|
|
|
|
function renderTemplatePageForm() {
|
|
function renderTemplatePageForm() {
|
|
|
return (
|
|
return (
|
|
|
- <div className="row form-group">
|
|
|
|
|
|
|
+ <div className="row">
|
|
|
<fieldset className="col-12">
|
|
<fieldset className="col-12">
|
|
|
|
|
+
|
|
|
<h3 className="grw-modal-head pb-2">{ t('template.modal_label.Create template under')}<br />
|
|
<h3 className="grw-modal-head pb-2">{ t('template.modal_label.Create template under')}<br />
|
|
|
<code>{path}</code>
|
|
<code>{path}</code>
|
|
|
</h3>
|
|
</h3>
|
|
|
- <div className="d-sm-flex create-page-input-container">
|
|
|
|
|
- <div className="create-page-input-row d-flex align-items-center flex-fill">
|
|
|
|
|
-
|
|
|
|
|
- <div id="dd-template-type" className="dropdown w-100">
|
|
|
|
|
- <button id="template-type" type="button" className="btn btn-secondary btn dropdown-toggle w-100" data-toggle="dropdown">
|
|
|
|
|
- {template == null && t('template.option_label.select') }
|
|
|
|
|
- {template === 'children' && t('template.children.label')}
|
|
|
|
|
- {template === 'decendants' && t('template.decendants.label')}
|
|
|
|
|
- </button>
|
|
|
|
|
- <div className="dropdown-menu" aria-labelledby="userMenu">
|
|
|
|
|
- <a className="dropdown-item" type="button" onClick={() => onChangeTemplateHandler('children')}>
|
|
|
|
|
- { t('template.children.label') } (_template)<br className="d-block d-md-none" />
|
|
|
|
|
- <small className="text-muted text-wrap">- { t('template.children.desc') }</small>
|
|
|
|
|
- </a>
|
|
|
|
|
- <a className="dropdown-item" type="button" onClick={() => onChangeTemplateHandler('decendants')}>
|
|
|
|
|
- { t('template.decendants.label') } (__template) <br className="d-block d-md-none" />
|
|
|
|
|
- <small className="text-muted">- { t('template.decendants.desc') }</small>
|
|
|
|
|
- </a>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
|
|
+ <div className="d-sm-flex align-items-center justify-items-between">
|
|
|
|
|
+
|
|
|
|
|
+ <div id="dd-template-type" className="dropdown flex-fill">
|
|
|
|
|
+ <button id="template-type" type="button" className="btn btn-secondary btn dropdown-toggle w-100" data-toggle="dropdown">
|
|
|
|
|
+ {template == null && t('template.option_label.select') }
|
|
|
|
|
+ {template === 'children' && t('template.children.label')}
|
|
|
|
|
+ {template === 'decendants' && t('template.decendants.label')}
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <div className="dropdown-menu" aria-labelledby="userMenu">
|
|
|
|
|
+ <a className="dropdown-item" type="button" onClick={() => onChangeTemplateHandler('children')}>
|
|
|
|
|
+ { t('template.children.label') } (_template)<br className="d-block d-md-none" />
|
|
|
|
|
+ <small className="text-muted text-wrap">- { t('template.children.desc') }</small>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ <a className="dropdown-item" type="button" onClick={() => onChangeTemplateHandler('decendants')}>
|
|
|
|
|
+ { t('template.decendants.label') } (__template) <br className="d-block d-md-none" />
|
|
|
|
|
+ <small className="text-muted">- { t('template.decendants.desc') }</small>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div className="create-page-button-container float-right ml-3 mt-3 mt-sm-0">
|
|
|
|
|
- <button type="button" className={`btn btn-outline-primary rounded-pill ${template == null && 'disabled'}`} onClick={createTemplatePage}>
|
|
|
|
|
- <i className="icon-fw icon-doc"></i>
|
|
|
|
|
- <span>{ t('Edit') }</span>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div className="d-flex justify-content-end mt-1 mt-sm-0">
|
|
|
|
|
+ <button type="button" className={`grw-btn-create-page btn btn-outline-primary rounded-pill text-nowrap ml-3 ${template == null && 'disabled'}`} onClick={createTemplatePage}>
|
|
|
|
|
+ <i className="icon-fw icon-doc"></i>{ t('Edit') }
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|