lib/carte/client/views/edit.cjsx in carte-server-0.0.3 vs lib/carte/client/views/edit.cjsx in carte-server-0.0.4
- old
+ new
@@ -37,10 +37,10 @@
console.log response.responseJSON
@setState errors: response.responseJSON.card.errors
@setState updating: false
render: ->
- <Modal {...@props} bsStyle='default' title={if @props.card.isNew() then 'New' else 'Edit'} animation={false}>
+ <Modal {...@props} bsStyle='default' title={if @props.card.isNew() then <i className="glyphicon glyphicon-plus" /> else <i className="glyphicon glyphicon-edit" />} animation={false}>
<div className='modal-body'>
{
if @state.errors
<div className="alert alert-danger" role="alert" style={padding:'5px'}>
<ul style={paddingLeft:"20px"}>