equal
deleted
inserted
replaced
117 |
117 |
118 if (this.state.titleEditMode === false) { |
118 if (this.state.titleEditMode === false) { |
119 return ( |
119 return ( |
120 <div |
120 <div |
121 onClick={this.toggleOnTitleEditMode} |
121 onClick={this.toggleOnTitleEditMode} |
122 className='session-page-title border-0 bg-success text-muted ml-3' |
122 className='session-page-title border-0 bg-irinotes-headers text-muted ml-3' |
123 > |
123 > |
124 { this.props.currentSession.title || 'Espace titre' } |
124 { this.props.currentSession.title || 'Espace titre' } |
125 </div> |
125 </div> |
126 ); |
126 ); |
127 } |
127 } |
148 |
148 |
149 if (this.state.descriptionEditMode === false) { |
149 if (this.state.descriptionEditMode === false) { |
150 return ( |
150 return ( |
151 <div |
151 <div |
152 onClick={this.toggleOnDescriptionEditMode} |
152 onClick={this.toggleOnDescriptionEditMode} |
153 className="session-page-description border-0 bg-success text-muted ml-3" |
153 className="session-page-description border-0 bg-irinotes-headers text-muted ml-3" |
154 > |
154 > |
155 { this.props.currentSession.description || 'Espace description' } |
155 { this.props.currentSession.description || 'Espace description' } |
156 </div> |
156 </div> |
157 ); |
157 ); |
158 } |
158 } |
187 <div className="session-page-panel panel-default sticky-top"> |
187 <div className="session-page-panel panel-default sticky-top"> |
188 <div className="session-page-card card-body bg-secondary pr-5"> |
188 <div className="session-page-card card-body bg-secondary pr-5"> |
189 <form onSubmit={ e => { e.preventDefault() } }> |
189 <form onSubmit={ e => { e.preventDefault() } }> |
190 {this.titleEditMode()} |
190 {this.titleEditMode()} |
191 {this.descriptionEditMode()} |
191 {this.descriptionEditMode()} |
192 {/* <div className="form-group"> |
|
193 <label className="col-form-label">Group</label> |
|
194 <p>{this.props.currentSession.group}</p> |
|
195 </div> */} |
|
196 {/* <div className="form-group"> |
|
197 <label className="col-form-label" onClick={this.toggleProtocol}>Protocol {this.state.protocolOpen?<span className="material-icons protocol-toggle"></span>:<span className="material-icons protocol-toggle"></span>}</label> |
|
198 <div className={ "collapse" + (this.state.protocolOpen?'in':'')} > |
|
199 <pre>{JSON.stringify(this.props.currentSession.protocol, null, 2)}</pre> |
|
200 </div> |
|
201 </div> */} |
|
202 </form> |
192 </form> |
203 </div> |
193 </div> |
204 </div> |
194 </div> |
205 ); |
195 ); |
206 } |
196 } |