/.ui.form
  .ui.right.floated.icon.buttons
    if isEditing
      = push-action type='rollback' action='rollbackRecord'
      = push-action type='destroy'  action='destroyRecord'
      = push-action type='save'     action='saveRecord'
    else
      if can_make_editable
        /= push-action type='edit' action='editRecord'
  if isEditing
    = input value=model.name enter='saveRecord'
  else
    span= model.name
if isEditing
  .ui.action.input
    = input value=model.name enter='saveRecord'
    = push-action type='rollback' action='rollbackRecord'
    = push-action type='destroy'  action='destroyRecord'
    = push-action type='save'     action='saveRecord'
else
  span= model.name
  = yield
