95 </div> |
95 </div> |
96 <div className="row mt-5 justify-content-start"> |
96 <div className="row mt-5 justify-content-start"> |
97 {this.props.sessions.map((session) => |
97 {this.props.sessions.map((session) => |
98 <div className="session col-lg-3" key={session._id}> |
98 <div className="session col-lg-3" key={session._id}> |
99 <div className="col-md-auto w-100 m-2 p-2"> |
99 <div className="col-md-auto w-100 m-2 p-2"> |
100 <a className="sessions" onClick={() => this.props.history.push('/sessions/' + session._id)}> |
100 <div className="sessions" onClick={() => this.props.history.push('/sessions/' + session._id)}> |
101 <span className="session-title text-primary">{session.title || 'Session sans titre'}<br /></span> |
101 <span className="session-title text-primary">{session.title || 'Session sans titre'}<br /></span> |
102 <span className="session-date text-muted">{moment(session.date).format('DD/MM/YYYY')}<br /></span> |
102 <span className="session-date text-muted">{moment(session.date).format('DD/MM/YYYY')}<br /></span> |
103 <span className="session-description">{session.description}<br /></span> |
103 <span className="session-description">{session.description}<br /></span> |
104 </a> |
104 </div> |
105 <button type="button" id="delete" className="btn btn-link float-left" onClick={ this.onClickDelete.bind(this, session) }> |
105 <button type="button" id="delete" className="btn btn-link float-left" onClick={ this.onClickDelete.bind(this, session) }> |
106 <span className="material-icons delete text-dark">delete</span> |
106 <span className="material-icons delete text-dark">delete</span> |
107 </button> |
107 </button> |
108 <button type="button" className="btn btn-link float-left" onClick={() => this.props.history.push('/read-only/' + session._id)}> |
108 <button type="button" className="btn btn-link float-left" onClick={() => this.props.history.push('/read-only/' + session._id)}> |
109 <span className="material-icons delete text-dark">remove_red_eye</span> |
109 <span className="material-icons delete text-dark">remove_red_eye</span> |